Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem for nonetype #11

Open
infinitr0us opened this issue Mar 22, 2019 · 2 comments
Open

problem for nonetype #11

infinitr0us opened this issue Mar 22, 2019 · 2 comments

Comments

@infinitr0us
Copy link

I ran the codes on my computer for python3 and tensorflow-gpu, but I found a trouble that:
stddev=np.sqrt(1.0 / self.latent_dim)),
TypeError: unsupported operand type(s) for /: 'float' and 'NoneType'
In fact, the self.latent_dim is defined in the gan.py as a initial for None, Is it a problem for python3? Thanks a lot

@infinitr0us
Copy link
Author

image
images like this

@xubo0321
Copy link

I ran the codes on my computer for python3 and tensorflow-gpu, but I found a trouble that:
stddev=np.sqrt(1.0 / self.latent_dim)),
TypeError: unsupported operand type(s) for /: 'float' and 'NoneType'
In fact, the self.latent_dim is defined in the gan.py as a initial for None, Is it a problem for python3? Thanks a lot

You can print latent_dim, and see what type and format it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants