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

xrt.Xrt Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: tensorflow/compiler/xrt/xrt.proto

package xrt;

public final class Xrt {
  private Xrt() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface XLAComputationConfigOrBuilder extends
      // @@protoc_insertion_point(interface_extends:xrt.XLAComputationConfig)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * The number of replicas the computation will be run on. If this is
     * default (0) it is interpreted as 1.
     * 
* * int32 num_replicas = 1; */ int getNumReplicas(); /** *
     * The number of "model-parallel" cores per replica. If this is
     * default (0) it is interpreted as 1.
     * 
* * int32 num_cores_per_replica = 2; */ int getNumCoresPerReplica(); /** *
     * Optional metadata about host sends and recvs.
     * 
* * .tensorflow.tf2xla.HostComputeMetadata host_compute_metadata = 3; */ boolean hasHostComputeMetadata(); /** *
     * Optional metadata about host sends and recvs.
     * 
* * .tensorflow.tf2xla.HostComputeMetadata host_compute_metadata = 3; */ org.tensorflow.tf2xla.HostComputeMetadata getHostComputeMetadata(); /** *
     * Optional metadata about host sends and recvs.
     * 
* * .tensorflow.tf2xla.HostComputeMetadata host_compute_metadata = 3; */ org.tensorflow.tf2xla.HostComputeMetadataOrBuilder getHostComputeMetadataOrBuilder(); /** *
     * The arg/result shapes for the whole computation.
     * 
* * .xla.ProgramShape program_shape = 4; */ boolean hasProgramShape(); /** *
     * The arg/result shapes for the whole computation.
     * 
* * .xla.ProgramShape program_shape = 4; */ xla.XlaData.ProgramShape getProgramShape(); /** *
     * The arg/result shapes for the whole computation.
     * 
* * .xla.ProgramShape program_shape = 4; */ xla.XlaData.ProgramShapeOrBuilder getProgramShapeOrBuilder(); /** *
     * The arg/result shapes for each core of a model-parallel
     * computation. per_core_args_and_result_shapes is optional for a
     * single-core computation.
     * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ java.util.List getPerCoreProgramShapeList(); /** *
     * The arg/result shapes for each core of a model-parallel
     * computation. per_core_args_and_result_shapes is optional for a
     * single-core computation.
     * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ xla.XlaData.ProgramShape getPerCoreProgramShape(int index); /** *
     * The arg/result shapes for each core of a model-parallel
     * computation. per_core_args_and_result_shapes is optional for a
     * single-core computation.
     * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ int getPerCoreProgramShapeCount(); /** *
     * The arg/result shapes for each core of a model-parallel
     * computation. per_core_args_and_result_shapes is optional for a
     * single-core computation.
     * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ java.util.List getPerCoreProgramShapeOrBuilderList(); /** *
     * The arg/result shapes for each core of a model-parallel
     * computation. per_core_args_and_result_shapes is optional for a
     * single-core computation.
     * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ xla.XlaData.ProgramShapeOrBuilder getPerCoreProgramShapeOrBuilder( int index); } /** *
   * Options for an XLA compilation.
   * 
* * Protobuf type {@code xrt.XLAComputationConfig} */ public static final class XLAComputationConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:xrt.XLAComputationConfig) XLAComputationConfigOrBuilder { private static final long serialVersionUID = 0L; // Use XLAComputationConfig.newBuilder() to construct. private XLAComputationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private XLAComputationConfig() { numReplicas_ = 0; numCoresPerReplica_ = 0; perCoreProgramShape_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private XLAComputationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { numReplicas_ = input.readInt32(); break; } case 16: { numCoresPerReplica_ = input.readInt32(); break; } case 26: { org.tensorflow.tf2xla.HostComputeMetadata.Builder subBuilder = null; if (hostComputeMetadata_ != null) { subBuilder = hostComputeMetadata_.toBuilder(); } hostComputeMetadata_ = input.readMessage(org.tensorflow.tf2xla.HostComputeMetadata.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(hostComputeMetadata_); hostComputeMetadata_ = subBuilder.buildPartial(); } break; } case 34: { xla.XlaData.ProgramShape.Builder subBuilder = null; if (programShape_ != null) { subBuilder = programShape_.toBuilder(); } programShape_ = input.readMessage(xla.XlaData.ProgramShape.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(programShape_); programShape_ = subBuilder.buildPartial(); } break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { perCoreProgramShape_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } perCoreProgramShape_.add( input.readMessage(xla.XlaData.ProgramShape.parser(), extensionRegistry)); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { perCoreProgramShape_ = java.util.Collections.unmodifiableList(perCoreProgramShape_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xrt.Xrt.internal_static_xrt_XLAComputationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xrt.Xrt.internal_static_xrt_XLAComputationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( xrt.Xrt.XLAComputationConfig.class, xrt.Xrt.XLAComputationConfig.Builder.class); } private int bitField0_; public static final int NUM_REPLICAS_FIELD_NUMBER = 1; private int numReplicas_; /** *
     * The number of replicas the computation will be run on. If this is
     * default (0) it is interpreted as 1.
     * 
* * int32 num_replicas = 1; */ public int getNumReplicas() { return numReplicas_; } public static final int NUM_CORES_PER_REPLICA_FIELD_NUMBER = 2; private int numCoresPerReplica_; /** *
     * The number of "model-parallel" cores per replica. If this is
     * default (0) it is interpreted as 1.
     * 
* * int32 num_cores_per_replica = 2; */ public int getNumCoresPerReplica() { return numCoresPerReplica_; } public static final int HOST_COMPUTE_METADATA_FIELD_NUMBER = 3; private org.tensorflow.tf2xla.HostComputeMetadata hostComputeMetadata_; /** *
     * Optional metadata about host sends and recvs.
     * 
* * .tensorflow.tf2xla.HostComputeMetadata host_compute_metadata = 3; */ public boolean hasHostComputeMetadata() { return hostComputeMetadata_ != null; } /** *
     * Optional metadata about host sends and recvs.
     * 
* * .tensorflow.tf2xla.HostComputeMetadata host_compute_metadata = 3; */ public org.tensorflow.tf2xla.HostComputeMetadata getHostComputeMetadata() { return hostComputeMetadata_ == null ? org.tensorflow.tf2xla.HostComputeMetadata.getDefaultInstance() : hostComputeMetadata_; } /** *
     * Optional metadata about host sends and recvs.
     * 
* * .tensorflow.tf2xla.HostComputeMetadata host_compute_metadata = 3; */ public org.tensorflow.tf2xla.HostComputeMetadataOrBuilder getHostComputeMetadataOrBuilder() { return getHostComputeMetadata(); } public static final int PROGRAM_SHAPE_FIELD_NUMBER = 4; private xla.XlaData.ProgramShape programShape_; /** *
     * The arg/result shapes for the whole computation.
     * 
* * .xla.ProgramShape program_shape = 4; */ public boolean hasProgramShape() { return programShape_ != null; } /** *
     * The arg/result shapes for the whole computation.
     * 
* * .xla.ProgramShape program_shape = 4; */ public xla.XlaData.ProgramShape getProgramShape() { return programShape_ == null ? xla.XlaData.ProgramShape.getDefaultInstance() : programShape_; } /** *
     * The arg/result shapes for the whole computation.
     * 
* * .xla.ProgramShape program_shape = 4; */ public xla.XlaData.ProgramShapeOrBuilder getProgramShapeOrBuilder() { return getProgramShape(); } public static final int PER_CORE_PROGRAM_SHAPE_FIELD_NUMBER = 5; private java.util.List perCoreProgramShape_; /** *
     * The arg/result shapes for each core of a model-parallel
     * computation. per_core_args_and_result_shapes is optional for a
     * single-core computation.
     * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public java.util.List getPerCoreProgramShapeList() { return perCoreProgramShape_; } /** *
     * The arg/result shapes for each core of a model-parallel
     * computation. per_core_args_and_result_shapes is optional for a
     * single-core computation.
     * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public java.util.List getPerCoreProgramShapeOrBuilderList() { return perCoreProgramShape_; } /** *
     * The arg/result shapes for each core of a model-parallel
     * computation. per_core_args_and_result_shapes is optional for a
     * single-core computation.
     * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public int getPerCoreProgramShapeCount() { return perCoreProgramShape_.size(); } /** *
     * The arg/result shapes for each core of a model-parallel
     * computation. per_core_args_and_result_shapes is optional for a
     * single-core computation.
     * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public xla.XlaData.ProgramShape getPerCoreProgramShape(int index) { return perCoreProgramShape_.get(index); } /** *
     * The arg/result shapes for each core of a model-parallel
     * computation. per_core_args_and_result_shapes is optional for a
     * single-core computation.
     * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public xla.XlaData.ProgramShapeOrBuilder getPerCoreProgramShapeOrBuilder( int index) { return perCoreProgramShape_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (numReplicas_ != 0) { output.writeInt32(1, numReplicas_); } if (numCoresPerReplica_ != 0) { output.writeInt32(2, numCoresPerReplica_); } if (hostComputeMetadata_ != null) { output.writeMessage(3, getHostComputeMetadata()); } if (programShape_ != null) { output.writeMessage(4, getProgramShape()); } for (int i = 0; i < perCoreProgramShape_.size(); i++) { output.writeMessage(5, perCoreProgramShape_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (numReplicas_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, numReplicas_); } if (numCoresPerReplica_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, numCoresPerReplica_); } if (hostComputeMetadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getHostComputeMetadata()); } if (programShape_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getProgramShape()); } for (int i = 0; i < perCoreProgramShape_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, perCoreProgramShape_.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 xrt.Xrt.XLAComputationConfig)) { return super.equals(obj); } xrt.Xrt.XLAComputationConfig other = (xrt.Xrt.XLAComputationConfig) obj; boolean result = true; result = result && (getNumReplicas() == other.getNumReplicas()); result = result && (getNumCoresPerReplica() == other.getNumCoresPerReplica()); result = result && (hasHostComputeMetadata() == other.hasHostComputeMetadata()); if (hasHostComputeMetadata()) { result = result && getHostComputeMetadata() .equals(other.getHostComputeMetadata()); } result = result && (hasProgramShape() == other.hasProgramShape()); if (hasProgramShape()) { result = result && getProgramShape() .equals(other.getProgramShape()); } result = result && getPerCoreProgramShapeList() .equals(other.getPerCoreProgramShapeList()); 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(); hash = (37 * hash) + NUM_REPLICAS_FIELD_NUMBER; hash = (53 * hash) + getNumReplicas(); hash = (37 * hash) + NUM_CORES_PER_REPLICA_FIELD_NUMBER; hash = (53 * hash) + getNumCoresPerReplica(); if (hasHostComputeMetadata()) { hash = (37 * hash) + HOST_COMPUTE_METADATA_FIELD_NUMBER; hash = (53 * hash) + getHostComputeMetadata().hashCode(); } if (hasProgramShape()) { hash = (37 * hash) + PROGRAM_SHAPE_FIELD_NUMBER; hash = (53 * hash) + getProgramShape().hashCode(); } if (getPerCoreProgramShapeCount() > 0) { hash = (37 * hash) + PER_CORE_PROGRAM_SHAPE_FIELD_NUMBER; hash = (53 * hash) + getPerCoreProgramShapeList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static xrt.Xrt.XLAComputationConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xrt.Xrt.XLAComputationConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xrt.Xrt.XLAComputationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xrt.Xrt.XLAComputationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xrt.Xrt.XLAComputationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xrt.Xrt.XLAComputationConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xrt.Xrt.XLAComputationConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xrt.Xrt.XLAComputationConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static xrt.Xrt.XLAComputationConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static xrt.Xrt.XLAComputationConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static xrt.Xrt.XLAComputationConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xrt.Xrt.XLAComputationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(xrt.Xrt.XLAComputationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Options for an XLA compilation.
     * 
* * Protobuf type {@code xrt.XLAComputationConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xrt.XLAComputationConfig) xrt.Xrt.XLAComputationConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xrt.Xrt.internal_static_xrt_XLAComputationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xrt.Xrt.internal_static_xrt_XLAComputationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( xrt.Xrt.XLAComputationConfig.class, xrt.Xrt.XLAComputationConfig.Builder.class); } // Construct using xrt.Xrt.XLAComputationConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPerCoreProgramShapeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); numReplicas_ = 0; numCoresPerReplica_ = 0; if (hostComputeMetadataBuilder_ == null) { hostComputeMetadata_ = null; } else { hostComputeMetadata_ = null; hostComputeMetadataBuilder_ = null; } if (programShapeBuilder_ == null) { programShape_ = null; } else { programShape_ = null; programShapeBuilder_ = null; } if (perCoreProgramShapeBuilder_ == null) { perCoreProgramShape_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { perCoreProgramShapeBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return xrt.Xrt.internal_static_xrt_XLAComputationConfig_descriptor; } @java.lang.Override public xrt.Xrt.XLAComputationConfig getDefaultInstanceForType() { return xrt.Xrt.XLAComputationConfig.getDefaultInstance(); } @java.lang.Override public xrt.Xrt.XLAComputationConfig build() { xrt.Xrt.XLAComputationConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public xrt.Xrt.XLAComputationConfig buildPartial() { xrt.Xrt.XLAComputationConfig result = new xrt.Xrt.XLAComputationConfig(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.numReplicas_ = numReplicas_; result.numCoresPerReplica_ = numCoresPerReplica_; if (hostComputeMetadataBuilder_ == null) { result.hostComputeMetadata_ = hostComputeMetadata_; } else { result.hostComputeMetadata_ = hostComputeMetadataBuilder_.build(); } if (programShapeBuilder_ == null) { result.programShape_ = programShape_; } else { result.programShape_ = programShapeBuilder_.build(); } if (perCoreProgramShapeBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { perCoreProgramShape_ = java.util.Collections.unmodifiableList(perCoreProgramShape_); bitField0_ = (bitField0_ & ~0x00000010); } result.perCoreProgramShape_ = perCoreProgramShape_; } else { result.perCoreProgramShape_ = perCoreProgramShapeBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof xrt.Xrt.XLAComputationConfig) { return mergeFrom((xrt.Xrt.XLAComputationConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(xrt.Xrt.XLAComputationConfig other) { if (other == xrt.Xrt.XLAComputationConfig.getDefaultInstance()) return this; if (other.getNumReplicas() != 0) { setNumReplicas(other.getNumReplicas()); } if (other.getNumCoresPerReplica() != 0) { setNumCoresPerReplica(other.getNumCoresPerReplica()); } if (other.hasHostComputeMetadata()) { mergeHostComputeMetadata(other.getHostComputeMetadata()); } if (other.hasProgramShape()) { mergeProgramShape(other.getProgramShape()); } if (perCoreProgramShapeBuilder_ == null) { if (!other.perCoreProgramShape_.isEmpty()) { if (perCoreProgramShape_.isEmpty()) { perCoreProgramShape_ = other.perCoreProgramShape_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensurePerCoreProgramShapeIsMutable(); perCoreProgramShape_.addAll(other.perCoreProgramShape_); } onChanged(); } } else { if (!other.perCoreProgramShape_.isEmpty()) { if (perCoreProgramShapeBuilder_.isEmpty()) { perCoreProgramShapeBuilder_.dispose(); perCoreProgramShapeBuilder_ = null; perCoreProgramShape_ = other.perCoreProgramShape_; bitField0_ = (bitField0_ & ~0x00000010); perCoreProgramShapeBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPerCoreProgramShapeFieldBuilder() : null; } else { perCoreProgramShapeBuilder_.addAllMessages(other.perCoreProgramShape_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { xrt.Xrt.XLAComputationConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (xrt.Xrt.XLAComputationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int numReplicas_ ; /** *
       * The number of replicas the computation will be run on. If this is
       * default (0) it is interpreted as 1.
       * 
* * int32 num_replicas = 1; */ public int getNumReplicas() { return numReplicas_; } /** *
       * The number of replicas the computation will be run on. If this is
       * default (0) it is interpreted as 1.
       * 
* * int32 num_replicas = 1; */ public Builder setNumReplicas(int value) { numReplicas_ = value; onChanged(); return this; } /** *
       * The number of replicas the computation will be run on. If this is
       * default (0) it is interpreted as 1.
       * 
* * int32 num_replicas = 1; */ public Builder clearNumReplicas() { numReplicas_ = 0; onChanged(); return this; } private int numCoresPerReplica_ ; /** *
       * The number of "model-parallel" cores per replica. If this is
       * default (0) it is interpreted as 1.
       * 
* * int32 num_cores_per_replica = 2; */ public int getNumCoresPerReplica() { return numCoresPerReplica_; } /** *
       * The number of "model-parallel" cores per replica. If this is
       * default (0) it is interpreted as 1.
       * 
* * int32 num_cores_per_replica = 2; */ public Builder setNumCoresPerReplica(int value) { numCoresPerReplica_ = value; onChanged(); return this; } /** *
       * The number of "model-parallel" cores per replica. If this is
       * default (0) it is interpreted as 1.
       * 
* * int32 num_cores_per_replica = 2; */ public Builder clearNumCoresPerReplica() { numCoresPerReplica_ = 0; onChanged(); return this; } private org.tensorflow.tf2xla.HostComputeMetadata hostComputeMetadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.tf2xla.HostComputeMetadata, org.tensorflow.tf2xla.HostComputeMetadata.Builder, org.tensorflow.tf2xla.HostComputeMetadataOrBuilder> hostComputeMetadataBuilder_; /** *
       * Optional metadata about host sends and recvs.
       * 
* * .tensorflow.tf2xla.HostComputeMetadata host_compute_metadata = 3; */ public boolean hasHostComputeMetadata() { return hostComputeMetadataBuilder_ != null || hostComputeMetadata_ != null; } /** *
       * Optional metadata about host sends and recvs.
       * 
* * .tensorflow.tf2xla.HostComputeMetadata host_compute_metadata = 3; */ public org.tensorflow.tf2xla.HostComputeMetadata getHostComputeMetadata() { if (hostComputeMetadataBuilder_ == null) { return hostComputeMetadata_ == null ? org.tensorflow.tf2xla.HostComputeMetadata.getDefaultInstance() : hostComputeMetadata_; } else { return hostComputeMetadataBuilder_.getMessage(); } } /** *
       * Optional metadata about host sends and recvs.
       * 
* * .tensorflow.tf2xla.HostComputeMetadata host_compute_metadata = 3; */ public Builder setHostComputeMetadata(org.tensorflow.tf2xla.HostComputeMetadata value) { if (hostComputeMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hostComputeMetadata_ = value; onChanged(); } else { hostComputeMetadataBuilder_.setMessage(value); } return this; } /** *
       * Optional metadata about host sends and recvs.
       * 
* * .tensorflow.tf2xla.HostComputeMetadata host_compute_metadata = 3; */ public Builder setHostComputeMetadata( org.tensorflow.tf2xla.HostComputeMetadata.Builder builderForValue) { if (hostComputeMetadataBuilder_ == null) { hostComputeMetadata_ = builderForValue.build(); onChanged(); } else { hostComputeMetadataBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Optional metadata about host sends and recvs.
       * 
* * .tensorflow.tf2xla.HostComputeMetadata host_compute_metadata = 3; */ public Builder mergeHostComputeMetadata(org.tensorflow.tf2xla.HostComputeMetadata value) { if (hostComputeMetadataBuilder_ == null) { if (hostComputeMetadata_ != null) { hostComputeMetadata_ = org.tensorflow.tf2xla.HostComputeMetadata.newBuilder(hostComputeMetadata_).mergeFrom(value).buildPartial(); } else { hostComputeMetadata_ = value; } onChanged(); } else { hostComputeMetadataBuilder_.mergeFrom(value); } return this; } /** *
       * Optional metadata about host sends and recvs.
       * 
* * .tensorflow.tf2xla.HostComputeMetadata host_compute_metadata = 3; */ public Builder clearHostComputeMetadata() { if (hostComputeMetadataBuilder_ == null) { hostComputeMetadata_ = null; onChanged(); } else { hostComputeMetadata_ = null; hostComputeMetadataBuilder_ = null; } return this; } /** *
       * Optional metadata about host sends and recvs.
       * 
* * .tensorflow.tf2xla.HostComputeMetadata host_compute_metadata = 3; */ public org.tensorflow.tf2xla.HostComputeMetadata.Builder getHostComputeMetadataBuilder() { onChanged(); return getHostComputeMetadataFieldBuilder().getBuilder(); } /** *
       * Optional metadata about host sends and recvs.
       * 
* * .tensorflow.tf2xla.HostComputeMetadata host_compute_metadata = 3; */ public org.tensorflow.tf2xla.HostComputeMetadataOrBuilder getHostComputeMetadataOrBuilder() { if (hostComputeMetadataBuilder_ != null) { return hostComputeMetadataBuilder_.getMessageOrBuilder(); } else { return hostComputeMetadata_ == null ? org.tensorflow.tf2xla.HostComputeMetadata.getDefaultInstance() : hostComputeMetadata_; } } /** *
       * Optional metadata about host sends and recvs.
       * 
* * .tensorflow.tf2xla.HostComputeMetadata host_compute_metadata = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.tf2xla.HostComputeMetadata, org.tensorflow.tf2xla.HostComputeMetadata.Builder, org.tensorflow.tf2xla.HostComputeMetadataOrBuilder> getHostComputeMetadataFieldBuilder() { if (hostComputeMetadataBuilder_ == null) { hostComputeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tensorflow.tf2xla.HostComputeMetadata, org.tensorflow.tf2xla.HostComputeMetadata.Builder, org.tensorflow.tf2xla.HostComputeMetadataOrBuilder>( getHostComputeMetadata(), getParentForChildren(), isClean()); hostComputeMetadata_ = null; } return hostComputeMetadataBuilder_; } private xla.XlaData.ProgramShape programShape_ = null; private com.google.protobuf.SingleFieldBuilderV3< xla.XlaData.ProgramShape, xla.XlaData.ProgramShape.Builder, xla.XlaData.ProgramShapeOrBuilder> programShapeBuilder_; /** *
       * The arg/result shapes for the whole computation.
       * 
* * .xla.ProgramShape program_shape = 4; */ public boolean hasProgramShape() { return programShapeBuilder_ != null || programShape_ != null; } /** *
       * The arg/result shapes for the whole computation.
       * 
* * .xla.ProgramShape program_shape = 4; */ public xla.XlaData.ProgramShape getProgramShape() { if (programShapeBuilder_ == null) { return programShape_ == null ? xla.XlaData.ProgramShape.getDefaultInstance() : programShape_; } else { return programShapeBuilder_.getMessage(); } } /** *
       * The arg/result shapes for the whole computation.
       * 
* * .xla.ProgramShape program_shape = 4; */ public Builder setProgramShape(xla.XlaData.ProgramShape value) { if (programShapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } programShape_ = value; onChanged(); } else { programShapeBuilder_.setMessage(value); } return this; } /** *
       * The arg/result shapes for the whole computation.
       * 
* * .xla.ProgramShape program_shape = 4; */ public Builder setProgramShape( xla.XlaData.ProgramShape.Builder builderForValue) { if (programShapeBuilder_ == null) { programShape_ = builderForValue.build(); onChanged(); } else { programShapeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The arg/result shapes for the whole computation.
       * 
* * .xla.ProgramShape program_shape = 4; */ public Builder mergeProgramShape(xla.XlaData.ProgramShape value) { if (programShapeBuilder_ == null) { if (programShape_ != null) { programShape_ = xla.XlaData.ProgramShape.newBuilder(programShape_).mergeFrom(value).buildPartial(); } else { programShape_ = value; } onChanged(); } else { programShapeBuilder_.mergeFrom(value); } return this; } /** *
       * The arg/result shapes for the whole computation.
       * 
* * .xla.ProgramShape program_shape = 4; */ public Builder clearProgramShape() { if (programShapeBuilder_ == null) { programShape_ = null; onChanged(); } else { programShape_ = null; programShapeBuilder_ = null; } return this; } /** *
       * The arg/result shapes for the whole computation.
       * 
* * .xla.ProgramShape program_shape = 4; */ public xla.XlaData.ProgramShape.Builder getProgramShapeBuilder() { onChanged(); return getProgramShapeFieldBuilder().getBuilder(); } /** *
       * The arg/result shapes for the whole computation.
       * 
* * .xla.ProgramShape program_shape = 4; */ public xla.XlaData.ProgramShapeOrBuilder getProgramShapeOrBuilder() { if (programShapeBuilder_ != null) { return programShapeBuilder_.getMessageOrBuilder(); } else { return programShape_ == null ? xla.XlaData.ProgramShape.getDefaultInstance() : programShape_; } } /** *
       * The arg/result shapes for the whole computation.
       * 
* * .xla.ProgramShape program_shape = 4; */ private com.google.protobuf.SingleFieldBuilderV3< xla.XlaData.ProgramShape, xla.XlaData.ProgramShape.Builder, xla.XlaData.ProgramShapeOrBuilder> getProgramShapeFieldBuilder() { if (programShapeBuilder_ == null) { programShapeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< xla.XlaData.ProgramShape, xla.XlaData.ProgramShape.Builder, xla.XlaData.ProgramShapeOrBuilder>( getProgramShape(), getParentForChildren(), isClean()); programShape_ = null; } return programShapeBuilder_; } private java.util.List perCoreProgramShape_ = java.util.Collections.emptyList(); private void ensurePerCoreProgramShapeIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { perCoreProgramShape_ = new java.util.ArrayList(perCoreProgramShape_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< xla.XlaData.ProgramShape, xla.XlaData.ProgramShape.Builder, xla.XlaData.ProgramShapeOrBuilder> perCoreProgramShapeBuilder_; /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public java.util.List getPerCoreProgramShapeList() { if (perCoreProgramShapeBuilder_ == null) { return java.util.Collections.unmodifiableList(perCoreProgramShape_); } else { return perCoreProgramShapeBuilder_.getMessageList(); } } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public int getPerCoreProgramShapeCount() { if (perCoreProgramShapeBuilder_ == null) { return perCoreProgramShape_.size(); } else { return perCoreProgramShapeBuilder_.getCount(); } } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public xla.XlaData.ProgramShape getPerCoreProgramShape(int index) { if (perCoreProgramShapeBuilder_ == null) { return perCoreProgramShape_.get(index); } else { return perCoreProgramShapeBuilder_.getMessage(index); } } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public Builder setPerCoreProgramShape( int index, xla.XlaData.ProgramShape value) { if (perCoreProgramShapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePerCoreProgramShapeIsMutable(); perCoreProgramShape_.set(index, value); onChanged(); } else { perCoreProgramShapeBuilder_.setMessage(index, value); } return this; } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public Builder setPerCoreProgramShape( int index, xla.XlaData.ProgramShape.Builder builderForValue) { if (perCoreProgramShapeBuilder_ == null) { ensurePerCoreProgramShapeIsMutable(); perCoreProgramShape_.set(index, builderForValue.build()); onChanged(); } else { perCoreProgramShapeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public Builder addPerCoreProgramShape(xla.XlaData.ProgramShape value) { if (perCoreProgramShapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePerCoreProgramShapeIsMutable(); perCoreProgramShape_.add(value); onChanged(); } else { perCoreProgramShapeBuilder_.addMessage(value); } return this; } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public Builder addPerCoreProgramShape( int index, xla.XlaData.ProgramShape value) { if (perCoreProgramShapeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePerCoreProgramShapeIsMutable(); perCoreProgramShape_.add(index, value); onChanged(); } else { perCoreProgramShapeBuilder_.addMessage(index, value); } return this; } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public Builder addPerCoreProgramShape( xla.XlaData.ProgramShape.Builder builderForValue) { if (perCoreProgramShapeBuilder_ == null) { ensurePerCoreProgramShapeIsMutable(); perCoreProgramShape_.add(builderForValue.build()); onChanged(); } else { perCoreProgramShapeBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public Builder addPerCoreProgramShape( int index, xla.XlaData.ProgramShape.Builder builderForValue) { if (perCoreProgramShapeBuilder_ == null) { ensurePerCoreProgramShapeIsMutable(); perCoreProgramShape_.add(index, builderForValue.build()); onChanged(); } else { perCoreProgramShapeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public Builder addAllPerCoreProgramShape( java.lang.Iterable values) { if (perCoreProgramShapeBuilder_ == null) { ensurePerCoreProgramShapeIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, perCoreProgramShape_); onChanged(); } else { perCoreProgramShapeBuilder_.addAllMessages(values); } return this; } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public Builder clearPerCoreProgramShape() { if (perCoreProgramShapeBuilder_ == null) { perCoreProgramShape_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { perCoreProgramShapeBuilder_.clear(); } return this; } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public Builder removePerCoreProgramShape(int index) { if (perCoreProgramShapeBuilder_ == null) { ensurePerCoreProgramShapeIsMutable(); perCoreProgramShape_.remove(index); onChanged(); } else { perCoreProgramShapeBuilder_.remove(index); } return this; } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public xla.XlaData.ProgramShape.Builder getPerCoreProgramShapeBuilder( int index) { return getPerCoreProgramShapeFieldBuilder().getBuilder(index); } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public xla.XlaData.ProgramShapeOrBuilder getPerCoreProgramShapeOrBuilder( int index) { if (perCoreProgramShapeBuilder_ == null) { return perCoreProgramShape_.get(index); } else { return perCoreProgramShapeBuilder_.getMessageOrBuilder(index); } } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public java.util.List getPerCoreProgramShapeOrBuilderList() { if (perCoreProgramShapeBuilder_ != null) { return perCoreProgramShapeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(perCoreProgramShape_); } } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public xla.XlaData.ProgramShape.Builder addPerCoreProgramShapeBuilder() { return getPerCoreProgramShapeFieldBuilder().addBuilder( xla.XlaData.ProgramShape.getDefaultInstance()); } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public xla.XlaData.ProgramShape.Builder addPerCoreProgramShapeBuilder( int index) { return getPerCoreProgramShapeFieldBuilder().addBuilder( index, xla.XlaData.ProgramShape.getDefaultInstance()); } /** *
       * The arg/result shapes for each core of a model-parallel
       * computation. per_core_args_and_result_shapes is optional for a
       * single-core computation.
       * 
* * repeated .xla.ProgramShape per_core_program_shape = 5; */ public java.util.List getPerCoreProgramShapeBuilderList() { return getPerCoreProgramShapeFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< xla.XlaData.ProgramShape, xla.XlaData.ProgramShape.Builder, xla.XlaData.ProgramShapeOrBuilder> getPerCoreProgramShapeFieldBuilder() { if (perCoreProgramShapeBuilder_ == null) { perCoreProgramShapeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< xla.XlaData.ProgramShape, xla.XlaData.ProgramShape.Builder, xla.XlaData.ProgramShapeOrBuilder>( perCoreProgramShape_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); perCoreProgramShape_ = null; } return perCoreProgramShapeBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:xrt.XLAComputationConfig) } // @@protoc_insertion_point(class_scope:xrt.XLAComputationConfig) private static final xrt.Xrt.XLAComputationConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new xrt.Xrt.XLAComputationConfig(); } public static xrt.Xrt.XLAComputationConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public XLAComputationConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new XLAComputationConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public xrt.Xrt.XLAComputationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface XLAComputationOrBuilder extends // @@protoc_insertion_point(interface_extends:xrt.XLAComputation) com.google.protobuf.MessageOrBuilder { /** * .xrt.XLAComputationConfig config = 1; */ boolean hasConfig(); /** * .xrt.XLAComputationConfig config = 1; */ xrt.Xrt.XLAComputationConfig getConfig(); /** * .xrt.XLAComputationConfig config = 1; */ xrt.Xrt.XLAComputationConfigOrBuilder getConfigOrBuilder(); /** * .xla.HloSnapshot hlo_snapshot = 2; */ boolean hasHloSnapshot(); /** * .xla.HloSnapshot hlo_snapshot = 2; */ xla.Hlo.HloSnapshot getHloSnapshot(); /** * .xla.HloSnapshot hlo_snapshot = 2; */ xla.Hlo.HloSnapshotOrBuilder getHloSnapshotOrBuilder(); } /** *
   * Options and XLA computation for a compilation.
   * 
* * Protobuf type {@code xrt.XLAComputation} */ public static final class XLAComputation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:xrt.XLAComputation) XLAComputationOrBuilder { private static final long serialVersionUID = 0L; // Use XLAComputation.newBuilder() to construct. private XLAComputation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private XLAComputation() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private XLAComputation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { xrt.Xrt.XLAComputationConfig.Builder subBuilder = null; if (config_ != null) { subBuilder = config_.toBuilder(); } config_ = input.readMessage(xrt.Xrt.XLAComputationConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(config_); config_ = subBuilder.buildPartial(); } break; } case 18: { xla.Hlo.HloSnapshot.Builder subBuilder = null; if (hloSnapshot_ != null) { subBuilder = hloSnapshot_.toBuilder(); } hloSnapshot_ = input.readMessage(xla.Hlo.HloSnapshot.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(hloSnapshot_); hloSnapshot_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xrt.Xrt.internal_static_xrt_XLAComputation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xrt.Xrt.internal_static_xrt_XLAComputation_fieldAccessorTable .ensureFieldAccessorsInitialized( xrt.Xrt.XLAComputation.class, xrt.Xrt.XLAComputation.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private xrt.Xrt.XLAComputationConfig config_; /** * .xrt.XLAComputationConfig config = 1; */ public boolean hasConfig() { return config_ != null; } /** * .xrt.XLAComputationConfig config = 1; */ public xrt.Xrt.XLAComputationConfig getConfig() { return config_ == null ? xrt.Xrt.XLAComputationConfig.getDefaultInstance() : config_; } /** * .xrt.XLAComputationConfig config = 1; */ public xrt.Xrt.XLAComputationConfigOrBuilder getConfigOrBuilder() { return getConfig(); } public static final int HLO_SNAPSHOT_FIELD_NUMBER = 2; private xla.Hlo.HloSnapshot hloSnapshot_; /** * .xla.HloSnapshot hlo_snapshot = 2; */ public boolean hasHloSnapshot() { return hloSnapshot_ != null; } /** * .xla.HloSnapshot hlo_snapshot = 2; */ public xla.Hlo.HloSnapshot getHloSnapshot() { return hloSnapshot_ == null ? xla.Hlo.HloSnapshot.getDefaultInstance() : hloSnapshot_; } /** * .xla.HloSnapshot hlo_snapshot = 2; */ public xla.Hlo.HloSnapshotOrBuilder getHloSnapshotOrBuilder() { return getHloSnapshot(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } if (hloSnapshot_ != null) { output.writeMessage(2, getHloSnapshot()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (config_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getConfig()); } if (hloSnapshot_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getHloSnapshot()); } 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 xrt.Xrt.XLAComputation)) { return super.equals(obj); } xrt.Xrt.XLAComputation other = (xrt.Xrt.XLAComputation) obj; boolean result = true; result = result && (hasConfig() == other.hasConfig()); if (hasConfig()) { result = result && getConfig() .equals(other.getConfig()); } result = result && (hasHloSnapshot() == other.hasHloSnapshot()); if (hasHloSnapshot()) { result = result && getHloSnapshot() .equals(other.getHloSnapshot()); } 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 (hasConfig()) { hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); } if (hasHloSnapshot()) { hash = (37 * hash) + HLO_SNAPSHOT_FIELD_NUMBER; hash = (53 * hash) + getHloSnapshot().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static xrt.Xrt.XLAComputation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xrt.Xrt.XLAComputation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xrt.Xrt.XLAComputation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xrt.Xrt.XLAComputation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xrt.Xrt.XLAComputation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xrt.Xrt.XLAComputation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xrt.Xrt.XLAComputation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xrt.Xrt.XLAComputation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static xrt.Xrt.XLAComputation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static xrt.Xrt.XLAComputation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static xrt.Xrt.XLAComputation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xrt.Xrt.XLAComputation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(xrt.Xrt.XLAComputation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Options and XLA computation for a compilation.
     * 
* * Protobuf type {@code xrt.XLAComputation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xrt.XLAComputation) xrt.Xrt.XLAComputationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xrt.Xrt.internal_static_xrt_XLAComputation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xrt.Xrt.internal_static_xrt_XLAComputation_fieldAccessorTable .ensureFieldAccessorsInitialized( xrt.Xrt.XLAComputation.class, xrt.Xrt.XLAComputation.Builder.class); } // Construct using xrt.Xrt.XLAComputation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (configBuilder_ == null) { config_ = null; } else { config_ = null; configBuilder_ = null; } if (hloSnapshotBuilder_ == null) { hloSnapshot_ = null; } else { hloSnapshot_ = null; hloSnapshotBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return xrt.Xrt.internal_static_xrt_XLAComputation_descriptor; } @java.lang.Override public xrt.Xrt.XLAComputation getDefaultInstanceForType() { return xrt.Xrt.XLAComputation.getDefaultInstance(); } @java.lang.Override public xrt.Xrt.XLAComputation build() { xrt.Xrt.XLAComputation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public xrt.Xrt.XLAComputation buildPartial() { xrt.Xrt.XLAComputation result = new xrt.Xrt.XLAComputation(this); if (configBuilder_ == null) { result.config_ = config_; } else { result.config_ = configBuilder_.build(); } if (hloSnapshotBuilder_ == null) { result.hloSnapshot_ = hloSnapshot_; } else { result.hloSnapshot_ = hloSnapshotBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof xrt.Xrt.XLAComputation) { return mergeFrom((xrt.Xrt.XLAComputation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(xrt.Xrt.XLAComputation other) { if (other == xrt.Xrt.XLAComputation.getDefaultInstance()) return this; if (other.hasConfig()) { mergeConfig(other.getConfig()); } if (other.hasHloSnapshot()) { mergeHloSnapshot(other.getHloSnapshot()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { xrt.Xrt.XLAComputation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (xrt.Xrt.XLAComputation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private xrt.Xrt.XLAComputationConfig config_ = null; private com.google.protobuf.SingleFieldBuilderV3< xrt.Xrt.XLAComputationConfig, xrt.Xrt.XLAComputationConfig.Builder, xrt.Xrt.XLAComputationConfigOrBuilder> configBuilder_; /** * .xrt.XLAComputationConfig config = 1; */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** * .xrt.XLAComputationConfig config = 1; */ public xrt.Xrt.XLAComputationConfig getConfig() { if (configBuilder_ == null) { return config_ == null ? xrt.Xrt.XLAComputationConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** * .xrt.XLAComputationConfig config = 1; */ public Builder setConfig(xrt.Xrt.XLAComputationConfig value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } config_ = value; onChanged(); } else { configBuilder_.setMessage(value); } return this; } /** * .xrt.XLAComputationConfig config = 1; */ public Builder setConfig( xrt.Xrt.XLAComputationConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); } else { configBuilder_.setMessage(builderForValue.build()); } return this; } /** * .xrt.XLAComputationConfig config = 1; */ public Builder mergeConfig(xrt.Xrt.XLAComputationConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = xrt.Xrt.XLAComputationConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } onChanged(); } else { configBuilder_.mergeFrom(value); } return this; } /** * .xrt.XLAComputationConfig config = 1; */ public Builder clearConfig() { if (configBuilder_ == null) { config_ = null; onChanged(); } else { config_ = null; configBuilder_ = null; } return this; } /** * .xrt.XLAComputationConfig config = 1; */ public xrt.Xrt.XLAComputationConfig.Builder getConfigBuilder() { onChanged(); return getConfigFieldBuilder().getBuilder(); } /** * .xrt.XLAComputationConfig config = 1; */ public xrt.Xrt.XLAComputationConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { return config_ == null ? xrt.Xrt.XLAComputationConfig.getDefaultInstance() : config_; } } /** * .xrt.XLAComputationConfig config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< xrt.Xrt.XLAComputationConfig, xrt.Xrt.XLAComputationConfig.Builder, xrt.Xrt.XLAComputationConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< xrt.Xrt.XLAComputationConfig, xrt.Xrt.XLAComputationConfig.Builder, xrt.Xrt.XLAComputationConfigOrBuilder>( getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } private xla.Hlo.HloSnapshot hloSnapshot_ = null; private com.google.protobuf.SingleFieldBuilderV3< xla.Hlo.HloSnapshot, xla.Hlo.HloSnapshot.Builder, xla.Hlo.HloSnapshotOrBuilder> hloSnapshotBuilder_; /** * .xla.HloSnapshot hlo_snapshot = 2; */ public boolean hasHloSnapshot() { return hloSnapshotBuilder_ != null || hloSnapshot_ != null; } /** * .xla.HloSnapshot hlo_snapshot = 2; */ public xla.Hlo.HloSnapshot getHloSnapshot() { if (hloSnapshotBuilder_ == null) { return hloSnapshot_ == null ? xla.Hlo.HloSnapshot.getDefaultInstance() : hloSnapshot_; } else { return hloSnapshotBuilder_.getMessage(); } } /** * .xla.HloSnapshot hlo_snapshot = 2; */ public Builder setHloSnapshot(xla.Hlo.HloSnapshot value) { if (hloSnapshotBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hloSnapshot_ = value; onChanged(); } else { hloSnapshotBuilder_.setMessage(value); } return this; } /** * .xla.HloSnapshot hlo_snapshot = 2; */ public Builder setHloSnapshot( xla.Hlo.HloSnapshot.Builder builderForValue) { if (hloSnapshotBuilder_ == null) { hloSnapshot_ = builderForValue.build(); onChanged(); } else { hloSnapshotBuilder_.setMessage(builderForValue.build()); } return this; } /** * .xla.HloSnapshot hlo_snapshot = 2; */ public Builder mergeHloSnapshot(xla.Hlo.HloSnapshot value) { if (hloSnapshotBuilder_ == null) { if (hloSnapshot_ != null) { hloSnapshot_ = xla.Hlo.HloSnapshot.newBuilder(hloSnapshot_).mergeFrom(value).buildPartial(); } else { hloSnapshot_ = value; } onChanged(); } else { hloSnapshotBuilder_.mergeFrom(value); } return this; } /** * .xla.HloSnapshot hlo_snapshot = 2; */ public Builder clearHloSnapshot() { if (hloSnapshotBuilder_ == null) { hloSnapshot_ = null; onChanged(); } else { hloSnapshot_ = null; hloSnapshotBuilder_ = null; } return this; } /** * .xla.HloSnapshot hlo_snapshot = 2; */ public xla.Hlo.HloSnapshot.Builder getHloSnapshotBuilder() { onChanged(); return getHloSnapshotFieldBuilder().getBuilder(); } /** * .xla.HloSnapshot hlo_snapshot = 2; */ public xla.Hlo.HloSnapshotOrBuilder getHloSnapshotOrBuilder() { if (hloSnapshotBuilder_ != null) { return hloSnapshotBuilder_.getMessageOrBuilder(); } else { return hloSnapshot_ == null ? xla.Hlo.HloSnapshot.getDefaultInstance() : hloSnapshot_; } } /** * .xla.HloSnapshot hlo_snapshot = 2; */ private com.google.protobuf.SingleFieldBuilderV3< xla.Hlo.HloSnapshot, xla.Hlo.HloSnapshot.Builder, xla.Hlo.HloSnapshotOrBuilder> getHloSnapshotFieldBuilder() { if (hloSnapshotBuilder_ == null) { hloSnapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< xla.Hlo.HloSnapshot, xla.Hlo.HloSnapshot.Builder, xla.Hlo.HloSnapshotOrBuilder>( getHloSnapshot(), getParentForChildren(), isClean()); hloSnapshot_ = null; } return hloSnapshotBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:xrt.XLAComputation) } // @@protoc_insertion_point(class_scope:xrt.XLAComputation) private static final xrt.Xrt.XLAComputation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new xrt.Xrt.XLAComputation(); } public static xrt.Xrt.XLAComputation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public XLAComputation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new XLAComputation(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public xrt.Xrt.XLAComputation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface XLAAllocationOrBuilder extends // @@protoc_insertion_point(interface_extends:xrt.XLAAllocation) com.google.protobuf.MessageOrBuilder { /** * int32 device_ordinal = 1; */ int getDeviceOrdinal(); /** * .xla.LiteralProto value = 2; */ boolean hasValue(); /** * .xla.LiteralProto value = 2; */ xla.XlaData.LiteralProto getValue(); /** * .xla.LiteralProto value = 2; */ xla.XlaData.LiteralProtoOrBuilder getValueOrBuilder(); } /** *
   * Literal to allocate space for, and transfer to, device memory.
   * 
* * Protobuf type {@code xrt.XLAAllocation} */ public static final class XLAAllocation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:xrt.XLAAllocation) XLAAllocationOrBuilder { private static final long serialVersionUID = 0L; // Use XLAAllocation.newBuilder() to construct. private XLAAllocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private XLAAllocation() { deviceOrdinal_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private XLAAllocation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { deviceOrdinal_ = input.readInt32(); break; } case 18: { xla.XlaData.LiteralProto.Builder subBuilder = null; if (value_ != null) { subBuilder = value_.toBuilder(); } value_ = input.readMessage(xla.XlaData.LiteralProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(value_); value_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xrt.Xrt.internal_static_xrt_XLAAllocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xrt.Xrt.internal_static_xrt_XLAAllocation_fieldAccessorTable .ensureFieldAccessorsInitialized( xrt.Xrt.XLAAllocation.class, xrt.Xrt.XLAAllocation.Builder.class); } public static final int DEVICE_ORDINAL_FIELD_NUMBER = 1; private int deviceOrdinal_; /** * int32 device_ordinal = 1; */ public int getDeviceOrdinal() { return deviceOrdinal_; } public static final int VALUE_FIELD_NUMBER = 2; private xla.XlaData.LiteralProto value_; /** * .xla.LiteralProto value = 2; */ public boolean hasValue() { return value_ != null; } /** * .xla.LiteralProto value = 2; */ public xla.XlaData.LiteralProto getValue() { return value_ == null ? xla.XlaData.LiteralProto.getDefaultInstance() : value_; } /** * .xla.LiteralProto value = 2; */ public xla.XlaData.LiteralProtoOrBuilder getValueOrBuilder() { return getValue(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (deviceOrdinal_ != 0) { output.writeInt32(1, deviceOrdinal_); } if (value_ != null) { output.writeMessage(2, getValue()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (deviceOrdinal_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, deviceOrdinal_); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } 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 xrt.Xrt.XLAAllocation)) { return super.equals(obj); } xrt.Xrt.XLAAllocation other = (xrt.Xrt.XLAAllocation) obj; boolean result = true; result = result && (getDeviceOrdinal() == other.getDeviceOrdinal()); result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } 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(); hash = (37 * hash) + DEVICE_ORDINAL_FIELD_NUMBER; hash = (53 * hash) + getDeviceOrdinal(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static xrt.Xrt.XLAAllocation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xrt.Xrt.XLAAllocation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xrt.Xrt.XLAAllocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xrt.Xrt.XLAAllocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xrt.Xrt.XLAAllocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xrt.Xrt.XLAAllocation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xrt.Xrt.XLAAllocation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xrt.Xrt.XLAAllocation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static xrt.Xrt.XLAAllocation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static xrt.Xrt.XLAAllocation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static xrt.Xrt.XLAAllocation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xrt.Xrt.XLAAllocation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(xrt.Xrt.XLAAllocation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Literal to allocate space for, and transfer to, device memory.
     * 
* * Protobuf type {@code xrt.XLAAllocation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xrt.XLAAllocation) xrt.Xrt.XLAAllocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xrt.Xrt.internal_static_xrt_XLAAllocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xrt.Xrt.internal_static_xrt_XLAAllocation_fieldAccessorTable .ensureFieldAccessorsInitialized( xrt.Xrt.XLAAllocation.class, xrt.Xrt.XLAAllocation.Builder.class); } // Construct using xrt.Xrt.XLAAllocation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); deviceOrdinal_ = 0; if (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return xrt.Xrt.internal_static_xrt_XLAAllocation_descriptor; } @java.lang.Override public xrt.Xrt.XLAAllocation getDefaultInstanceForType() { return xrt.Xrt.XLAAllocation.getDefaultInstance(); } @java.lang.Override public xrt.Xrt.XLAAllocation build() { xrt.Xrt.XLAAllocation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public xrt.Xrt.XLAAllocation buildPartial() { xrt.Xrt.XLAAllocation result = new xrt.Xrt.XLAAllocation(this); result.deviceOrdinal_ = deviceOrdinal_; if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof xrt.Xrt.XLAAllocation) { return mergeFrom((xrt.Xrt.XLAAllocation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(xrt.Xrt.XLAAllocation other) { if (other == xrt.Xrt.XLAAllocation.getDefaultInstance()) return this; if (other.getDeviceOrdinal() != 0) { setDeviceOrdinal(other.getDeviceOrdinal()); } if (other.hasValue()) { mergeValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { xrt.Xrt.XLAAllocation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (xrt.Xrt.XLAAllocation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int deviceOrdinal_ ; /** * int32 device_ordinal = 1; */ public int getDeviceOrdinal() { return deviceOrdinal_; } /** * int32 device_ordinal = 1; */ public Builder setDeviceOrdinal(int value) { deviceOrdinal_ = value; onChanged(); return this; } /** * int32 device_ordinal = 1; */ public Builder clearDeviceOrdinal() { deviceOrdinal_ = 0; onChanged(); return this; } private xla.XlaData.LiteralProto value_ = null; private com.google.protobuf.SingleFieldBuilderV3< xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder> valueBuilder_; /** * .xla.LiteralProto value = 2; */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .xla.LiteralProto value = 2; */ public xla.XlaData.LiteralProto getValue() { if (valueBuilder_ == null) { return value_ == null ? xla.XlaData.LiteralProto.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .xla.LiteralProto value = 2; */ public Builder setValue(xla.XlaData.LiteralProto value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** * .xla.LiteralProto value = 2; */ public Builder setValue( xla.XlaData.LiteralProto.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** * .xla.LiteralProto value = 2; */ public Builder mergeValue(xla.XlaData.LiteralProto value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = xla.XlaData.LiteralProto.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** * .xla.LiteralProto value = 2; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * .xla.LiteralProto value = 2; */ public xla.XlaData.LiteralProto.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .xla.LiteralProto value = 2; */ public xla.XlaData.LiteralProtoOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? xla.XlaData.LiteralProto.getDefaultInstance() : value_; } } /** * .xla.LiteralProto value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< xla.XlaData.LiteralProto, xla.XlaData.LiteralProto.Builder, xla.XlaData.LiteralProtoOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:xrt.XLAAllocation) } // @@protoc_insertion_point(class_scope:xrt.XLAAllocation) private static final xrt.Xrt.XLAAllocation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new xrt.Xrt.XLAAllocation(); } public static xrt.Xrt.XLAAllocation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public XLAAllocation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new XLAAllocation(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public xrt.Xrt.XLAAllocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface XLATupleNodeOrBuilder extends // @@protoc_insertion_point(interface_extends:xrt.XLATupleNode) com.google.protobuf.MessageOrBuilder { /** * int32 input_index = 1; */ int getInputIndex(); /** * bool release_input_handle = 2; */ boolean getReleaseInputHandle(); /** * repeated .xrt.XLATupleNode tuples = 3; */ java.util.List getTuplesList(); /** * repeated .xrt.XLATupleNode tuples = 3; */ xrt.Xrt.XLATupleNode getTuples(int index); /** * repeated .xrt.XLATupleNode tuples = 3; */ int getTuplesCount(); /** * repeated .xrt.XLATupleNode tuples = 3; */ java.util.List getTuplesOrBuilderList(); /** * repeated .xrt.XLATupleNode tuples = 3; */ xrt.Xrt.XLATupleNodeOrBuilder getTuplesOrBuilder( int index); } /** *
   * Node in a tree describing a tuple constructed from input handles. A
   * node is an internal node if tuples is non-empty, in which case
   * input_index and release_input_handle are ignored. Otherwise a node
   * is a leaf node. Each leaf XLATupleNode is the index of an input
   * which corresponds to a handle that will be grafted onto the output
   * tuple at that location. If release_input_handle is true that input
   * handle will be released and become invalid.  Inputs may be repeated
   * in which case leaves of the output tuple will alias. If an input is
   * repeated, release_input_handle must be false for every leaf where
   * that input appears.
   * For example, if input 0 has shape {} and input 1 has shape {2,3}
   * then the XLATupleNode with structure {1,{0,1}} corresponds to a
   * tuple with shape {{2,3},{{},{2,3}}}.
   * 
* * Protobuf type {@code xrt.XLATupleNode} */ public static final class XLATupleNode extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:xrt.XLATupleNode) XLATupleNodeOrBuilder { private static final long serialVersionUID = 0L; // Use XLATupleNode.newBuilder() to construct. private XLATupleNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private XLATupleNode() { inputIndex_ = 0; releaseInputHandle_ = false; tuples_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private XLATupleNode( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { inputIndex_ = input.readInt32(); break; } case 16: { releaseInputHandle_ = input.readBool(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { tuples_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } tuples_.add( input.readMessage(xrt.Xrt.XLATupleNode.parser(), extensionRegistry)); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { tuples_ = java.util.Collections.unmodifiableList(tuples_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xrt.Xrt.internal_static_xrt_XLATupleNode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xrt.Xrt.internal_static_xrt_XLATupleNode_fieldAccessorTable .ensureFieldAccessorsInitialized( xrt.Xrt.XLATupleNode.class, xrt.Xrt.XLATupleNode.Builder.class); } private int bitField0_; public static final int INPUT_INDEX_FIELD_NUMBER = 1; private int inputIndex_; /** * int32 input_index = 1; */ public int getInputIndex() { return inputIndex_; } public static final int RELEASE_INPUT_HANDLE_FIELD_NUMBER = 2; private boolean releaseInputHandle_; /** * bool release_input_handle = 2; */ public boolean getReleaseInputHandle() { return releaseInputHandle_; } public static final int TUPLES_FIELD_NUMBER = 3; private java.util.List tuples_; /** * repeated .xrt.XLATupleNode tuples = 3; */ public java.util.List getTuplesList() { return tuples_; } /** * repeated .xrt.XLATupleNode tuples = 3; */ public java.util.List getTuplesOrBuilderList() { return tuples_; } /** * repeated .xrt.XLATupleNode tuples = 3; */ public int getTuplesCount() { return tuples_.size(); } /** * repeated .xrt.XLATupleNode tuples = 3; */ public xrt.Xrt.XLATupleNode getTuples(int index) { return tuples_.get(index); } /** * repeated .xrt.XLATupleNode tuples = 3; */ public xrt.Xrt.XLATupleNodeOrBuilder getTuplesOrBuilder( int index) { return tuples_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (inputIndex_ != 0) { output.writeInt32(1, inputIndex_); } if (releaseInputHandle_ != false) { output.writeBool(2, releaseInputHandle_); } for (int i = 0; i < tuples_.size(); i++) { output.writeMessage(3, tuples_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (inputIndex_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, inputIndex_); } if (releaseInputHandle_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, releaseInputHandle_); } for (int i = 0; i < tuples_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, tuples_.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 xrt.Xrt.XLATupleNode)) { return super.equals(obj); } xrt.Xrt.XLATupleNode other = (xrt.Xrt.XLATupleNode) obj; boolean result = true; result = result && (getInputIndex() == other.getInputIndex()); result = result && (getReleaseInputHandle() == other.getReleaseInputHandle()); result = result && getTuplesList() .equals(other.getTuplesList()); 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(); hash = (37 * hash) + INPUT_INDEX_FIELD_NUMBER; hash = (53 * hash) + getInputIndex(); hash = (37 * hash) + RELEASE_INPUT_HANDLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReleaseInputHandle()); if (getTuplesCount() > 0) { hash = (37 * hash) + TUPLES_FIELD_NUMBER; hash = (53 * hash) + getTuplesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static xrt.Xrt.XLATupleNode parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xrt.Xrt.XLATupleNode parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xrt.Xrt.XLATupleNode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xrt.Xrt.XLATupleNode parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xrt.Xrt.XLATupleNode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xrt.Xrt.XLATupleNode parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xrt.Xrt.XLATupleNode parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xrt.Xrt.XLATupleNode parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static xrt.Xrt.XLATupleNode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static xrt.Xrt.XLATupleNode parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static xrt.Xrt.XLATupleNode parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xrt.Xrt.XLATupleNode parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(xrt.Xrt.XLATupleNode prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Node in a tree describing a tuple constructed from input handles. A
     * node is an internal node if tuples is non-empty, in which case
     * input_index and release_input_handle are ignored. Otherwise a node
     * is a leaf node. Each leaf XLATupleNode is the index of an input
     * which corresponds to a handle that will be grafted onto the output
     * tuple at that location. If release_input_handle is true that input
     * handle will be released and become invalid.  Inputs may be repeated
     * in which case leaves of the output tuple will alias. If an input is
     * repeated, release_input_handle must be false for every leaf where
     * that input appears.
     * For example, if input 0 has shape {} and input 1 has shape {2,3}
     * then the XLATupleNode with structure {1,{0,1}} corresponds to a
     * tuple with shape {{2,3},{{},{2,3}}}.
     * 
* * Protobuf type {@code xrt.XLATupleNode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xrt.XLATupleNode) xrt.Xrt.XLATupleNodeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xrt.Xrt.internal_static_xrt_XLATupleNode_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xrt.Xrt.internal_static_xrt_XLATupleNode_fieldAccessorTable .ensureFieldAccessorsInitialized( xrt.Xrt.XLATupleNode.class, xrt.Xrt.XLATupleNode.Builder.class); } // Construct using xrt.Xrt.XLATupleNode.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTuplesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); inputIndex_ = 0; releaseInputHandle_ = false; if (tuplesBuilder_ == null) { tuples_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { tuplesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return xrt.Xrt.internal_static_xrt_XLATupleNode_descriptor; } @java.lang.Override public xrt.Xrt.XLATupleNode getDefaultInstanceForType() { return xrt.Xrt.XLATupleNode.getDefaultInstance(); } @java.lang.Override public xrt.Xrt.XLATupleNode build() { xrt.Xrt.XLATupleNode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public xrt.Xrt.XLATupleNode buildPartial() { xrt.Xrt.XLATupleNode result = new xrt.Xrt.XLATupleNode(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.inputIndex_ = inputIndex_; result.releaseInputHandle_ = releaseInputHandle_; if (tuplesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { tuples_ = java.util.Collections.unmodifiableList(tuples_); bitField0_ = (bitField0_ & ~0x00000004); } result.tuples_ = tuples_; } else { result.tuples_ = tuplesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof xrt.Xrt.XLATupleNode) { return mergeFrom((xrt.Xrt.XLATupleNode)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(xrt.Xrt.XLATupleNode other) { if (other == xrt.Xrt.XLATupleNode.getDefaultInstance()) return this; if (other.getInputIndex() != 0) { setInputIndex(other.getInputIndex()); } if (other.getReleaseInputHandle() != false) { setReleaseInputHandle(other.getReleaseInputHandle()); } if (tuplesBuilder_ == null) { if (!other.tuples_.isEmpty()) { if (tuples_.isEmpty()) { tuples_ = other.tuples_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTuplesIsMutable(); tuples_.addAll(other.tuples_); } onChanged(); } } else { if (!other.tuples_.isEmpty()) { if (tuplesBuilder_.isEmpty()) { tuplesBuilder_.dispose(); tuplesBuilder_ = null; tuples_ = other.tuples_; bitField0_ = (bitField0_ & ~0x00000004); tuplesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTuplesFieldBuilder() : null; } else { tuplesBuilder_.addAllMessages(other.tuples_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { xrt.Xrt.XLATupleNode parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (xrt.Xrt.XLATupleNode) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int inputIndex_ ; /** * int32 input_index = 1; */ public int getInputIndex() { return inputIndex_; } /** * int32 input_index = 1; */ public Builder setInputIndex(int value) { inputIndex_ = value; onChanged(); return this; } /** * int32 input_index = 1; */ public Builder clearInputIndex() { inputIndex_ = 0; onChanged(); return this; } private boolean releaseInputHandle_ ; /** * bool release_input_handle = 2; */ public boolean getReleaseInputHandle() { return releaseInputHandle_; } /** * bool release_input_handle = 2; */ public Builder setReleaseInputHandle(boolean value) { releaseInputHandle_ = value; onChanged(); return this; } /** * bool release_input_handle = 2; */ public Builder clearReleaseInputHandle() { releaseInputHandle_ = false; onChanged(); return this; } private java.util.List tuples_ = java.util.Collections.emptyList(); private void ensureTuplesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { tuples_ = new java.util.ArrayList(tuples_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< xrt.Xrt.XLATupleNode, xrt.Xrt.XLATupleNode.Builder, xrt.Xrt.XLATupleNodeOrBuilder> tuplesBuilder_; /** * repeated .xrt.XLATupleNode tuples = 3; */ public java.util.List getTuplesList() { if (tuplesBuilder_ == null) { return java.util.Collections.unmodifiableList(tuples_); } else { return tuplesBuilder_.getMessageList(); } } /** * repeated .xrt.XLATupleNode tuples = 3; */ public int getTuplesCount() { if (tuplesBuilder_ == null) { return tuples_.size(); } else { return tuplesBuilder_.getCount(); } } /** * repeated .xrt.XLATupleNode tuples = 3; */ public xrt.Xrt.XLATupleNode getTuples(int index) { if (tuplesBuilder_ == null) { return tuples_.get(index); } else { return tuplesBuilder_.getMessage(index); } } /** * repeated .xrt.XLATupleNode tuples = 3; */ public Builder setTuples( int index, xrt.Xrt.XLATupleNode value) { if (tuplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTuplesIsMutable(); tuples_.set(index, value); onChanged(); } else { tuplesBuilder_.setMessage(index, value); } return this; } /** * repeated .xrt.XLATupleNode tuples = 3; */ public Builder setTuples( int index, xrt.Xrt.XLATupleNode.Builder builderForValue) { if (tuplesBuilder_ == null) { ensureTuplesIsMutable(); tuples_.set(index, builderForValue.build()); onChanged(); } else { tuplesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .xrt.XLATupleNode tuples = 3; */ public Builder addTuples(xrt.Xrt.XLATupleNode value) { if (tuplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTuplesIsMutable(); tuples_.add(value); onChanged(); } else { tuplesBuilder_.addMessage(value); } return this; } /** * repeated .xrt.XLATupleNode tuples = 3; */ public Builder addTuples( int index, xrt.Xrt.XLATupleNode value) { if (tuplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTuplesIsMutable(); tuples_.add(index, value); onChanged(); } else { tuplesBuilder_.addMessage(index, value); } return this; } /** * repeated .xrt.XLATupleNode tuples = 3; */ public Builder addTuples( xrt.Xrt.XLATupleNode.Builder builderForValue) { if (tuplesBuilder_ == null) { ensureTuplesIsMutable(); tuples_.add(builderForValue.build()); onChanged(); } else { tuplesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .xrt.XLATupleNode tuples = 3; */ public Builder addTuples( int index, xrt.Xrt.XLATupleNode.Builder builderForValue) { if (tuplesBuilder_ == null) { ensureTuplesIsMutable(); tuples_.add(index, builderForValue.build()); onChanged(); } else { tuplesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .xrt.XLATupleNode tuples = 3; */ public Builder addAllTuples( java.lang.Iterable values) { if (tuplesBuilder_ == null) { ensureTuplesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tuples_); onChanged(); } else { tuplesBuilder_.addAllMessages(values); } return this; } /** * repeated .xrt.XLATupleNode tuples = 3; */ public Builder clearTuples() { if (tuplesBuilder_ == null) { tuples_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { tuplesBuilder_.clear(); } return this; } /** * repeated .xrt.XLATupleNode tuples = 3; */ public Builder removeTuples(int index) { if (tuplesBuilder_ == null) { ensureTuplesIsMutable(); tuples_.remove(index); onChanged(); } else { tuplesBuilder_.remove(index); } return this; } /** * repeated .xrt.XLATupleNode tuples = 3; */ public xrt.Xrt.XLATupleNode.Builder getTuplesBuilder( int index) { return getTuplesFieldBuilder().getBuilder(index); } /** * repeated .xrt.XLATupleNode tuples = 3; */ public xrt.Xrt.XLATupleNodeOrBuilder getTuplesOrBuilder( int index) { if (tuplesBuilder_ == null) { return tuples_.get(index); } else { return tuplesBuilder_.getMessageOrBuilder(index); } } /** * repeated .xrt.XLATupleNode tuples = 3; */ public java.util.List getTuplesOrBuilderList() { if (tuplesBuilder_ != null) { return tuplesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tuples_); } } /** * repeated .xrt.XLATupleNode tuples = 3; */ public xrt.Xrt.XLATupleNode.Builder addTuplesBuilder() { return getTuplesFieldBuilder().addBuilder( xrt.Xrt.XLATupleNode.getDefaultInstance()); } /** * repeated .xrt.XLATupleNode tuples = 3; */ public xrt.Xrt.XLATupleNode.Builder addTuplesBuilder( int index) { return getTuplesFieldBuilder().addBuilder( index, xrt.Xrt.XLATupleNode.getDefaultInstance()); } /** * repeated .xrt.XLATupleNode tuples = 3; */ public java.util.List getTuplesBuilderList() { return getTuplesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< xrt.Xrt.XLATupleNode, xrt.Xrt.XLATupleNode.Builder, xrt.Xrt.XLATupleNodeOrBuilder> getTuplesFieldBuilder() { if (tuplesBuilder_ == null) { tuplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< xrt.Xrt.XLATupleNode, xrt.Xrt.XLATupleNode.Builder, xrt.Xrt.XLATupleNodeOrBuilder>( tuples_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); tuples_ = null; } return tuplesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:xrt.XLATupleNode) } // @@protoc_insertion_point(class_scope:xrt.XLATupleNode) private static final xrt.Xrt.XLATupleNode DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new xrt.Xrt.XLATupleNode(); } public static xrt.Xrt.XLATupleNode getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public XLATupleNode parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new XLATupleNode(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public xrt.Xrt.XLATupleNode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface XRTExecutionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:xrt.XRTExecutionConfig) com.google.protobuf.MessageOrBuilder { /** *
     * Local device to run on. This is present because the execute Op
     * may be placed on a device such as CPU or TPU_SYSTEM that
     * logically manages multiple cores.
     * 
* * int32 device_ordinal = 1; */ int getDeviceOrdinal(); /** *
     * Which model-parallel computation to run from the compiled bundle.
     * 
* * int32 core_index_in_replica = 2; */ int getCoreIndexInReplica(); /** *
     * Optional key to disambiguate between executions. This is only
     * needed if multiple host send/recvs may be outstanding
     * concurrently with executions.
     * 
* * string execution_instance_key = 3; */ java.lang.String getExecutionInstanceKey(); /** *
     * Optional key to disambiguate between executions. This is only
     * needed if multiple host send/recvs may be outstanding
     * concurrently with executions.
     * 
* * string execution_instance_key = 3; */ com.google.protobuf.ByteString getExecutionInstanceKeyBytes(); /** *
     * If non-zero, rng_seed to reset the core with.
     * 
* * uint32 rng_seed = 4; */ int getRngSeed(); /** *
     * If true, release allocation handles on the inputs after running.
     * 
* * bool release_input_handles = 5; */ boolean getReleaseInputHandles(); /** *
     * If true, release the handle to the computation after running.
     * 
* * bool release_compilation_handle = 6; */ boolean getReleaseCompilationHandle(); } /** *
   * Options for an XLA execution.
   * 
* * Protobuf type {@code xrt.XRTExecutionConfig} */ public static final class XRTExecutionConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:xrt.XRTExecutionConfig) XRTExecutionConfigOrBuilder { private static final long serialVersionUID = 0L; // Use XRTExecutionConfig.newBuilder() to construct. private XRTExecutionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private XRTExecutionConfig() { deviceOrdinal_ = 0; coreIndexInReplica_ = 0; executionInstanceKey_ = ""; rngSeed_ = 0; releaseInputHandles_ = false; releaseCompilationHandle_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private XRTExecutionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { deviceOrdinal_ = input.readInt32(); break; } case 16: { coreIndexInReplica_ = input.readInt32(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); executionInstanceKey_ = s; break; } case 32: { rngSeed_ = input.readUInt32(); break; } case 40: { releaseInputHandles_ = input.readBool(); break; } case 48: { releaseCompilationHandle_ = input.readBool(); break; } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xrt.Xrt.internal_static_xrt_XRTExecutionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xrt.Xrt.internal_static_xrt_XRTExecutionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( xrt.Xrt.XRTExecutionConfig.class, xrt.Xrt.XRTExecutionConfig.Builder.class); } public static final int DEVICE_ORDINAL_FIELD_NUMBER = 1; private int deviceOrdinal_; /** *
     * Local device to run on. This is present because the execute Op
     * may be placed on a device such as CPU or TPU_SYSTEM that
     * logically manages multiple cores.
     * 
* * int32 device_ordinal = 1; */ public int getDeviceOrdinal() { return deviceOrdinal_; } public static final int CORE_INDEX_IN_REPLICA_FIELD_NUMBER = 2; private int coreIndexInReplica_; /** *
     * Which model-parallel computation to run from the compiled bundle.
     * 
* * int32 core_index_in_replica = 2; */ public int getCoreIndexInReplica() { return coreIndexInReplica_; } public static final int EXECUTION_INSTANCE_KEY_FIELD_NUMBER = 3; private volatile java.lang.Object executionInstanceKey_; /** *
     * Optional key to disambiguate between executions. This is only
     * needed if multiple host send/recvs may be outstanding
     * concurrently with executions.
     * 
* * string execution_instance_key = 3; */ public java.lang.String getExecutionInstanceKey() { java.lang.Object ref = executionInstanceKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); executionInstanceKey_ = s; return s; } } /** *
     * Optional key to disambiguate between executions. This is only
     * needed if multiple host send/recvs may be outstanding
     * concurrently with executions.
     * 
* * string execution_instance_key = 3; */ public com.google.protobuf.ByteString getExecutionInstanceKeyBytes() { java.lang.Object ref = executionInstanceKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); executionInstanceKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RNG_SEED_FIELD_NUMBER = 4; private int rngSeed_; /** *
     * If non-zero, rng_seed to reset the core with.
     * 
* * uint32 rng_seed = 4; */ public int getRngSeed() { return rngSeed_; } public static final int RELEASE_INPUT_HANDLES_FIELD_NUMBER = 5; private boolean releaseInputHandles_; /** *
     * If true, release allocation handles on the inputs after running.
     * 
* * bool release_input_handles = 5; */ public boolean getReleaseInputHandles() { return releaseInputHandles_; } public static final int RELEASE_COMPILATION_HANDLE_FIELD_NUMBER = 6; private boolean releaseCompilationHandle_; /** *
     * If true, release the handle to the computation after running.
     * 
* * bool release_compilation_handle = 6; */ public boolean getReleaseCompilationHandle() { return releaseCompilationHandle_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (deviceOrdinal_ != 0) { output.writeInt32(1, deviceOrdinal_); } if (coreIndexInReplica_ != 0) { output.writeInt32(2, coreIndexInReplica_); } if (!getExecutionInstanceKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, executionInstanceKey_); } if (rngSeed_ != 0) { output.writeUInt32(4, rngSeed_); } if (releaseInputHandles_ != false) { output.writeBool(5, releaseInputHandles_); } if (releaseCompilationHandle_ != false) { output.writeBool(6, releaseCompilationHandle_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (deviceOrdinal_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, deviceOrdinal_); } if (coreIndexInReplica_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, coreIndexInReplica_); } if (!getExecutionInstanceKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, executionInstanceKey_); } if (rngSeed_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, rngSeed_); } if (releaseInputHandles_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, releaseInputHandles_); } if (releaseCompilationHandle_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, releaseCompilationHandle_); } 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 xrt.Xrt.XRTExecutionConfig)) { return super.equals(obj); } xrt.Xrt.XRTExecutionConfig other = (xrt.Xrt.XRTExecutionConfig) obj; boolean result = true; result = result && (getDeviceOrdinal() == other.getDeviceOrdinal()); result = result && (getCoreIndexInReplica() == other.getCoreIndexInReplica()); result = result && getExecutionInstanceKey() .equals(other.getExecutionInstanceKey()); result = result && (getRngSeed() == other.getRngSeed()); result = result && (getReleaseInputHandles() == other.getReleaseInputHandles()); result = result && (getReleaseCompilationHandle() == other.getReleaseCompilationHandle()); 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(); hash = (37 * hash) + DEVICE_ORDINAL_FIELD_NUMBER; hash = (53 * hash) + getDeviceOrdinal(); hash = (37 * hash) + CORE_INDEX_IN_REPLICA_FIELD_NUMBER; hash = (53 * hash) + getCoreIndexInReplica(); hash = (37 * hash) + EXECUTION_INSTANCE_KEY_FIELD_NUMBER; hash = (53 * hash) + getExecutionInstanceKey().hashCode(); hash = (37 * hash) + RNG_SEED_FIELD_NUMBER; hash = (53 * hash) + getRngSeed(); hash = (37 * hash) + RELEASE_INPUT_HANDLES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReleaseInputHandles()); hash = (37 * hash) + RELEASE_COMPILATION_HANDLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReleaseCompilationHandle()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static xrt.Xrt.XRTExecutionConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xrt.Xrt.XRTExecutionConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xrt.Xrt.XRTExecutionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xrt.Xrt.XRTExecutionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xrt.Xrt.XRTExecutionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static xrt.Xrt.XRTExecutionConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static xrt.Xrt.XRTExecutionConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xrt.Xrt.XRTExecutionConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static xrt.Xrt.XRTExecutionConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static xrt.Xrt.XRTExecutionConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static xrt.Xrt.XRTExecutionConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static xrt.Xrt.XRTExecutionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(xrt.Xrt.XRTExecutionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Options for an XLA execution.
     * 
* * Protobuf type {@code xrt.XRTExecutionConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xrt.XRTExecutionConfig) xrt.Xrt.XRTExecutionConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return xrt.Xrt.internal_static_xrt_XRTExecutionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return xrt.Xrt.internal_static_xrt_XRTExecutionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( xrt.Xrt.XRTExecutionConfig.class, xrt.Xrt.XRTExecutionConfig.Builder.class); } // Construct using xrt.Xrt.XRTExecutionConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); deviceOrdinal_ = 0; coreIndexInReplica_ = 0; executionInstanceKey_ = ""; rngSeed_ = 0; releaseInputHandles_ = false; releaseCompilationHandle_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return xrt.Xrt.internal_static_xrt_XRTExecutionConfig_descriptor; } @java.lang.Override public xrt.Xrt.XRTExecutionConfig getDefaultInstanceForType() { return xrt.Xrt.XRTExecutionConfig.getDefaultInstance(); } @java.lang.Override public xrt.Xrt.XRTExecutionConfig build() { xrt.Xrt.XRTExecutionConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public xrt.Xrt.XRTExecutionConfig buildPartial() { xrt.Xrt.XRTExecutionConfig result = new xrt.Xrt.XRTExecutionConfig(this); result.deviceOrdinal_ = deviceOrdinal_; result.coreIndexInReplica_ = coreIndexInReplica_; result.executionInstanceKey_ = executionInstanceKey_; result.rngSeed_ = rngSeed_; result.releaseInputHandles_ = releaseInputHandles_; result.releaseCompilationHandle_ = releaseCompilationHandle_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof xrt.Xrt.XRTExecutionConfig) { return mergeFrom((xrt.Xrt.XRTExecutionConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(xrt.Xrt.XRTExecutionConfig other) { if (other == xrt.Xrt.XRTExecutionConfig.getDefaultInstance()) return this; if (other.getDeviceOrdinal() != 0) { setDeviceOrdinal(other.getDeviceOrdinal()); } if (other.getCoreIndexInReplica() != 0) { setCoreIndexInReplica(other.getCoreIndexInReplica()); } if (!other.getExecutionInstanceKey().isEmpty()) { executionInstanceKey_ = other.executionInstanceKey_; onChanged(); } if (other.getRngSeed() != 0) { setRngSeed(other.getRngSeed()); } if (other.getReleaseInputHandles() != false) { setReleaseInputHandles(other.getReleaseInputHandles()); } if (other.getReleaseCompilationHandle() != false) { setReleaseCompilationHandle(other.getReleaseCompilationHandle()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { xrt.Xrt.XRTExecutionConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (xrt.Xrt.XRTExecutionConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int deviceOrdinal_ ; /** *
       * Local device to run on. This is present because the execute Op
       * may be placed on a device such as CPU or TPU_SYSTEM that
       * logically manages multiple cores.
       * 
* * int32 device_ordinal = 1; */ public int getDeviceOrdinal() { return deviceOrdinal_; } /** *
       * Local device to run on. This is present because the execute Op
       * may be placed on a device such as CPU or TPU_SYSTEM that
       * logically manages multiple cores.
       * 
* * int32 device_ordinal = 1; */ public Builder setDeviceOrdinal(int value) { deviceOrdinal_ = value; onChanged(); return this; } /** *
       * Local device to run on. This is present because the execute Op
       * may be placed on a device such as CPU or TPU_SYSTEM that
       * logically manages multiple cores.
       * 
* * int32 device_ordinal = 1; */ public Builder clearDeviceOrdinal() { deviceOrdinal_ = 0; onChanged(); return this; } private int coreIndexInReplica_ ; /** *
       * Which model-parallel computation to run from the compiled bundle.
       * 
* * int32 core_index_in_replica = 2; */ public int getCoreIndexInReplica() { return coreIndexInReplica_; } /** *
       * Which model-parallel computation to run from the compiled bundle.
       * 
* * int32 core_index_in_replica = 2; */ public Builder setCoreIndexInReplica(int value) { coreIndexInReplica_ = value; onChanged(); return this; } /** *
       * Which model-parallel computation to run from the compiled bundle.
       * 
* * int32 core_index_in_replica = 2; */ public Builder clearCoreIndexInReplica() { coreIndexInReplica_ = 0; onChanged(); return this; } private java.lang.Object executionInstanceKey_ = ""; /** *
       * Optional key to disambiguate between executions. This is only
       * needed if multiple host send/recvs may be outstanding
       * concurrently with executions.
       * 
* * string execution_instance_key = 3; */ public java.lang.String getExecutionInstanceKey() { java.lang.Object ref = executionInstanceKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); executionInstanceKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Optional key to disambiguate between executions. This is only
       * needed if multiple host send/recvs may be outstanding
       * concurrently with executions.
       * 
* * string execution_instance_key = 3; */ public com.google.protobuf.ByteString getExecutionInstanceKeyBytes() { java.lang.Object ref = executionInstanceKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); executionInstanceKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Optional key to disambiguate between executions. This is only
       * needed if multiple host send/recvs may be outstanding
       * concurrently with executions.
       * 
* * string execution_instance_key = 3; */ public Builder setExecutionInstanceKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } executionInstanceKey_ = value; onChanged(); return this; } /** *
       * Optional key to disambiguate between executions. This is only
       * needed if multiple host send/recvs may be outstanding
       * concurrently with executions.
       * 
* * string execution_instance_key = 3; */ public Builder clearExecutionInstanceKey() { executionInstanceKey_ = getDefaultInstance().getExecutionInstanceKey(); onChanged(); return this; } /** *
       * Optional key to disambiguate between executions. This is only
       * needed if multiple host send/recvs may be outstanding
       * concurrently with executions.
       * 
* * string execution_instance_key = 3; */ public Builder setExecutionInstanceKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); executionInstanceKey_ = value; onChanged(); return this; } private int rngSeed_ ; /** *
       * If non-zero, rng_seed to reset the core with.
       * 
* * uint32 rng_seed = 4; */ public int getRngSeed() { return rngSeed_; } /** *
       * If non-zero, rng_seed to reset the core with.
       * 
* * uint32 rng_seed = 4; */ public Builder setRngSeed(int value) { rngSeed_ = value; onChanged(); return this; } /** *
       * If non-zero, rng_seed to reset the core with.
       * 
* * uint32 rng_seed = 4; */ public Builder clearRngSeed() { rngSeed_ = 0; onChanged(); return this; } private boolean releaseInputHandles_ ; /** *
       * If true, release allocation handles on the inputs after running.
       * 
* * bool release_input_handles = 5; */ public boolean getReleaseInputHandles() { return releaseInputHandles_; } /** *
       * If true, release allocation handles on the inputs after running.
       * 
* * bool release_input_handles = 5; */ public Builder setReleaseInputHandles(boolean value) { releaseInputHandles_ = value; onChanged(); return this; } /** *
       * If true, release allocation handles on the inputs after running.
       * 
* * bool release_input_handles = 5; */ public Builder clearReleaseInputHandles() { releaseInputHandles_ = false; onChanged(); return this; } private boolean releaseCompilationHandle_ ; /** *
       * If true, release the handle to the computation after running.
       * 
* * bool release_compilation_handle = 6; */ public boolean getReleaseCompilationHandle() { return releaseCompilationHandle_; } /** *
       * If true, release the handle to the computation after running.
       * 
* * bool release_compilation_handle = 6; */ public Builder setReleaseCompilationHandle(boolean value) { releaseCompilationHandle_ = value; onChanged(); return this; } /** *
       * If true, release the handle to the computation after running.
       * 
* * bool release_compilation_handle = 6; */ public Builder clearReleaseCompilationHandle() { releaseCompilationHandle_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:xrt.XRTExecutionConfig) } // @@protoc_insertion_point(class_scope:xrt.XRTExecutionConfig) private static final xrt.Xrt.XRTExecutionConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new xrt.Xrt.XRTExecutionConfig(); } public static xrt.Xrt.XRTExecutionConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public XRTExecutionConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new XRTExecutionConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public xrt.Xrt.XRTExecutionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_xrt_XLAComputationConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_xrt_XLAComputationConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_xrt_XLAComputation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_xrt_XLAComputation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_xrt_XLAAllocation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_xrt_XLAAllocation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_xrt_XLATupleNode_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_xrt_XLATupleNode_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_xrt_XRTExecutionConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_xrt_XRTExecutionConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n!tensorflow/compiler/xrt/xrt.proto\022\003xrt" + "\0326tensorflow/compiler/tf2xla/host_comput" + "e_metadata.proto\032&tensorflow/compiler/xl" + "a/xla_data.proto\032)tensorflow/compiler/xl" + "a/service/hlo.proto\"\357\001\n\024XLAComputationCo" + "nfig\022\024\n\014num_replicas\030\001 \001(\005\022\035\n\025num_cores_" + "per_replica\030\002 \001(\005\022E\n\025host_compute_metada" + "ta\030\003 \001(\0132&.tensorflow.tf2xla.HostCompute" + "Metadata\022(\n\rprogram_shape\030\004 \001(\0132\021.xla.Pr" + "ogramShape\0221\n\026per_core_program_shape\030\005 \003" + "(\0132\021.xla.ProgramShape\"c\n\016XLAComputation\022" + ")\n\006config\030\001 \001(\0132\031.xrt.XLAComputationConf" + "ig\022&\n\014hlo_snapshot\030\002 \001(\0132\020.xla.HloSnapsh" + "ot\"I\n\rXLAAllocation\022\026\n\016device_ordinal\030\001 " + "\001(\005\022 \n\005value\030\002 \001(\0132\021.xla.LiteralProto\"d\n" + "\014XLATupleNode\022\023\n\013input_index\030\001 \001(\005\022\034\n\024re" + "lease_input_handle\030\002 \001(\010\022!\n\006tuples\030\003 \003(\013" + "2\021.xrt.XLATupleNode\"\300\001\n\022XRTExecutionConf" + "ig\022\026\n\016device_ordinal\030\001 \001(\005\022\035\n\025core_index" + "_in_replica\030\002 \001(\005\022\036\n\026execution_instance_" + "key\030\003 \001(\t\022\020\n\010rng_seed\030\004 \001(\r\022\035\n\025release_i" + "nput_handles\030\005 \001(\010\022\"\n\032release_compilatio" + "n_handle\030\006 \001(\010b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.tensorflow.tf2xla.HostComputeMetadataProtos.getDescriptor(), xla.XlaData.getDescriptor(), xla.Hlo.getDescriptor(), }, assigner); internal_static_xrt_XLAComputationConfig_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_xrt_XLAComputationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_xrt_XLAComputationConfig_descriptor, new java.lang.String[] { "NumReplicas", "NumCoresPerReplica", "HostComputeMetadata", "ProgramShape", "PerCoreProgramShape", }); internal_static_xrt_XLAComputation_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_xrt_XLAComputation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_xrt_XLAComputation_descriptor, new java.lang.String[] { "Config", "HloSnapshot", }); internal_static_xrt_XLAAllocation_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_xrt_XLAAllocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_xrt_XLAAllocation_descriptor, new java.lang.String[] { "DeviceOrdinal", "Value", }); internal_static_xrt_XLATupleNode_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_xrt_XLATupleNode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_xrt_XLATupleNode_descriptor, new java.lang.String[] { "InputIndex", "ReleaseInputHandle", "Tuples", }); internal_static_xrt_XRTExecutionConfig_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_xrt_XRTExecutionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_xrt_XRTExecutionConfig_descriptor, new java.lang.String[] { "DeviceOrdinal", "CoreIndexInReplica", "ExecutionInstanceKey", "RngSeed", "ReleaseInputHandles", "ReleaseCompilationHandle", }); org.tensorflow.tf2xla.HostComputeMetadataProtos.getDescriptor(); xla.XlaData.getDescriptor(); xla.Hlo.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy