Can NNI be used in TF Estimator? #3751
-
Environment:
Log message:
I want to add the intermediate result to the Tensorflow training, but since the code is executed in estimator.train, I don't know how to get the intermediate result.
I see that the code has a loss output like the above, but I don't know how to make nni get the loss |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
SessionRunHook
can be inherited and you can implement some hook likeLoggingTensorHook
and putnni.report_intermediate_result
into it. You can refer to the source code ofLoggingTensorHook
for reference.