Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Ability to add Custom Tensorflow Hooks #352

Open
trisongz opened this issue Aug 17, 2021 · 0 comments
Open

Ability to add Custom Tensorflow Hooks #352

trisongz opened this issue Aug 17, 2021 · 0 comments

Comments

@trisongz
Copy link

Will there be any future plans to allow users to add Custom Tensorflow Hooks such as tf.estimator.LoggingTensorHook to enable custom functions during the training/eval loop such as passing back metrics to 3rd Party Services

When constructing the TPU estimator model mesh_tensorflow/transformer/utils:tpu_estimator_model_fn, it's fairly complicated to override the training_hooks and evaluation_hooks that is passed to tpu_estimator.TPUEstimatorSpec

Currently, the method I'm using is to override mesh_tensorflow.ops.MtfCheckpointSaverListener functions to enable custom logging/monitoring during training, which doesn't get called as frequently to capture training loss.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant