Minor spelling and grammar fixes in op_callbacks.py
PiperOrigin-RevId: 304929105 Change-Id: Iadb65a86b3488156d92ee234caea3a06a02d79c7
This commit is contained in:
parent
84a4391c6f
commit
b573131c65
@ -79,7 +79,7 @@ def add_op_callback(callback_fn):
|
||||
# "MatMul_2".
|
||||
# graph: The graph that the op belongs to (if any).
|
||||
# - In eager execution of an op or FuncGraph, this is `None`.
|
||||
# - In graph construction, this is the op's containing graph
|
||||
# - In graph construction, this is the op's enclosing graph
|
||||
# as a `tf.Graph` object.
|
||||
#
|
||||
# Return values:
|
||||
@ -89,7 +89,7 @@ def add_op_callback(callback_fn):
|
||||
# `outputs` argument.
|
||||
# If the return value is `None`, downstream execution or graph
|
||||
# construction will be unaffected.
|
||||
# Howevevr, if the return value is a `list` or `tuple` of `Tensor`s,
|
||||
# However, if the return value is a `list` or `tuple` of `Tensor`s,
|
||||
# - In eager execution, these returned `Tensor`s should be
|
||||
# `EagerTensor`s. Their values will replace the original values of
|
||||
# `outputs` for downstream eager execution. (*Not implemented yet*).
|
||||
|
Loading…
Reference in New Issue
Block a user