Modifier and Type | Class and Description |
---|---|
static class |
PrefetchDataset.Options
Optional attributes for
PrefetchDataset |
operation
Modifier and Type | Method and Description |
---|---|
Output<Object> |
asOutput()
Returns the symbolic handle of a tensor.
|
static PrefetchDataset |
create(Scope scope,
Operand<?> inputDataset,
Operand<Long> bufferSize,
List<Class<?>> outputTypes,
List<Shape> outputShapes,
PrefetchDataset.Options... options)
Factory method to create a class wrapping a new PrefetchDataset operation.
|
Output<?> |
handle() |
static PrefetchDataset.Options |
legacyAutotune(Boolean legacyAutotune) |
static PrefetchDataset.Options |
slackPeriod(Long slackPeriod) |
equals, hashCode, op, toString
public static PrefetchDataset create(Scope scope, Operand<?> inputDataset, Operand<Long> bufferSize, List<Class<?>> outputTypes, List<Shape> outputShapes, PrefetchDataset.Options... options)
scope
- current scopeinputDataset
- bufferSize
- The maximum number of elements to buffer in an iterator over
this dataset.outputTypes
- outputShapes
- options
- carries optional attributes valuespublic static PrefetchDataset.Options slackPeriod(Long slackPeriod)
slackPeriod
- public static PrefetchDataset.Options legacyAutotune(Boolean legacyAutotune)
legacyAutotune
- public Output<?> handle()
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.