Coder Social home page Coder Social logo

Comments (4)

Newmu avatar Newmu commented on August 15, 2024

Have you made sure theano.config.floatX is set to float32? The debug msg is suggesting symbolic variable going into a conv or deconv op (likely a downstream from "Z" or "Y") has dtype float64. Check Z.dtype and Y.dtype

from dcgan_code.

genekogan avatar genekogan commented on August 15, 2024

yes! that solved that problem. however it led to a new issue (HostFromGPU not defined, see below).
thanks for the repo, results look really amazing. sorry, still getting the hang of theano...

>> gX = gen(Z, Y, *gen_params)

Traceback (most recent call last):
File "", line 1, in
File "", line 9, in gen
File "lib/ops.py", line 63, in batchnorm
b_u = T.mean(X, axis=[0, 2, 3]).dimshuffle('x', 0, 'x', 'x')
File "/usr/local/lib/python2.7/dist-packages/theano/tensor/basic.py", line 2864, i
n mean
acc_dtype=acc_dtype)
File "/usr/local/lib/python2.7/dist-packages/theano/tensor/basic.py", line 2726, i
n sum
out = elemwise.Sum(axis=axis, dtype=dtype, acc_dtype=acc_dtype)(input)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/op.py", line 509, in cal
l

node = self.make_node(_inputs, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/theano/tensor/elemwise.py", line 1852
, in make_node
input = as_tensor_variable(input)
File "/usr/local/lib/python2.7/dist-packages/theano/tensor/basic.py", line 146, in
as_tensor_variable
return x._as_TensorVariable() # TODO: pass name and ndim arguments
File "/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/var.py", line 32,
in _as_TensorVariable
return HostFromGpu()(self)
NameError: global name 'HostFromGpu' is not defined

from dcgan_code.

Newmu avatar Newmu commented on August 15, 2024

Usually only seen an error like that when you don't have cuda/cudnn properly installed/configured. Can you confirm cuda/cudnn is working on your end?

from dcgan_code.

genekogan avatar genekogan commented on August 15, 2024

yes, works perfectly now, thank you! i had cuda/cudnn installed, just didn't have it in the PATH.

from dcgan_code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.