Alias KerasTensor
as Tensor
#21210
Labels
keras-team-review-pending
Pending review by a Keras team member.
type:feature
The user is asking for a new feature.
Can we please introduce an alias from
KerasTensor
toTensor
inkeras
by changing the import statement in the autogenerated stubs:from keras.src.backend.common.keras_tensor import KerasTensor as KerasTensor
to:
from keras.src.backend.common.keras_tensor import KerasTensor as Tensor
This change aims to simplify the API, improve usability, and align naming convention across other critical building blocks such as
keras.Model
andkeras.Layer
For example :
from keras import Model, Layer, Tensor, ops
This would be a trivial change downstream too but just think for the sake of alignment, we refactor in
keras
main repoThe text was updated successfully, but these errors were encountered: