Conozca lo último en aprendizaje automático, IA generativa y más en el
Simposio WiML 2023.
EnsureShape
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Ensures that the tensor's shape matches the expected shape.
Raises an error if the input tensor's shape does not match the specified shape.
Returns the input tensor otherwise.
Constants
String
|
OP_NAME
|
The name of this op, as known by TensorFlow core engine
|
Public Methods
Output
<T>
|
asOutput
()
Returns the symbolic handle of the tensor.
|
static
<T extends
TType
>
EnsureShape
<T>
|
create
(
Scope
scope,
Operand
<T> input,
Shape
shape)
Factory method to create a class wrapping a new EnsureShape operation.
|
Output
<T>
|
output
()
A tensor with the same shape and contents as the input tensor or value.
|
Inherited Methods
From class
java.lang.Object
boolean
|
equals
(Object arg0)
|
final
Class<?>
|
getClass
()
|
int
|
hashCode
()
|
final
void
|
notify
()
|
final
void
|
notifyAll
()
|
String
|
toString
()
|
final
void
|
wait
(long arg0, int arg1)
|
final
void
|
wait
(long arg0)
|
final
void
|
wait
()
|
From interface
org.tensorflow.Operand
abstract
Output
<T>
|
asOutput
()
Returns the symbolic handle of the tensor.
|
abstract
T
|
asTensor
()
Returns the tensor at this operand.
|
abstract
Shape
|
shape
()
Returns the (possibly partially known) shape of the tensor referred to by the
Output
of this operand.
|
abstract
Class<T>
|
type
()
Returns the tensor type of this operand
|
Constants
public
static
final
String
OP_NAME
The name of this op, as known by TensorFlow core engine
Constant Value:
"EnsureShape"
Public Methods
public
Output
<T>
asOutput
()
Returns the symbolic handle of the tensor.
Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is
used to obtain a symbolic handle that represents the computation of the input.
Factory method to create a class wrapping a new EnsureShape operation.
Parameters
scope
|
current scope
|
input
|
A tensor, whose shape is to be validated.
|
shape
|
The expected (possibly partially specified) shape of the input tensor.
|
Returns
-
a new instance of EnsureShape
public
Output
<T>
output
()
A tensor with the same shape and contents as the input tensor or value.
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2021-04-01 (UTC)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Falta la información que necesito"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Muy complicado o demasiados pasos"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Desactualizado"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problema de traducción"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Problema con las muestras o los códigos"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Otro"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Fácil de comprender"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Resolvió mi problema"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Otro"
}]