Skip to content

[Feature Request]: Introduction of KerasTensor #1142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Oceania2018 opened this issue Jul 10, 2023 · 0 comments
Open

[Feature Request]: Introduction of KerasTensor #1142

Oceania2018 opened this issue Jul 10, 2023 · 0 comments
Assignees
Labels
discussion A topic needed to discuss help wanted Extra attention is needed keras

Comments

@Oceania2018
Copy link
Member

Background and Feature Description

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

@Oceania2018 Oceania2018 self-assigned this Jul 10, 2023
@Oceania2018 Oceania2018 added help wanted Extra attention is needed discussion A topic needed to discuss keras labels Jul 10, 2023
Oceania2018 added a commit that referenced this issue Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion A topic needed to discuss help wanted Extra attention is needed keras
Projects
None yet
Development

No branches or pull requests

1 participant