Modifier and Type | Class and Description |
---|---|
static class |
RangeDataset.Inputs |
static class |
RangeDataset.Options
Optional attributes for
RangeDataset |
Modifier and Type | Field and Description |
---|---|
static String |
OP_NAME
The name of this op, as known by TensorFlow core engine
|
Constructor and Description |
---|
RangeDataset(Operation operation) |
Modifier and Type | Method and Description |
---|---|
Output<TType> |
asOutput()
Returns the symbolic handle of the tensor.
|
static RangeDataset |
create(Scope scope,
Operand<TInt64> start,
Operand<TInt64> stop,
Operand<TInt64> step,
List<Class<? extends TType>> outputTypes,
List<org.tensorflow.ndarray.Shape> outputShapes,
RangeDataset.Options... options)
Factory method to create a class wrapping a new RangeDataset operation.
|
Output<? extends TType> |
handle()
Gets handle.
|
static RangeDataset.Options |
metadata(String metadata)
Sets the metadata option.
|
public static final String OP_NAME
public RangeDataset(Operation operation)
@Endpoint(describeByClass=true) public static RangeDataset create(Scope scope, Operand<TInt64> start, Operand<TInt64> stop, Operand<TInt64> step, List<Class<? extends TType>> outputTypes, List<org.tensorflow.ndarray.Shape> outputShapes, RangeDataset.Options... options)
scope
- current scopestart
- corresponds to start in python's xrange().stop
- corresponds to stop in python's xrange().step
- corresponds to step in python's xrange().outputTypes
- The value of the outputTypes attributeoutputShapes
- The value of the outputShapes attributeoptions
- carries optional attribute valuespublic static RangeDataset.Options metadata(String metadata)
metadata
- the metadata optionpublic Output<TType> 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<TType>
OperationBuilder.addInput(Output)
Copyright © 2015–2022. All rights reserved.