public interface Op
Op
implementations provide a strongly typed API for building and executing
operations without the use of literals and indexes, as required in internal classes like
Operation
.
Ops can be classified under two categories:
Raw
ops target a single TensorFlow operation and are, in most cases,
generated automatically from the OpDef
proto definitions exposed by TensorFlow runtime
library.Modifier and Type | Method and Description |
---|---|
default ExecutionEnvironment |
env()
Return the execution environment this op was created in.
|
Operation |
op()
Return this unit of computation as a single
Operation . |
Operation op()
Operation
.
For a raw
op, the returned value correspond to the TensorFlow operation
wrapped by this op.
For a composite op, the returned value usually correspond to the last operation invoked in a
chain or to a NoOp
grouping one or more operations as a
single unit of computation.
Operation
default ExecutionEnvironment env()
Copyright © 2015–2022. All rights reserved.