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

TypeError: Cannot convert 0 to EagerTensor of dtype bool #2

Open
ShaniaShan opened this issue Dec 26, 2020 · 1 comment
Open

TypeError: Cannot convert 0 to EagerTensor of dtype bool #2

ShaniaShan opened this issue Dec 26, 2020 · 1 comment

Comments

@ShaniaShan
Copy link

Hi,
Thank you for sharing you wonderful work!

By using the print(), I find the values of variable Y and Y_v are zero matrix.

There are some errors when I run these codes as the below:
hist = unet.fit(X,tf.cast(Y,tf.float32),batch_size=32,epochs=100, validation_data=(X_v,tf.cast(Y_v,tf.float32)),verbose=1,callbacks= callback_list)

The errors are as the following:
TypeError: Cannot convert 0 to EagerTensor of dtype bool

 [[node EagerPyFunc (defined at <ipython-input-76-82292be68872>:11) ]] [Op:__inference_train_function_22126]

Errors may have originated from an input operation.
Input Source operations connected to node EagerPyFunc:
IteratorGetNext (defined at :17)

Function call stack:
train_function

@procton
Copy link

procton commented Jan 1, 2021

Same for me

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