Closed horietakehiro closed 3 years ago
Sorry, I'v missed the note on the README.
Note: Debugger with zero script change is partially available for TensorFlow v2.1.0. The inputs, outputs, gradients, and layers built-in collections are currently not available for these TensorFlow versions.
Now I understood that current sagemaker-debugger is not available to my custome tensroflow model.
I encountered an
OperatorNotAllowedInGraphError
during my training job with my own tensorflow model, which has a function decorated with@tf.function
. The traceback told me that smdebug/tensorflow/keras.py causes an OperatorNotAllowedInGraphError. I note below some information.my training job configuration
my entry_point script - issue_reproducer.py
class issueReproducer(tf.Module):
if name == "main":
I could avoid the error by disabling the sagemaker-debugger's hook initialization like below.
Is this a bug? or something wrong with my entry_point script? Thank you for solving.