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

Ability to add Custom Tensorflow Hooks #352

@trisongz

Description

@trisongz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions