Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* Names of the Op's input_/output_args that reside in host memory
* instead of device memory.
*
*
* repeated string host_memory_arg = 4;
*/
public com.github.os72.protobuf351.ByteString
getHostMemoryArgBytes(int index) {
return hostMemoryArg_.getByteString(index);
}
public static final int LABEL_FIELD_NUMBER = 5;
private volatile java.lang.Object label_;
/**
*
* This allows experimental kernels to be registered for an op that
* won't be used unless the user specifies a "_kernel" attr with
* value matching this.
*
* This allows experimental kernels to be registered for an op that
* won't be used unless the user specifies a "_kernel" attr with
* value matching this.
*
*
* string label = 5;
*/
public com.github.os72.protobuf351.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (!getOpBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, op_);
}
if (!getDeviceTypeBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 2, deviceType_);
}
for (int i = 0; i < constraint_.size(); i++) {
output.writeMessage(3, constraint_.get(i));
}
for (int i = 0; i < hostMemoryArg_.size(); i++) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 4, hostMemoryArg_.getRaw(i));
}
if (!getLabelBytes().isEmpty()) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 5, label_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getOpBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, op_);
}
if (!getDeviceTypeBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(2, deviceType_);
}
for (int i = 0; i < constraint_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(3, constraint_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < hostMemoryArg_.size(); i++) {
dataSize += computeStringSizeNoTag(hostMemoryArg_.getRaw(i));
}
size += dataSize;
size += 1 * getHostMemoryArgList().size();
}
if (!getLabelBytes().isEmpty()) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(5, label_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.tensorflow.framework.KernelDef)) {
return super.equals(obj);
}
org.tensorflow.framework.KernelDef other = (org.tensorflow.framework.KernelDef) obj;
boolean result = true;
result = result && getOp()
.equals(other.getOp());
result = result && getDeviceType()
.equals(other.getDeviceType());
result = result && getConstraintList()
.equals(other.getConstraintList());
result = result && getHostMemoryArgList()
.equals(other.getHostMemoryArgList());
result = result && getLabel()
.equals(other.getLabel());
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) + OP_FIELD_NUMBER;
hash = (53 * hash) + getOp().hashCode();
hash = (37 * hash) + DEVICE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getDeviceType().hashCode();
if (getConstraintCount() > 0) {
hash = (37 * hash) + CONSTRAINT_FIELD_NUMBER;
hash = (53 * hash) + getConstraintList().hashCode();
}
if (getHostMemoryArgCount() > 0) {
hash = (37 * hash) + HOST_MEMORY_ARG_FIELD_NUMBER;
hash = (53 * hash) + getHostMemoryArgList().hashCode();
}
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.KernelDef parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.KernelDef parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.KernelDef parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.KernelDef parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.KernelDef parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.KernelDef parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.KernelDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.KernelDef parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.KernelDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.KernelDef parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.KernelDef parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.KernelDef parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.KernelDef prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code tensorflow.KernelDef}
*/
public static final class Builder extends
com.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.KernelDef)
org.tensorflow.framework.KernelDefOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.KernelDefProtos.internal_static_tensorflow_KernelDef_descriptor;
}
protected com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.KernelDefProtos.internal_static_tensorflow_KernelDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.KernelDef.class, org.tensorflow.framework.KernelDef.Builder.class);
}
// Construct using org.tensorflow.framework.KernelDef.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getConstraintFieldBuilder();
}
}
public Builder clear() {
super.clear();
op_ = "";
deviceType_ = "";
if (constraintBuilder_ == null) {
constraint_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
constraintBuilder_.clear();
}
hostMemoryArg_ = com.github.os72.protobuf351.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
label_ = "";
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.KernelDefProtos.internal_static_tensorflow_KernelDef_descriptor;
}
public org.tensorflow.framework.KernelDef getDefaultInstanceForType() {
return org.tensorflow.framework.KernelDef.getDefaultInstance();
}
public org.tensorflow.framework.KernelDef build() {
org.tensorflow.framework.KernelDef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.tensorflow.framework.KernelDef buildPartial() {
org.tensorflow.framework.KernelDef result = new org.tensorflow.framework.KernelDef(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.op_ = op_;
result.deviceType_ = deviceType_;
if (constraintBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
constraint_ = java.util.Collections.unmodifiableList(constraint_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.constraint_ = constraint_;
} else {
result.constraint_ = constraintBuilder_.build();
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
hostMemoryArg_ = hostMemoryArg_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.hostMemoryArg_ = hostMemoryArg_;
result.label_ = label_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.Message other) {
if (other instanceof org.tensorflow.framework.KernelDef) {
return mergeFrom((org.tensorflow.framework.KernelDef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.KernelDef other) {
if (other == org.tensorflow.framework.KernelDef.getDefaultInstance()) return this;
if (!other.getOp().isEmpty()) {
op_ = other.op_;
onChanged();
}
if (!other.getDeviceType().isEmpty()) {
deviceType_ = other.deviceType_;
onChanged();
}
if (constraintBuilder_ == null) {
if (!other.constraint_.isEmpty()) {
if (constraint_.isEmpty()) {
constraint_ = other.constraint_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureConstraintIsMutable();
constraint_.addAll(other.constraint_);
}
onChanged();
}
} else {
if (!other.constraint_.isEmpty()) {
if (constraintBuilder_.isEmpty()) {
constraintBuilder_.dispose();
constraintBuilder_ = null;
constraint_ = other.constraint_;
bitField0_ = (bitField0_ & ~0x00000004);
constraintBuilder_ =
com.github.os72.protobuf351.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConstraintFieldBuilder() : null;
} else {
constraintBuilder_.addAllMessages(other.constraint_);
}
}
}
if (!other.hostMemoryArg_.isEmpty()) {
if (hostMemoryArg_.isEmpty()) {
hostMemoryArg_ = other.hostMemoryArg_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureHostMemoryArgIsMutable();
hostMemoryArg_.addAll(other.hostMemoryArg_);
}
onChanged();
}
if (!other.getLabel().isEmpty()) {
label_ = other.label_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.KernelDef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.KernelDef) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object op_ = "";
/**
*
* This allows experimental kernels to be registered for an op that
* won't be used unless the user specifies a "_kernel" attr with
* value matching this.
*
* This allows experimental kernels to be registered for an op that
* won't be used unless the user specifies a "_kernel" attr with
* value matching this.
*
* This allows experimental kernels to be registered for an op that
* won't be used unless the user specifies a "_kernel" attr with
* value matching this.
*
* This allows experimental kernels to be registered for an op that
* won't be used unless the user specifies a "_kernel" attr with
* value matching this.
*
* This allows experimental kernels to be registered for an op that
* won't be used unless the user specifies a "_kernel" attr with
* value matching this.
*
*
* string label = 5;
*/
public Builder setLabelBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
label_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.KernelDef)
}
// @@protoc_insertion_point(class_scope:tensorflow.KernelDef)
private static final org.tensorflow.framework.KernelDef DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.KernelDef();
}
public static org.tensorflow.framework.KernelDef getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public KernelDef parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new KernelDef(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public org.tensorflow.framework.KernelDef getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}