Aprenda o que há de mais recente em aprendizado de máquina, IA generativa e muito mais no WiML Symposium 2023
Registre-se
EnsureShape
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
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.
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2021-04-01 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Não contém as informações de que eu preciso"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Muito complicado / etapas demais"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Desatualizado"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problema na tradução"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Problema com as amostras / o código"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Outro"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Fácil de entender"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Meu problema foi resolvido"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Outro"
}]