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

Casting X_batch to float32 #476

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DavidLandup0
Copy link

Casting X_batch to float32 to avoid an InvalidArgumentError, caused by X_batch being of type uint8 instead of float32 in the tf.concat() operation, which should result in X_fake_and_real.

InvalidArgumentError: cannot compute ConcatV2 as input #1(zero-based) was expected to be a float tensor but is a uint8 tensor [Op:ConcatV2] name: concat

…_batch being uint8 instead of float32 in the tf.concat() operation, which should result in X_fake_and_real.
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@ageron
Copy link
Owner

ageron commented Oct 6, 2021

Hi @DavidLandup0 ,
Thanks for the PR.
However, I cannot reproduce the error you were getting. I just tried running the notebook on Colab (which currently uses TensorFlow 2.6.0) and the code worked fine, I didn't get any error (or even any warning) in this part of the notebook:

image

Can you reproduce the error? If so, could you please indicate which version of TF you are using? And perhaps provide a minimum code example that I can use to reproduce the problem?

Thanks again.

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

Successfully merging this pull request may close these issues.

2 participants