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
A representation of a Keras in/output during Functional API construction.
KerasTensors are tensor-like objects that represent the symbolic inputs
and outputs of Keras layers during Functional model construction. They are
comprised of the tf.TypeSpec of the (Composite)Tensor that will be
consumed/produced in the corresponding location of the Functional model.
KerasTensors are intended as a private API, so users should never need to
directly instantiate KerasTensors.
Building Functional Models with KerasTensors tf.keras.Input produces KerasTensors that represent the symbolic inputs
to your model.
Passing a KerasTensor to a tf.keras.Layer__call__ lets the layer know
that you are building a Functional model. The layer call will
infer the output signature and return KerasTensors with tf.TypeSpecs
corresponding to the symbolic outputs of that layer call. These output KerasTensors will have all of the internal KerasHistory metadata attached
to them that Keras needs to construct a Functional Model.
API Definition and Usage
No response
Alternatives
No response
Risks
No response
The text was updated successfully, but these errors were encountered:
Background and Feature Description
A representation of a Keras in/output during Functional API construction.
KerasTensor
s are tensor-like objects that represent the symbolic inputsand outputs of Keras layers during Functional model construction. They are
comprised of the
tf.TypeSpec
of the (Composite)Tensor that will beconsumed/produced in the corresponding location of the Functional model.
KerasTensors are intended as a private API, so users should never need to
directly instantiate
KerasTensor
s.Building Functional Models with KerasTensors
tf.keras.Input
producesKerasTensor
s that represent the symbolic inputsto your model.
Passing a
KerasTensor
to atf.keras.Layer
__call__
lets the layer knowthat you are building a Functional model. The layer call will
infer the output signature and return
KerasTensor
s withtf.TypeSpec
scorresponding to the symbolic outputs of that layer call. These output
KerasTensor
s will have all of the internal KerasHistory metadata attachedto them that Keras needs to construct a Functional Model.
API Definition and Usage
No response
Alternatives
No response
Risks
No response
The text was updated successfully, but these errors were encountered: