You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the train_xent, runtime_xent is default fetch in the GreedyRunner. Computation of these requires references, which might not be available during inference time (e.g. we only want to produce output and not compute xents).
This can be sort-of avoided by listing input data also as the reference. However, this may not be completely intuitive to the user.
The text was updated successfully, but these errors were encountered:
If everything works correctly, the loss ops are prepared as potential fetches in the runner, but at the time the runner creates an executable, it knows whether the reference is available or not and sets flag compute_losses accordingly. If there is no reference, the executable replaces the ops with tf.zeros([]).
Currently, the
train_xent
,runtime_xent
is default fetch in the GreedyRunner. Computation of these requiresreferences
, which might not be available during inference time (e.g. we only want to produce output and not compute xents).This can be sort-of avoided by listing input data also as the reference. However, this may not be completely intuitive to the user.
The text was updated successfully, but these errors were encountered: