Modifier and Type | Class and Description |
---|---|
static class |
VarHandleOp.Options
Optional attributes for
VarHandleOp |
operation
Modifier and Type | Method and Description |
---|---|
Output<Object> |
asOutput()
Returns the symbolic handle of a tensor.
|
static VarHandleOp.Options |
container(String container) |
static <T> VarHandleOp |
create(Scope scope,
Class<T> dtype,
Shape shape,
VarHandleOp.Options... options)
Factory method to create a class wrapping a new VarHandleOp operation.
|
Output<?> |
resource() |
static VarHandleOp.Options |
sharedName(String sharedName) |
equals, hashCode, op, toString
public static <T> VarHandleOp create(Scope scope, Class<T> dtype, Shape shape, VarHandleOp.Options... options)
scope
- current scopedtype
- the type of this variable. Must agree with the dtypes
of all ops using this variable.shape
- The (possibly partially specified) shape of this variable.options
- carries optional attributes valuespublic static VarHandleOp.Options container(String container)
container
- the container this variable is placed in.public static VarHandleOp.Options sharedName(String sharedName)
sharedName
- the name by which this variable is referred to.public Output<?> resource()
public Output<Object> asOutput()
Operand
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.
asOutput
in interface Operand<Object>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.