All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tensorflow.framework.RunMetadata Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/core/protobuf/config.proto

package org.tensorflow.framework;

/**
 * 
 * Metadata output (i.e., non-Tensor) for a single Run() call.
 * 
* * Protobuf type {@code tensorflow.RunMetadata} */ public final class RunMetadata extends org.nd4j.shade.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:tensorflow.RunMetadata) RunMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use RunMetadata.newBuilder() to construct. private RunMetadata(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RunMetadata() { partitionGraphs_ = java.util.Collections.emptyList(); } @java.lang.Override public final org.nd4j.shade.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RunMetadata( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields = org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tensorflow.framework.StepStats.Builder subBuilder = null; if (stepStats_ != null) { subBuilder = stepStats_.toBuilder(); } stepStats_ = input.readMessage(org.tensorflow.framework.StepStats.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stepStats_); stepStats_ = subBuilder.buildPartial(); } break; } case 18: { org.tensorflow.framework.CostGraphDef.Builder subBuilder = null; if (costGraph_ != null) { subBuilder = costGraph_.toBuilder(); } costGraph_ = input.readMessage(org.tensorflow.framework.CostGraphDef.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(costGraph_); costGraph_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { partitionGraphs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } partitionGraphs_.add( input.readMessage(org.tensorflow.framework.GraphDef.parser(), extensionRegistry)); break; } } } } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { partitionGraphs_ = java.util.Collections.unmodifiableList(partitionGraphs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.ConfigProtos.internal_static_tensorflow_RunMetadata_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.ConfigProtos.internal_static_tensorflow_RunMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.RunMetadata.class, org.tensorflow.framework.RunMetadata.Builder.class); } private int bitField0_; public static final int STEP_STATS_FIELD_NUMBER = 1; private org.tensorflow.framework.StepStats stepStats_; /** *
   * Statistics traced for this step. Populated if tracing is turned on via the
   * "RunOptions" proto.
   * EXPERIMENTAL: The format and set of events may change in future versions.
   * 
* * .tensorflow.StepStats step_stats = 1; */ public boolean hasStepStats() { return stepStats_ != null; } /** *
   * Statistics traced for this step. Populated if tracing is turned on via the
   * "RunOptions" proto.
   * EXPERIMENTAL: The format and set of events may change in future versions.
   * 
* * .tensorflow.StepStats step_stats = 1; */ public org.tensorflow.framework.StepStats getStepStats() { return stepStats_ == null ? org.tensorflow.framework.StepStats.getDefaultInstance() : stepStats_; } /** *
   * Statistics traced for this step. Populated if tracing is turned on via the
   * "RunOptions" proto.
   * EXPERIMENTAL: The format and set of events may change in future versions.
   * 
* * .tensorflow.StepStats step_stats = 1; */ public org.tensorflow.framework.StepStatsOrBuilder getStepStatsOrBuilder() { return getStepStats(); } public static final int COST_GRAPH_FIELD_NUMBER = 2; private org.tensorflow.framework.CostGraphDef costGraph_; /** *
   * The cost graph for the computation defined by the run call.
   * 
* * .tensorflow.CostGraphDef cost_graph = 2; */ public boolean hasCostGraph() { return costGraph_ != null; } /** *
   * The cost graph for the computation defined by the run call.
   * 
* * .tensorflow.CostGraphDef cost_graph = 2; */ public org.tensorflow.framework.CostGraphDef getCostGraph() { return costGraph_ == null ? org.tensorflow.framework.CostGraphDef.getDefaultInstance() : costGraph_; } /** *
   * The cost graph for the computation defined by the run call.
   * 
* * .tensorflow.CostGraphDef cost_graph = 2; */ public org.tensorflow.framework.CostGraphDefOrBuilder getCostGraphOrBuilder() { return getCostGraph(); } public static final int PARTITION_GRAPHS_FIELD_NUMBER = 3; private java.util.List partitionGraphs_; /** *
   * Graphs of the partitions executed by executors.
   * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public java.util.List getPartitionGraphsList() { return partitionGraphs_; } /** *
   * Graphs of the partitions executed by executors.
   * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public java.util.List getPartitionGraphsOrBuilderList() { return partitionGraphs_; } /** *
   * Graphs of the partitions executed by executors.
   * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public int getPartitionGraphsCount() { return partitionGraphs_.size(); } /** *
   * Graphs of the partitions executed by executors.
   * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public org.tensorflow.framework.GraphDef getPartitionGraphs(int index) { return partitionGraphs_.get(index); } /** *
   * Graphs of the partitions executed by executors.
   * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public org.tensorflow.framework.GraphDefOrBuilder getPartitionGraphsOrBuilder( int index) { return partitionGraphs_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.nd4j.shade.protobuf.CodedOutputStream output) throws java.io.IOException { if (stepStats_ != null) { output.writeMessage(1, getStepStats()); } if (costGraph_ != null) { output.writeMessage(2, getCostGraph()); } for (int i = 0; i < partitionGraphs_.size(); i++) { output.writeMessage(3, partitionGraphs_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (stepStats_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(1, getStepStats()); } if (costGraph_ != null) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(2, getCostGraph()); } for (int i = 0; i < partitionGraphs_.size(); i++) { size += org.nd4j.shade.protobuf.CodedOutputStream .computeMessageSize(3, partitionGraphs_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tensorflow.framework.RunMetadata)) { return super.equals(obj); } org.tensorflow.framework.RunMetadata other = (org.tensorflow.framework.RunMetadata) obj; boolean result = true; result = result && (hasStepStats() == other.hasStepStats()); if (hasStepStats()) { result = result && getStepStats() .equals(other.getStepStats()); } result = result && (hasCostGraph() == other.hasCostGraph()); if (hasCostGraph()) { result = result && getCostGraph() .equals(other.getCostGraph()); } result = result && getPartitionGraphsList() .equals(other.getPartitionGraphsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStepStats()) { hash = (37 * hash) + STEP_STATS_FIELD_NUMBER; hash = (53 * hash) + getStepStats().hashCode(); } if (hasCostGraph()) { hash = (37 * hash) + COST_GRAPH_FIELD_NUMBER; hash = (53 * hash) + getCostGraph().hashCode(); } if (getPartitionGraphsCount() > 0) { hash = (37 * hash) + PARTITION_GRAPHS_FIELD_NUMBER; hash = (53 * hash) + getPartitionGraphsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tensorflow.framework.RunMetadata parseFrom( java.nio.ByteBuffer data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.RunMetadata parseFrom( java.nio.ByteBuffer data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.RunMetadata parseFrom( org.nd4j.shade.protobuf.ByteString data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.RunMetadata parseFrom( org.nd4j.shade.protobuf.ByteString data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.RunMetadata parseFrom(byte[] data) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tensorflow.framework.RunMetadata parseFrom( byte[] data, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tensorflow.framework.RunMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.RunMetadata parseFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.RunMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tensorflow.framework.RunMetadata parseDelimitedFrom( java.io.InputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tensorflow.framework.RunMetadata parseFrom( org.nd4j.shade.protobuf.CodedInputStream input) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tensorflow.framework.RunMetadata parseFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.nd4j.shade.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tensorflow.framework.RunMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Metadata output (i.e., non-Tensor) for a single Run() call.
   * 
* * Protobuf type {@code tensorflow.RunMetadata} */ public static final class Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tensorflow.RunMetadata) org.tensorflow.framework.RunMetadataOrBuilder { public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor() { return org.tensorflow.framework.ConfigProtos.internal_static_tensorflow_RunMetadata_descriptor; } protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tensorflow.framework.ConfigProtos.internal_static_tensorflow_RunMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tensorflow.framework.RunMetadata.class, org.tensorflow.framework.RunMetadata.Builder.class); } // Construct using org.tensorflow.framework.RunMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.nd4j.shade.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPartitionGraphsFieldBuilder(); } } public Builder clear() { super.clear(); if (stepStatsBuilder_ == null) { stepStats_ = null; } else { stepStats_ = null; stepStatsBuilder_ = null; } if (costGraphBuilder_ == null) { costGraph_ = null; } else { costGraph_ = null; costGraphBuilder_ = null; } if (partitionGraphsBuilder_ == null) { partitionGraphs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { partitionGraphsBuilder_.clear(); } return this; } public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tensorflow.framework.ConfigProtos.internal_static_tensorflow_RunMetadata_descriptor; } public org.tensorflow.framework.RunMetadata getDefaultInstanceForType() { return org.tensorflow.framework.RunMetadata.getDefaultInstance(); } public org.tensorflow.framework.RunMetadata build() { org.tensorflow.framework.RunMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tensorflow.framework.RunMetadata buildPartial() { org.tensorflow.framework.RunMetadata result = new org.tensorflow.framework.RunMetadata(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (stepStatsBuilder_ == null) { result.stepStats_ = stepStats_; } else { result.stepStats_ = stepStatsBuilder_.build(); } if (costGraphBuilder_ == null) { result.costGraph_ = costGraph_; } else { result.costGraph_ = costGraphBuilder_.build(); } if (partitionGraphsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { partitionGraphs_ = java.util.Collections.unmodifiableList(partitionGraphs_); bitField0_ = (bitField0_ & ~0x00000004); } result.partitionGraphs_ = partitionGraphs_; } else { result.partitionGraphs_ = partitionGraphsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) { if (other instanceof org.tensorflow.framework.RunMetadata) { return mergeFrom((org.tensorflow.framework.RunMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tensorflow.framework.RunMetadata other) { if (other == org.tensorflow.framework.RunMetadata.getDefaultInstance()) return this; if (other.hasStepStats()) { mergeStepStats(other.getStepStats()); } if (other.hasCostGraph()) { mergeCostGraph(other.getCostGraph()); } if (partitionGraphsBuilder_ == null) { if (!other.partitionGraphs_.isEmpty()) { if (partitionGraphs_.isEmpty()) { partitionGraphs_ = other.partitionGraphs_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePartitionGraphsIsMutable(); partitionGraphs_.addAll(other.partitionGraphs_); } onChanged(); } } else { if (!other.partitionGraphs_.isEmpty()) { if (partitionGraphsBuilder_.isEmpty()) { partitionGraphsBuilder_.dispose(); partitionGraphsBuilder_ = null; partitionGraphs_ = other.partitionGraphs_; bitField0_ = (bitField0_ & ~0x00000004); partitionGraphsBuilder_ = org.nd4j.shade.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartitionGraphsFieldBuilder() : null; } else { partitionGraphsBuilder_.addAllMessages(other.partitionGraphs_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tensorflow.framework.RunMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tensorflow.framework.RunMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tensorflow.framework.StepStats stepStats_ = null; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.StepStats, org.tensorflow.framework.StepStats.Builder, org.tensorflow.framework.StepStatsOrBuilder> stepStatsBuilder_; /** *
     * Statistics traced for this step. Populated if tracing is turned on via the
     * "RunOptions" proto.
     * EXPERIMENTAL: The format and set of events may change in future versions.
     * 
* * .tensorflow.StepStats step_stats = 1; */ public boolean hasStepStats() { return stepStatsBuilder_ != null || stepStats_ != null; } /** *
     * Statistics traced for this step. Populated if tracing is turned on via the
     * "RunOptions" proto.
     * EXPERIMENTAL: The format and set of events may change in future versions.
     * 
* * .tensorflow.StepStats step_stats = 1; */ public org.tensorflow.framework.StepStats getStepStats() { if (stepStatsBuilder_ == null) { return stepStats_ == null ? org.tensorflow.framework.StepStats.getDefaultInstance() : stepStats_; } else { return stepStatsBuilder_.getMessage(); } } /** *
     * Statistics traced for this step. Populated if tracing is turned on via the
     * "RunOptions" proto.
     * EXPERIMENTAL: The format and set of events may change in future versions.
     * 
* * .tensorflow.StepStats step_stats = 1; */ public Builder setStepStats(org.tensorflow.framework.StepStats value) { if (stepStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stepStats_ = value; onChanged(); } else { stepStatsBuilder_.setMessage(value); } return this; } /** *
     * Statistics traced for this step. Populated if tracing is turned on via the
     * "RunOptions" proto.
     * EXPERIMENTAL: The format and set of events may change in future versions.
     * 
* * .tensorflow.StepStats step_stats = 1; */ public Builder setStepStats( org.tensorflow.framework.StepStats.Builder builderForValue) { if (stepStatsBuilder_ == null) { stepStats_ = builderForValue.build(); onChanged(); } else { stepStatsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Statistics traced for this step. Populated if tracing is turned on via the
     * "RunOptions" proto.
     * EXPERIMENTAL: The format and set of events may change in future versions.
     * 
* * .tensorflow.StepStats step_stats = 1; */ public Builder mergeStepStats(org.tensorflow.framework.StepStats value) { if (stepStatsBuilder_ == null) { if (stepStats_ != null) { stepStats_ = org.tensorflow.framework.StepStats.newBuilder(stepStats_).mergeFrom(value).buildPartial(); } else { stepStats_ = value; } onChanged(); } else { stepStatsBuilder_.mergeFrom(value); } return this; } /** *
     * Statistics traced for this step. Populated if tracing is turned on via the
     * "RunOptions" proto.
     * EXPERIMENTAL: The format and set of events may change in future versions.
     * 
* * .tensorflow.StepStats step_stats = 1; */ public Builder clearStepStats() { if (stepStatsBuilder_ == null) { stepStats_ = null; onChanged(); } else { stepStats_ = null; stepStatsBuilder_ = null; } return this; } /** *
     * Statistics traced for this step. Populated if tracing is turned on via the
     * "RunOptions" proto.
     * EXPERIMENTAL: The format and set of events may change in future versions.
     * 
* * .tensorflow.StepStats step_stats = 1; */ public org.tensorflow.framework.StepStats.Builder getStepStatsBuilder() { onChanged(); return getStepStatsFieldBuilder().getBuilder(); } /** *
     * Statistics traced for this step. Populated if tracing is turned on via the
     * "RunOptions" proto.
     * EXPERIMENTAL: The format and set of events may change in future versions.
     * 
* * .tensorflow.StepStats step_stats = 1; */ public org.tensorflow.framework.StepStatsOrBuilder getStepStatsOrBuilder() { if (stepStatsBuilder_ != null) { return stepStatsBuilder_.getMessageOrBuilder(); } else { return stepStats_ == null ? org.tensorflow.framework.StepStats.getDefaultInstance() : stepStats_; } } /** *
     * Statistics traced for this step. Populated if tracing is turned on via the
     * "RunOptions" proto.
     * EXPERIMENTAL: The format and set of events may change in future versions.
     * 
* * .tensorflow.StepStats step_stats = 1; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.StepStats, org.tensorflow.framework.StepStats.Builder, org.tensorflow.framework.StepStatsOrBuilder> getStepStatsFieldBuilder() { if (stepStatsBuilder_ == null) { stepStatsBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.StepStats, org.tensorflow.framework.StepStats.Builder, org.tensorflow.framework.StepStatsOrBuilder>( getStepStats(), getParentForChildren(), isClean()); stepStats_ = null; } return stepStatsBuilder_; } private org.tensorflow.framework.CostGraphDef costGraph_ = null; private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CostGraphDef, org.tensorflow.framework.CostGraphDef.Builder, org.tensorflow.framework.CostGraphDefOrBuilder> costGraphBuilder_; /** *
     * The cost graph for the computation defined by the run call.
     * 
* * .tensorflow.CostGraphDef cost_graph = 2; */ public boolean hasCostGraph() { return costGraphBuilder_ != null || costGraph_ != null; } /** *
     * The cost graph for the computation defined by the run call.
     * 
* * .tensorflow.CostGraphDef cost_graph = 2; */ public org.tensorflow.framework.CostGraphDef getCostGraph() { if (costGraphBuilder_ == null) { return costGraph_ == null ? org.tensorflow.framework.CostGraphDef.getDefaultInstance() : costGraph_; } else { return costGraphBuilder_.getMessage(); } } /** *
     * The cost graph for the computation defined by the run call.
     * 
* * .tensorflow.CostGraphDef cost_graph = 2; */ public Builder setCostGraph(org.tensorflow.framework.CostGraphDef value) { if (costGraphBuilder_ == null) { if (value == null) { throw new NullPointerException(); } costGraph_ = value; onChanged(); } else { costGraphBuilder_.setMessage(value); } return this; } /** *
     * The cost graph for the computation defined by the run call.
     * 
* * .tensorflow.CostGraphDef cost_graph = 2; */ public Builder setCostGraph( org.tensorflow.framework.CostGraphDef.Builder builderForValue) { if (costGraphBuilder_ == null) { costGraph_ = builderForValue.build(); onChanged(); } else { costGraphBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The cost graph for the computation defined by the run call.
     * 
* * .tensorflow.CostGraphDef cost_graph = 2; */ public Builder mergeCostGraph(org.tensorflow.framework.CostGraphDef value) { if (costGraphBuilder_ == null) { if (costGraph_ != null) { costGraph_ = org.tensorflow.framework.CostGraphDef.newBuilder(costGraph_).mergeFrom(value).buildPartial(); } else { costGraph_ = value; } onChanged(); } else { costGraphBuilder_.mergeFrom(value); } return this; } /** *
     * The cost graph for the computation defined by the run call.
     * 
* * .tensorflow.CostGraphDef cost_graph = 2; */ public Builder clearCostGraph() { if (costGraphBuilder_ == null) { costGraph_ = null; onChanged(); } else { costGraph_ = null; costGraphBuilder_ = null; } return this; } /** *
     * The cost graph for the computation defined by the run call.
     * 
* * .tensorflow.CostGraphDef cost_graph = 2; */ public org.tensorflow.framework.CostGraphDef.Builder getCostGraphBuilder() { onChanged(); return getCostGraphFieldBuilder().getBuilder(); } /** *
     * The cost graph for the computation defined by the run call.
     * 
* * .tensorflow.CostGraphDef cost_graph = 2; */ public org.tensorflow.framework.CostGraphDefOrBuilder getCostGraphOrBuilder() { if (costGraphBuilder_ != null) { return costGraphBuilder_.getMessageOrBuilder(); } else { return costGraph_ == null ? org.tensorflow.framework.CostGraphDef.getDefaultInstance() : costGraph_; } } /** *
     * The cost graph for the computation defined by the run call.
     * 
* * .tensorflow.CostGraphDef cost_graph = 2; */ private org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CostGraphDef, org.tensorflow.framework.CostGraphDef.Builder, org.tensorflow.framework.CostGraphDefOrBuilder> getCostGraphFieldBuilder() { if (costGraphBuilder_ == null) { costGraphBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3< org.tensorflow.framework.CostGraphDef, org.tensorflow.framework.CostGraphDef.Builder, org.tensorflow.framework.CostGraphDefOrBuilder>( getCostGraph(), getParentForChildren(), isClean()); costGraph_ = null; } return costGraphBuilder_; } private java.util.List partitionGraphs_ = java.util.Collections.emptyList(); private void ensurePartitionGraphsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { partitionGraphs_ = new java.util.ArrayList(partitionGraphs_); bitField0_ |= 0x00000004; } } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.GraphDef, org.tensorflow.framework.GraphDef.Builder, org.tensorflow.framework.GraphDefOrBuilder> partitionGraphsBuilder_; /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public java.util.List getPartitionGraphsList() { if (partitionGraphsBuilder_ == null) { return java.util.Collections.unmodifiableList(partitionGraphs_); } else { return partitionGraphsBuilder_.getMessageList(); } } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public int getPartitionGraphsCount() { if (partitionGraphsBuilder_ == null) { return partitionGraphs_.size(); } else { return partitionGraphsBuilder_.getCount(); } } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public org.tensorflow.framework.GraphDef getPartitionGraphs(int index) { if (partitionGraphsBuilder_ == null) { return partitionGraphs_.get(index); } else { return partitionGraphsBuilder_.getMessage(index); } } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public Builder setPartitionGraphs( int index, org.tensorflow.framework.GraphDef value) { if (partitionGraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionGraphsIsMutable(); partitionGraphs_.set(index, value); onChanged(); } else { partitionGraphsBuilder_.setMessage(index, value); } return this; } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public Builder setPartitionGraphs( int index, org.tensorflow.framework.GraphDef.Builder builderForValue) { if (partitionGraphsBuilder_ == null) { ensurePartitionGraphsIsMutable(); partitionGraphs_.set(index, builderForValue.build()); onChanged(); } else { partitionGraphsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public Builder addPartitionGraphs(org.tensorflow.framework.GraphDef value) { if (partitionGraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionGraphsIsMutable(); partitionGraphs_.add(value); onChanged(); } else { partitionGraphsBuilder_.addMessage(value); } return this; } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public Builder addPartitionGraphs( int index, org.tensorflow.framework.GraphDef value) { if (partitionGraphsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionGraphsIsMutable(); partitionGraphs_.add(index, value); onChanged(); } else { partitionGraphsBuilder_.addMessage(index, value); } return this; } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public Builder addPartitionGraphs( org.tensorflow.framework.GraphDef.Builder builderForValue) { if (partitionGraphsBuilder_ == null) { ensurePartitionGraphsIsMutable(); partitionGraphs_.add(builderForValue.build()); onChanged(); } else { partitionGraphsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public Builder addPartitionGraphs( int index, org.tensorflow.framework.GraphDef.Builder builderForValue) { if (partitionGraphsBuilder_ == null) { ensurePartitionGraphsIsMutable(); partitionGraphs_.add(index, builderForValue.build()); onChanged(); } else { partitionGraphsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public Builder addAllPartitionGraphs( java.lang.Iterable values) { if (partitionGraphsBuilder_ == null) { ensurePartitionGraphsIsMutable(); org.nd4j.shade.protobuf.AbstractMessageLite.Builder.addAll( values, partitionGraphs_); onChanged(); } else { partitionGraphsBuilder_.addAllMessages(values); } return this; } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public Builder clearPartitionGraphs() { if (partitionGraphsBuilder_ == null) { partitionGraphs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { partitionGraphsBuilder_.clear(); } return this; } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public Builder removePartitionGraphs(int index) { if (partitionGraphsBuilder_ == null) { ensurePartitionGraphsIsMutable(); partitionGraphs_.remove(index); onChanged(); } else { partitionGraphsBuilder_.remove(index); } return this; } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public org.tensorflow.framework.GraphDef.Builder getPartitionGraphsBuilder( int index) { return getPartitionGraphsFieldBuilder().getBuilder(index); } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public org.tensorflow.framework.GraphDefOrBuilder getPartitionGraphsOrBuilder( int index) { if (partitionGraphsBuilder_ == null) { return partitionGraphs_.get(index); } else { return partitionGraphsBuilder_.getMessageOrBuilder(index); } } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public java.util.List getPartitionGraphsOrBuilderList() { if (partitionGraphsBuilder_ != null) { return partitionGraphsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(partitionGraphs_); } } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public org.tensorflow.framework.GraphDef.Builder addPartitionGraphsBuilder() { return getPartitionGraphsFieldBuilder().addBuilder( org.tensorflow.framework.GraphDef.getDefaultInstance()); } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public org.tensorflow.framework.GraphDef.Builder addPartitionGraphsBuilder( int index) { return getPartitionGraphsFieldBuilder().addBuilder( index, org.tensorflow.framework.GraphDef.getDefaultInstance()); } /** *
     * Graphs of the partitions executed by executors.
     * 
* * repeated .tensorflow.GraphDef partition_graphs = 3; */ public java.util.List getPartitionGraphsBuilderList() { return getPartitionGraphsFieldBuilder().getBuilderList(); } private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.GraphDef, org.tensorflow.framework.GraphDef.Builder, org.tensorflow.framework.GraphDefOrBuilder> getPartitionGraphsFieldBuilder() { if (partitionGraphsBuilder_ == null) { partitionGraphsBuilder_ = new org.nd4j.shade.protobuf.RepeatedFieldBuilderV3< org.tensorflow.framework.GraphDef, org.tensorflow.framework.GraphDef.Builder, org.tensorflow.framework.GraphDefOrBuilder>( partitionGraphs_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); partitionGraphs_ = null; } return partitionGraphsBuilder_; } public final Builder setUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tensorflow.RunMetadata) } // @@protoc_insertion_point(class_scope:tensorflow.RunMetadata) private static final org.tensorflow.framework.RunMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tensorflow.framework.RunMetadata(); } public static org.tensorflow.framework.RunMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.nd4j.shade.protobuf.Parser PARSER = new org.nd4j.shade.protobuf.AbstractParser() { public RunMetadata parsePartialFrom( org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws org.nd4j.shade.protobuf.InvalidProtocolBufferException { return new RunMetadata(input, extensionRegistry); } }; public static org.nd4j.shade.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.nd4j.shade.protobuf.Parser getParserForType() { return PARSER; } public org.tensorflow.framework.RunMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy