Class GraphOptions
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.tensorflow.proto.GraphOptions
- All Implemented Interfaces:
Message, MessageLite, MessageLiteOrBuilder, MessageOrBuilder, Serializable, GraphOptionsOrBuilder
Protobuf type
tensorflow.GraphOptions- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typetensorflow.GraphOptionsNested classes/interfaces inherited from class GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>, GeneratedMessageV3.ExtendableMessage<MessageType>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterNested classes/interfaces inherited from class AbstractMessageLite
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 GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class AbstractMessage
memoizedSizeFields inherited from class 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 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.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.final UnknownFieldSetinthashCode()booleanOptions controlling how graph is optimized.booleanOptions that control the type and amount of graph rewriting.protected GeneratedMessageV3.FieldAccessorTablefinal booleanstatic GraphOptions.Builderstatic GraphOptions.BuildernewBuilder(GraphOptions prototype) protected GraphOptions.Builderprotected Objectstatic GraphOptionsparseDelimitedFrom(InputStream input) static GraphOptionsparseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static GraphOptionsparseFrom(byte[] data) static GraphOptionsparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) static GraphOptionsparseFrom(ByteString data) static GraphOptionsparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) static GraphOptionsparseFrom(CodedInputStream input) static GraphOptionsparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) static GraphOptionsparseFrom(InputStream input) static GraphOptionsparseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) static GraphOptionsparseFrom(ByteBuffer data) static GraphOptionsparseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) static Parser<GraphOptions> parser()voidwriteTo(CodedOutputStream output) Methods inherited from class 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, writeStringNoTagMethods inherited from class AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, 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 classGeneratedMessageV3
-
getUnknownFields
- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
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 interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static GraphOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static GraphOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static GraphOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GraphOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static GraphOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GraphOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
- Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-