Package org.tensorflow.framework
Class GraphOptions
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.framework.GraphOptions
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,GraphOptionsOrBuilder
public final class GraphOptions
extends com.google.protobuf.GeneratedMessageV3
implements GraphOptionsOrBuilder
Protobuf type
tensorflow.GraphOptions- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typetensorflow.GraphOptionsNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongThe 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.longThe number of steps to skip before collecting statistics for the cost model.static GraphOptionsstatic final com.google.protobuf.Descriptors.DescriptorbooleanIf true, transfer float values between processes as bfloat16.booleanIf true, use control flow to schedule the activation of Recv nodes.booleanAnnotate each Node with Op output shape data, to the extent it can be statically inferred.Options controlling how graph is optimized.Options controlling how graph is optimized.com.google.protobuf.Parser<GraphOptions> booleanOnly place the subgraphs that are run, rather than the entire graph.Options that control the type and amount of graph rewriting.Options that control the type and amount of graph rewriting.intintIf > 0, record a timeline every this many steps.inthashCode()booleanOptions controlling how graph is optimized.booleanOptions that control the type and amount of graph rewriting.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic GraphOptions.Builderstatic GraphOptions.BuildernewBuilder(GraphOptions prototype) protected GraphOptions.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static GraphOptionsparseDelimitedFrom(InputStream input) static GraphOptionsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GraphOptionsparseFrom(byte[] data) static GraphOptionsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GraphOptionsparseFrom(com.google.protobuf.ByteString data) static GraphOptionsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GraphOptionsparseFrom(com.google.protobuf.CodedInputStream input) static GraphOptionsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GraphOptionsparseFrom(InputStream input) static GraphOptionsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GraphOptionsparseFrom(ByteBuffer data) static GraphOptionsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GraphOptions> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ENABLE_RECV_SCHEDULING_FIELD_NUMBER
public static final int ENABLE_RECV_SCHEDULING_FIELD_NUMBER- See Also:
-
OPTIMIZER_OPTIONS_FIELD_NUMBER
public static final int OPTIMIZER_OPTIONS_FIELD_NUMBER- See Also:
-
BUILD_COST_MODEL_FIELD_NUMBER
public static final int BUILD_COST_MODEL_FIELD_NUMBER- See Also:
-
BUILD_COST_MODEL_AFTER_FIELD_NUMBER
public static final int BUILD_COST_MODEL_AFTER_FIELD_NUMBER- See Also:
-
INFER_SHAPES_FIELD_NUMBER
public static final int INFER_SHAPES_FIELD_NUMBER- See Also:
-
PLACE_PRUNED_GRAPH_FIELD_NUMBER
public static final int PLACE_PRUNED_GRAPH_FIELD_NUMBER- See Also:
-
ENABLE_BFLOAT16_SENDRECV_FIELD_NUMBER
public static final int ENABLE_BFLOAT16_SENDRECV_FIELD_NUMBER- See Also:
-
TIMELINE_STEP_FIELD_NUMBER
public static final int TIMELINE_STEP_FIELD_NUMBER- See Also:
-
REWRITE_OPTIONS_FIELD_NUMBER
public static final int REWRITE_OPTIONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.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:
getEnableRecvSchedulingin interfaceGraphOptionsOrBuilder- Returns:
- The enableRecvScheduling.
-
hasOptimizerOptions
public boolean hasOptimizerOptions()Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;- Specified by:
hasOptimizerOptionsin interfaceGraphOptionsOrBuilder- Returns:
- Whether the optimizerOptions field is set.
-
getOptimizerOptions
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;- Specified by:
getOptimizerOptionsin interfaceGraphOptionsOrBuilder- Returns:
- The optimizerOptions.
-
getOptimizerOptionsOrBuilder
Options controlling how graph is optimized.
.tensorflow.OptimizerOptions optimizer_options = 3;- Specified by:
getOptimizerOptionsOrBuilderin 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:
getBuildCostModelin 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:
getBuildCostModelAfterin 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:
getInferShapesin 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:
getPlacePrunedGraphin interfaceGraphOptionsOrBuilder- Returns:
- The placePrunedGraph.
-
getEnableBfloat16Sendrecv
public boolean getEnableBfloat16Sendrecv()If true, transfer float values between processes as bfloat16.
bool enable_bfloat16_sendrecv = 7;- Specified by:
getEnableBfloat16Sendrecvin 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:
getTimelineStepin 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:
hasRewriteOptionsin interfaceGraphOptionsOrBuilder- Returns:
- Whether the rewriteOptions field is set.
-
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:
getRewriteOptionsin interfaceGraphOptionsOrBuilder- Returns:
- The rewriteOptions.
-
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:
getRewriteOptionsOrBuilderin interfaceGraphOptionsOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GraphOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GraphOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GraphOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GraphOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GraphOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GraphOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GraphOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static GraphOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GraphOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GraphOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-