| 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 to wrap a new VarHandleOp operation to the graph.
|
Output<?> |
resource() |
static VarHandleOp.Options |
sharedName(String sharedName) |
equals, hashCode, toStringpublic static <T> VarHandleOp create(Scope scope, Class<T> dtype, Shape shape, VarHandleOp.Options... options)
scope - current graph 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()
OperandInputs 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 © 2015–2019. All rights reserved.