Package org.tensorflow.framework
Class GraphOptions
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite
-
- org.nd4j.shade.protobuf.AbstractMessage
-
- org.nd4j.shade.protobuf.GeneratedMessageV3
-
- org.tensorflow.framework.GraphOptions
-
- All Implemented Interfaces:
Serializable
,org.nd4j.shade.protobuf.Message
,org.nd4j.shade.protobuf.MessageLite
,org.nd4j.shade.protobuf.MessageLiteOrBuilder
,org.nd4j.shade.protobuf.MessageOrBuilder
,GraphOptionsOrBuilder
public final class GraphOptions extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements GraphOptionsOrBuilder
Protobuf typetensorflow.GraphOptions
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GraphOptions.Builder
Protobuf typetensorflow.GraphOptions
-
Nested classes/interfaces inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends org.nd4j.shade.protobuf.GeneratedMessageV3.ExtendableMessage>, org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable, org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
BUILD_COST_MODEL_AFTER_FIELD_NUMBER
static int
BUILD_COST_MODEL_FIELD_NUMBER
static int
ENABLE_BFLOAT16_SENDRECV_FIELD_NUMBER
static int
ENABLE_RECV_SCHEDULING_FIELD_NUMBER
static int
INFER_SHAPES_FIELD_NUMBER
static int
OPTIMIZER_OPTIONS_FIELD_NUMBER
static int
PLACE_PRUNED_GRAPH_FIELD_NUMBER
static int
REWRITE_OPTIONS_FIELD_NUMBER
static int
TIMELINE_STEP_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
long
getBuildCostModel()
The number of steps to run before returning a cost model detailing the memory usage and performance of each node of the graph.long
getBuildCostModelAfter()
The number of steps to skip before collecting statistics for the cost model.static GraphOptions
getDefaultInstance()
GraphOptions
getDefaultInstanceForType()
static org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor()
boolean
getEnableBfloat16Sendrecv()
If true, transfer float values between processes as bfloat16.boolean
getEnableRecvScheduling()
If true, use control flow to schedule the activation of Recv nodes.boolean
getInferShapes()
Annotate each Node with Op output shape data, to the extent it can be statically inferred.OptimizerOptions
getOptimizerOptions()
Options controlling how graph is optimized.OptimizerOptionsOrBuilder
getOptimizerOptionsOrBuilder()
Options controlling how graph is optimized.org.nd4j.shade.protobuf.Parser<GraphOptions>
getParserForType()
boolean
getPlacePrunedGraph()
Only place the subgraphs that are run, rather than the entire graph.RewriterConfig
getRewriteOptions()
Options that control the type and amount of graph rewriting.RewriterConfigOrBuilder
getRewriteOptionsOrBuilder()
Options that control the type and amount of graph rewriting.int
getSerializedSize()
int
getTimelineStep()
If > 0, record a timeline every this many steps.org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields()
int
hashCode()
boolean
hasOptimizerOptions()
Options controlling how graph is optimized.boolean
hasRewriteOptions()
Options that control the type and amount of graph rewriting.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static GraphOptions.Builder
newBuilder()
static GraphOptions.Builder
newBuilder(GraphOptions prototype)
GraphOptions.Builder
newBuilderForType()
protected GraphOptions.Builder
newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static GraphOptions
parseDelimitedFrom(InputStream input)
static GraphOptions
parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static GraphOptions
parseFrom(byte[] data)
static GraphOptions
parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static GraphOptions
parseFrom(InputStream input)
static GraphOptions
parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static GraphOptions
parseFrom(ByteBuffer data)
static GraphOptions
parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static GraphOptions
parseFrom(org.nd4j.shade.protobuf.ByteString data)
static GraphOptions
parseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static GraphOptions
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input)
static GraphOptions
parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
static org.nd4j.shade.protobuf.Parser<GraphOptions>
parser()
GraphOptions.Builder
toBuilder()
void
writeTo(org.nd4j.shade.protobuf.CodedOutputStream output)
-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ENABLE_RECV_SCHEDULING_FIELD_NUMBER
public static final int ENABLE_RECV_SCHEDULING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTIMIZER_OPTIONS_FIELD_NUMBER
public static final int OPTIMIZER_OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUILD_COST_MODEL_FIELD_NUMBER
public static final int BUILD_COST_MODEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BUILD_COST_MODEL_AFTER_FIELD_NUMBER
public static final int BUILD_COST_MODEL_AFTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INFER_SHAPES_FIELD_NUMBER
public static final int INFER_SHAPES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PLACE_PRUNED_GRAPH_FIELD_NUMBER
public static final int PLACE_PRUNED_GRAPH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENABLE_BFLOAT16_SENDRECV_FIELD_NUMBER
public static final int ENABLE_BFLOAT16_SENDRECV_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMELINE_STEP_FIELD_NUMBER
public static final int TIMELINE_STEP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REWRITE_OPTIONS_FIELD_NUMBER
public static final int REWRITE_OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(org.nd4j.shade.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getUnknownFields
public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getEnableRecvScheduling
public boolean getEnableRecvScheduling()
If true, use control flow to schedule the activation of Recv nodes. (Currently ignored.)
bool enable_recv_scheduling = 2;
- Specified by:
getEnableRecvScheduling
in interfaceGraphOptionsOrBuilder
- Returns:
- The enableRecvScheduling.
-
hasOptimizerOptions
public boolean hasOptimizerOptions()
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;
- Specified by:
hasOptimizerOptions
in interfaceGraphOptionsOrBuilder
- Returns:
- Whether the optimizerOptions field is set.
-
getOptimizerOptions
public OptimizerOptions getOptimizerOptions()
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;
- Specified by:
getOptimizerOptions
in interfaceGraphOptionsOrBuilder
- Returns:
- The optimizerOptions.
-
getOptimizerOptionsOrBuilder
public OptimizerOptionsOrBuilder getOptimizerOptionsOrBuilder()
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;
- Specified by:
getOptimizerOptionsOrBuilder
in interfaceGraphOptionsOrBuilder
-
getBuildCostModel
public long getBuildCostModel()
The number of steps to run before returning a cost model detailing the memory usage and performance of each node of the graph. 0 means no cost model.
int64 build_cost_model = 4;
- Specified by:
getBuildCostModel
in interfaceGraphOptionsOrBuilder
- Returns:
- The buildCostModel.
-
getBuildCostModelAfter
public long getBuildCostModelAfter()
The number of steps to skip before collecting statistics for the cost model.
int64 build_cost_model_after = 9;
- Specified by:
getBuildCostModelAfter
in interfaceGraphOptionsOrBuilder
- Returns:
- The buildCostModelAfter.
-
getInferShapes
public boolean getInferShapes()
Annotate each Node with Op output shape data, to the extent it can be statically inferred.
bool infer_shapes = 5;
- Specified by:
getInferShapes
in interfaceGraphOptionsOrBuilder
- Returns:
- The inferShapes.
-
getPlacePrunedGraph
public boolean getPlacePrunedGraph()
Only place the subgraphs that are run, rather than the entire graph. This is useful for interactive graph building, where one might produce graphs that cannot be placed during the debugging process. In particular, it allows the client to continue work in a session after adding a node to a graph whose placement constraints are unsatisfiable.
bool place_pruned_graph = 6;
- Specified by:
getPlacePrunedGraph
in interfaceGraphOptionsOrBuilder
- Returns:
- The placePrunedGraph.
-
getEnableBfloat16Sendrecv
public boolean getEnableBfloat16Sendrecv()
If true, transfer float values between processes as bfloat16.
bool enable_bfloat16_sendrecv = 7;
- Specified by:
getEnableBfloat16Sendrecv
in interfaceGraphOptionsOrBuilder
- Returns:
- The enableBfloat16Sendrecv.
-
getTimelineStep
public int getTimelineStep()
If > 0, record a timeline every this many steps. EXPERIMENTAL: This currently has no effect in MasterSession.
int32 timeline_step = 8;
- Specified by:
getTimelineStep
in interfaceGraphOptionsOrBuilder
- Returns:
- The timelineStep.
-
hasRewriteOptions
public boolean hasRewriteOptions()
Options that control the type and amount of graph rewriting. Not currently configurable via the public Python API (i.e. there is no API stability guarantee if you import RewriterConfig explicitly).
.tensorflow.RewriterConfig rewrite_options = 10;
- Specified by:
hasRewriteOptions
in interfaceGraphOptionsOrBuilder
- Returns:
- Whether the rewriteOptions field is set.
-
getRewriteOptions
public RewriterConfig getRewriteOptions()
Options that control the type and amount of graph rewriting. Not currently configurable via the public Python API (i.e. there is no API stability guarantee if you import RewriterConfig explicitly).
.tensorflow.RewriterConfig rewrite_options = 10;
- Specified by:
getRewriteOptions
in interfaceGraphOptionsOrBuilder
- Returns:
- The rewriteOptions.
-
getRewriteOptionsOrBuilder
public RewriterConfigOrBuilder getRewriteOptionsOrBuilder()
Options that control the type and amount of graph rewriting. Not currently configurable via the public Python API (i.e. there is no API stability guarantee if you import RewriterConfig explicitly).
.tensorflow.RewriterConfig rewrite_options = 10;
- Specified by:
getRewriteOptionsOrBuilder
in interfaceGraphOptionsOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfaceorg.nd4j.shade.protobuf.MessageLite
- Overrides:
writeTo
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfaceorg.nd4j.shade.protobuf.MessageLite
- Overrides:
getSerializedSize
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceorg.nd4j.shade.protobuf.Message
- Overrides:
equals
in classorg.nd4j.shade.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceorg.nd4j.shade.protobuf.Message
- Overrides:
hashCode
in classorg.nd4j.shade.protobuf.AbstractMessage
-
parseFrom
public static GraphOptions parseFrom(ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GraphOptions parseFrom(ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GraphOptions parseFrom(org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GraphOptions parseFrom(org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GraphOptions parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GraphOptions parseFrom(byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException
- Throws:
org.nd4j.shade.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GraphOptions parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GraphOptions parseFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GraphOptions parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GraphOptions parseDelimitedFrom(InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static GraphOptions parseFrom(org.nd4j.shade.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GraphOptions parseFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public GraphOptions.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfaceorg.nd4j.shade.protobuf.Message
- Specified by:
newBuilderForType
in interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilder
public static GraphOptions.Builder newBuilder()
-
newBuilder
public static GraphOptions.Builder newBuilder(GraphOptions prototype)
-
toBuilder
public GraphOptions.Builder toBuilder()
- Specified by:
toBuilder
in interfaceorg.nd4j.shade.protobuf.Message
- Specified by:
toBuilder
in interfaceorg.nd4j.shade.protobuf.MessageLite
-
newBuilderForType
protected GraphOptions.Builder newBuilderForType(org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static GraphOptions getDefaultInstance()
-
parser
public static org.nd4j.shade.protobuf.Parser<GraphOptions> parser()
-
getParserForType
public org.nd4j.shade.protobuf.Parser<GraphOptions> getParserForType()
- Specified by:
getParserForType
in interfaceorg.nd4j.shade.protobuf.Message
- Specified by:
getParserForType
in interfaceorg.nd4j.shade.protobuf.MessageLite
- Overrides:
getParserForType
in classorg.nd4j.shade.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public GraphOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
-