Modifier and Type | Class and Description |
---|---|
static class |
DatasetCardinality.Inputs |
Modifier and Type | Field and Description |
---|---|
static String |
OP_NAME
The name of this op, as known by TensorFlow core engine
|
Constructor and Description |
---|
DatasetCardinality(Operation operation) |
Modifier and Type | Method and Description |
---|---|
Output<TInt64> |
asOutput()
Returns the symbolic handle of the tensor.
|
Output<TInt64> |
cardinality()
Gets cardinality.
|
static DatasetCardinality |
create(Scope scope,
Operand<? extends TType> inputDataset)
Factory method to create a class wrapping a new DatasetCardinality operation.
|
public static final String OP_NAME
public DatasetCardinality(Operation operation)
@Endpoint(describeByClass=true) public static DatasetCardinality create(Scope scope, Operand<? extends TType> inputDataset)
scope
- current scopeinputDataset
- A variant tensor representing the dataset to return cardinality for.public Output<TInt64> cardinality()
input_dataset
. Named constants are used to represent
infinite and unknown cardinality.public Output<TInt64> 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<TInt64>
OperationBuilder.addInput(Output)
Copyright © 2015–2022. All rights reserved.