public final class Operation extends Object
An Operation is a node in a Graph
that takes zero or more Tensor
s (produced by
other Operations in the Graph) as input, and produces zero or more Tensor
s as output.
Operation instances are valid only as long as the Graph they are a part of is valid. Thus, if
Graph.close()
has been invoked, then methods on the Operation instance may fail with an
IllegalStateException
.
Operation instances are immutable and thread-safe.
Modifier and Type | Method and Description |
---|---|
String |
name()
Returns the full name of the Operation.
|
int |
numOutputs()
Returns the number of tensors produced by this operation.
|
Output |
output(int idx)
Returns a symbolic handle to one of the tensors produced by this operation.
|
String |
type()
Returns the type of the operation, i.e., the name of the computation performed by the
operation.
|
public String name()
public String type()
public int numOutputs()
public Output output(int idx)
Copyright © 2015–2017. All rights reserved.