You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the syntax currently in the tutorials used for the tf$ones operation seems to be outdated and needs to be updated to 1+tf$ones(shape(1)).
The current code and error output I get is:
> # TensorFlow operations convert arrays to Tensors automatically
> 1 + tf$ones(shape = 1)
Error in py_call_impl(callable, dots$args, dots$keywords) :
TypeError: Cannot convert 1.0 to EagerTensor of dtype int32
Detailed traceback:
File "C:\PROGRA~3\ANACON~1\envs\R-RETI~1\lib\site-packages\tensorflow\python\util\traceback_utils.py", line 153, in error_handler
raise e.with_traceback(filtered_tb) from None
File "C:\PROGRA~3\ANACON~1\envs\R-RETI~1\lib\site-packages\tensorflow\python\framework\constant_op.py", line 102, in convert_to_eager_tensor
return ops.EagerTensor(value, ctx.device_name, dtype)
However, by adjusting the code from an example snippet from here, line 15 & 16 I get the correct output
Hi Team,
I have been continuing my journey through the tutorials, and have come across an issue in the advanced tutorials, r array compatibility
.
It appears that the syntax currently in the tutorials used for the
tf$ones
operation seems to be outdated and needs to be updated to1+tf$ones(shape(1))
.The current code and error output I get is:
However, by adjusting the code from an example snippet from here, line 15 & 16 I get the correct output
The text was updated successfully, but these errors were encountered: