Closed charlinergr closed 4 years ago
Hi. Can you share the code you ran to get this error?
Does this error happen if using the WML CE tensorflow-gpu if you do not call tf.config.experimental.set_lms_enabled(True)
?
yes !
Thank you! This looks like a snippet of a larger program. It will help if you have a self contained reproducible script. Is that possible?
Can you also post the output of conda list
?
Thanks.
The above matches with the description of this issue:
https://github.com/tensorflow/tensorflow/issues/31962
Which was fixed in this commit:
https://github.com/tensorflow/tensorflow/commit/92af5842b003b8e223859bed4f0dabed400ede0f
Which didn't make it into 2.1.
You can apply that code change to your installation to see. Please report back if that does indeed fix your issue. There are other workarounds posted in that issue above (include removing the @tf.function declaration) that are worth trying as well.
If this fixes your error, this is certainly a candidate for a back-port fix. Thanks for reporting.
The change in https://github.com/tensorflow/tensorflow/commit/92af5842b003b8e223859bed4f0dabed400ede0f seems already done on the tensorflow 2.1 from IBM.
I change the
tf.GradientTape()
by
tf.gradients
and it works just fine now.
Thank you for the help !
Hi !
I'm struggeling to use tensorflow-gpu from the WML CE channel.
I follow all the steps describe in : https://www.ibm.com/support/knowledgecenter/SS5SF7_1.7.0/navigation/wmlce_install.htm
Then, I run:
which mean the installation work well, right ?
But when I run my code I got this issue:
SystemError: <built-in function len> returned a result with an error set
which I have not in TF2.1 without large model.Did I do something wrong ? I suppose that I did not understand something as it is working in another environnement.