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.
*
* string description = 2;
* @return The bytes for description.
*/
org.nd4j.shade.protobuf.ByteString
getDescriptionBytes();
/**
*
* Describes the type of one or more tensors that are accepted/produced
* by this input/output arg. The only legal combinations are:
* * For a single tensor: either the "type" field is set or the
* "type_attr" field is set to the name of an attr with type "type".
* * For a sequence of tensors with the same type: the "number_attr"
* field will be set to the name of an attr with type "int", and
* either the "type" or "type_attr" field will be set as for
* single tensors.
* * For a sequence of tensors, the "type_list_attr" field will be set
* to the name of an attr with type "list(type)".
*
*
* .tensorflow.DataType type = 3;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
*
* Describes the type of one or more tensors that are accepted/produced
* by this input/output arg. The only legal combinations are:
* * For a single tensor: either the "type" field is set or the
* "type_attr" field is set to the name of an attr with type "type".
* * For a sequence of tensors with the same type: the "number_attr"
* field will be set to the name of an attr with type "int", and
* either the "type" or "type_attr" field will be set as for
* single tensors.
* * For a sequence of tensors, the "type_list_attr" field will be set
* to the name of an attr with type "list(type)".
*
*
* .tensorflow.DataType type = 3;
* @return The type.
*/
org.tensorflow.framework.DataType getType();
/**
*
* If specified, attr must have type "list(type)", and none of
* type, type_attr, and number_attr may be specified.
*
*
* string type_list_attr = 6;
* @return The bytes for typeListAttr.
*/
org.nd4j.shade.protobuf.ByteString
getTypeListAttrBytes();
/**
*
* For inputs: if true, the inputs are required to be refs.
* By default, inputs can be either refs or non-refs.
* For outputs: if true, outputs are refs, otherwise they are not.
*
*
* string description = 2;
* @return The bytes for description.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 3;
private int type_;
/**
*
* Describes the type of one or more tensors that are accepted/produced
* by this input/output arg. The only legal combinations are:
* * For a single tensor: either the "type" field is set or the
* "type_attr" field is set to the name of an attr with type "type".
* * For a sequence of tensors with the same type: the "number_attr"
* field will be set to the name of an attr with type "int", and
* either the "type" or "type_attr" field will be set as for
* single tensors.
* * For a sequence of tensors, the "type_list_attr" field will be set
* to the name of an attr with type "list(type)".
*
*
* .tensorflow.DataType type = 3;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Describes the type of one or more tensors that are accepted/produced
* by this input/output arg. The only legal combinations are:
* * For a single tensor: either the "type" field is set or the
* "type_attr" field is set to the name of an attr with type "type".
* * For a sequence of tensors with the same type: the "number_attr"
* field will be set to the name of an attr with type "int", and
* either the "type" or "type_attr" field will be set as for
* single tensors.
* * For a sequence of tensors, the "type_list_attr" field will be set
* to the name of an attr with type "list(type)".
*
*
* .tensorflow.DataType type = 3;
* @return The type.
*/
@java.lang.Override public org.tensorflow.framework.DataType getType() {
@SuppressWarnings("deprecation")
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(type_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
public static final int TYPE_ATTR_FIELD_NUMBER = 4;
private volatile java.lang.Object typeAttr_;
/**
*
* If specified, attr must have type "list(type)", and none of
* type, type_attr, and number_attr may be specified.
*
*
* string type_list_attr = 6;
* @return The bytes for typeListAttr.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getTypeListAttrBytes() {
java.lang.Object ref = typeListAttr_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeListAttr_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int IS_REF_FIELD_NUMBER = 16;
private boolean isRef_;
/**
*
* For inputs: if true, the inputs are required to be refs.
* By default, inputs can be either refs or non-refs.
* For outputs: if true, outputs are refs, otherwise they are not.
*
*
* Protobuf type {@code tensorflow.OpDef.ArgDef}
*/
public static final class Builder extends
org.nd4j.shade.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tensorflow.OpDef.ArgDef)
org.tensorflow.framework.OpDef.ArgDefOrBuilder {
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.OpDefProtos.internal_static_tensorflow_OpDef_ArgDef_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.OpDefProtos.internal_static_tensorflow_OpDef_ArgDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.OpDef.ArgDef.class, org.tensorflow.framework.OpDef.ArgDef.Builder.class);
}
// Construct using org.tensorflow.framework.OpDef.ArgDef.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.nd4j.shade.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
description_ = "";
type_ = 0;
typeAttr_ = "";
numberAttr_ = "";
typeListAttr_ = "";
isRef_ = false;
return this;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.tensorflow.framework.OpDefProtos.internal_static_tensorflow_OpDef_ArgDef_descriptor;
}
@java.lang.Override
public org.tensorflow.framework.OpDef.ArgDef getDefaultInstanceForType() {
return org.tensorflow.framework.OpDef.ArgDef.getDefaultInstance();
}
@java.lang.Override
public org.tensorflow.framework.OpDef.ArgDef build() {
org.tensorflow.framework.OpDef.ArgDef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.tensorflow.framework.OpDef.ArgDef buildPartial() {
org.tensorflow.framework.OpDef.ArgDef result = new org.tensorflow.framework.OpDef.ArgDef(this);
result.name_ = name_;
result.description_ = description_;
result.type_ = type_;
result.typeAttr_ = typeAttr_;
result.numberAttr_ = numberAttr_;
result.typeListAttr_ = typeListAttr_;
result.isRef_ = isRef_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.nd4j.shade.protobuf.Message other) {
if (other instanceof org.tensorflow.framework.OpDef.ArgDef) {
return mergeFrom((org.tensorflow.framework.OpDef.ArgDef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.tensorflow.framework.OpDef.ArgDef other) {
if (other == org.tensorflow.framework.OpDef.ArgDef.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (!other.getTypeAttr().isEmpty()) {
typeAttr_ = other.typeAttr_;
onChanged();
}
if (!other.getNumberAttr().isEmpty()) {
numberAttr_ = other.numberAttr_;
onChanged();
}
if (!other.getTypeListAttr().isEmpty()) {
typeListAttr_ = other.typeListAttr_;
onChanged();
}
if (other.getIsRef() != false) {
setIsRef(other.getIsRef());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.tensorflow.framework.OpDef.ArgDef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.tensorflow.framework.OpDef.ArgDef) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
*
*
* string name = 1;
* @return The bytes for name.
*/
public org.nd4j.shade.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
*
* Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*
* string description = 2;
* @return The bytes for description.
*/
public org.nd4j.shade.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
*
* Human readable description.
*
*
* string description = 2;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Human readable description.
*
*
* string description = 2;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Human readable description.
*
*
* string description = 2;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
onChanged();
return this;
}
private int type_ = 0;
/**
*
* Describes the type of one or more tensors that are accepted/produced
* by this input/output arg. The only legal combinations are:
* * For a single tensor: either the "type" field is set or the
* "type_attr" field is set to the name of an attr with type "type".
* * For a sequence of tensors with the same type: the "number_attr"
* field will be set to the name of an attr with type "int", and
* either the "type" or "type_attr" field will be set as for
* single tensors.
* * For a sequence of tensors, the "type_list_attr" field will be set
* to the name of an attr with type "list(type)".
*
*
* .tensorflow.DataType type = 3;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Describes the type of one or more tensors that are accepted/produced
* by this input/output arg. The only legal combinations are:
* * For a single tensor: either the "type" field is set or the
* "type_attr" field is set to the name of an attr with type "type".
* * For a sequence of tensors with the same type: the "number_attr"
* field will be set to the name of an attr with type "int", and
* either the "type" or "type_attr" field will be set as for
* single tensors.
* * For a sequence of tensors, the "type_list_attr" field will be set
* to the name of an attr with type "list(type)".
*
*
* .tensorflow.DataType type = 3;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
* Describes the type of one or more tensors that are accepted/produced
* by this input/output arg. The only legal combinations are:
* * For a single tensor: either the "type" field is set or the
* "type_attr" field is set to the name of an attr with type "type".
* * For a sequence of tensors with the same type: the "number_attr"
* field will be set to the name of an attr with type "int", and
* either the "type" or "type_attr" field will be set as for
* single tensors.
* * For a sequence of tensors, the "type_list_attr" field will be set
* to the name of an attr with type "list(type)".
*
*
* .tensorflow.DataType type = 3;
* @return The type.
*/
@java.lang.Override
public org.tensorflow.framework.DataType getType() {
@SuppressWarnings("deprecation")
org.tensorflow.framework.DataType result = org.tensorflow.framework.DataType.valueOf(type_);
return result == null ? org.tensorflow.framework.DataType.UNRECOGNIZED : result;
}
/**
*
* Describes the type of one or more tensors that are accepted/produced
* by this input/output arg. The only legal combinations are:
* * For a single tensor: either the "type" field is set or the
* "type_attr" field is set to the name of an attr with type "type".
* * For a sequence of tensors with the same type: the "number_attr"
* field will be set to the name of an attr with type "int", and
* either the "type" or "type_attr" field will be set as for
* single tensors.
* * For a sequence of tensors, the "type_list_attr" field will be set
* to the name of an attr with type "list(type)".
*
*
* .tensorflow.DataType type = 3;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(org.tensorflow.framework.DataType value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Describes the type of one or more tensors that are accepted/produced
* by this input/output arg. The only legal combinations are:
* * For a single tensor: either the "type" field is set or the
* "type_attr" field is set to the name of an attr with type "type".
* * For a sequence of tensors with the same type: the "number_attr"
* field will be set to the name of an attr with type "int", and
* either the "type" or "type_attr" field will be set as for
* single tensors.
* * For a sequence of tensors, the "type_list_attr" field will be set
* to the name of an attr with type "list(type)".
*
*
* .tensorflow.DataType type = 3;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private java.lang.Object typeAttr_ = "";
/**
*
* If specified, attr must have type "list(type)", and none of
* type, type_attr, and number_attr may be specified.
*
*
* string type_list_attr = 6;
* @return The bytes for typeListAttr.
*/
public org.nd4j.shade.protobuf.ByteString
getTypeListAttrBytes() {
java.lang.Object ref = typeListAttr_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeListAttr_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
*
* If specified, attr must have type "list(type)", and none of
* type, type_attr, and number_attr may be specified.
*
*
* string type_list_attr = 6;
* @param value The typeListAttr to set.
* @return This builder for chaining.
*/
public Builder setTypeListAttr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
typeListAttr_ = value;
onChanged();
return this;
}
/**
*
* If specified, attr must have type "list(type)", and none of
* type, type_attr, and number_attr may be specified.
*
*
* string type_list_attr = 6;
* @return This builder for chaining.
*/
public Builder clearTypeListAttr() {
typeListAttr_ = getDefaultInstance().getTypeListAttr();
onChanged();
return this;
}
/**
*
* If specified, attr must have type "list(type)", and none of
* type, type_attr, and number_attr may be specified.
*
*
* string type_list_attr = 6;
* @param value The bytes for typeListAttr to set.
* @return This builder for chaining.
*/
public Builder setTypeListAttrBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
typeListAttr_ = value;
onChanged();
return this;
}
private boolean isRef_ ;
/**
*
* For inputs: if true, the inputs are required to be refs.
* By default, inputs can be either refs or non-refs.
* For outputs: if true, outputs are refs, otherwise they are not.
*
* For inputs: if true, the inputs are required to be refs.
* By default, inputs can be either refs or non-refs.
* For outputs: if true, outputs are refs, otherwise they are not.
*
*
* bool is_ref = 16;
* @param value The isRef to set.
* @return This builder for chaining.
*/
public Builder setIsRef(boolean value) {
isRef_ = value;
onChanged();
return this;
}
/**
*
* For inputs: if true, the inputs are required to be refs.
* By default, inputs can be either refs or non-refs.
* For outputs: if true, outputs are refs, otherwise they are not.
*
*
* bool is_ref = 16;
* @return This builder for chaining.
*/
public Builder clearIsRef() {
isRef_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.OpDef.ArgDef)
}
// @@protoc_insertion_point(class_scope:tensorflow.OpDef.ArgDef)
private static final org.tensorflow.framework.OpDef.ArgDef DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.OpDef.ArgDef();
}
public static org.tensorflow.framework.OpDef.ArgDef getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public ArgDef parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new ArgDef(input, extensionRegistry);
}
};
public static org.nd4j.shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tensorflow.framework.OpDef.ArgDef getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AttrDefOrBuilder extends
// @@protoc_insertion_point(interface_extends:tensorflow.OpDef.AttrDef)
org.nd4j.shade.protobuf.MessageOrBuilder {
/**
*
* A descriptive name for the argument. May be used, e.g. by the
* Python client, as a keyword argument name, and so should match
* the regexp "[a-z][a-z0-9_]+".
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* A descriptive name for the argument. May be used, e.g. by the
* Python client, as a keyword argument name, and so should match
* the regexp "[a-z][a-z0-9_]+".
*
*
* string name = 1;
* @return The bytes for name.
*/
org.nd4j.shade.protobuf.ByteString
getNameBytes();
/**
*
* One of the type names from attr_value.proto ("string", "list(string)",
* "int", etc.).
*
*
* string type = 2;
* @return The type.
*/
java.lang.String getType();
/**
*
* One of the type names from attr_value.proto ("string", "list(string)",
* "int", etc.).
*
*
* string type = 2;
* @return The bytes for type.
*/
org.nd4j.shade.protobuf.ByteString
getTypeBytes();
/**
*
* A reasonable default for this attribute if the user does not supply
* a value. If not specified, the user must supply a value.
*
*
* .tensorflow.AttrValue default_value = 3;
* @return Whether the defaultValue field is set.
*/
boolean hasDefaultValue();
/**
*
* A reasonable default for this attribute if the user does not supply
* a value. If not specified, the user must supply a value.
*
*
* string description = 4;
* @return The bytes for description.
*/
org.nd4j.shade.protobuf.ByteString
getDescriptionBytes();
/**
*
* For type == "int", this is a minimum value. For "list(___)"
* types, this is the minimum length.
*
*
* bool has_minimum = 5;
* @return The hasMinimum.
*/
boolean getHasMinimum();
/**
* int64 minimum = 6;
* @return The minimum.
*/
long getMinimum();
/**
*
* The set of allowed values. Has type that is the "list" version
* of the "type" field above (uses the "list" field of AttrValue).
* If type == "type" or "list(type)" above, then the "type" field
* of "allowed_values.list" has the set of allowed DataTypes.
* If type == "string" or "list(string)", then the "s" field of
* "allowed_values.list" has the set of allowed strings.
*
*
* .tensorflow.AttrValue allowed_values = 7;
* @return Whether the allowedValues field is set.
*/
boolean hasAllowedValues();
/**
*
* The set of allowed values. Has type that is the "list" version
* of the "type" field above (uses the "list" field of AttrValue).
* If type == "type" or "list(type)" above, then the "type" field
* of "allowed_values.list" has the set of allowed DataTypes.
* If type == "string" or "list(string)", then the "s" field of
* "allowed_values.list" has the set of allowed strings.
*
* The set of allowed values. Has type that is the "list" version
* of the "type" field above (uses the "list" field of AttrValue).
* If type == "type" or "list(type)" above, then the "type" field
* of "allowed_values.list" has the set of allowed DataTypes.
* If type == "string" or "list(string)", then the "s" field of
* "allowed_values.list" has the set of allowed strings.
*
* Description of the graph-construction-time configuration of this
* Op. That is to say, this describes the attr fields that will
* be specified in the NodeDef.
*
*
* Protobuf type {@code tensorflow.OpDef.AttrDef}
*/
public static final class AttrDef extends
org.nd4j.shade.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tensorflow.OpDef.AttrDef)
AttrDefOrBuilder {
private static final long serialVersionUID = 0L;
// Use AttrDef.newBuilder() to construct.
private AttrDef(org.nd4j.shade.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private AttrDef() {
name_ = "";
type_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AttrDef();
}
@java.lang.Override
public final org.nd4j.shade.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AttrDef(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
org.nd4j.shade.protobuf.UnknownFieldSet.Builder unknownFields =
org.nd4j.shade.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
type_ = s;
break;
}
case 26: {
org.tensorflow.framework.AttrValue.Builder subBuilder = null;
if (defaultValue_ != null) {
subBuilder = defaultValue_.toBuilder();
}
defaultValue_ = input.readMessage(org.tensorflow.framework.AttrValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(defaultValue_);
defaultValue_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 40: {
hasMinimum_ = input.readBool();
break;
}
case 48: {
minimum_ = input.readInt64();
break;
}
case 58: {
org.tensorflow.framework.AttrValue.Builder subBuilder = null;
if (allowedValues_ != null) {
subBuilder = allowedValues_.toBuilder();
}
allowedValues_ = input.readMessage(org.tensorflow.framework.AttrValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(allowedValues_);
allowedValues_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.nd4j.shade.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.nd4j.shade.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.tensorflow.framework.OpDefProtos.internal_static_tensorflow_OpDef_AttrDef_descriptor;
}
@java.lang.Override
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.tensorflow.framework.OpDefProtos.internal_static_tensorflow_OpDef_AttrDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.tensorflow.framework.OpDef.AttrDef.class, org.tensorflow.framework.OpDef.AttrDef.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* A descriptive name for the argument. May be used, e.g. by the
* Python client, as a keyword argument name, and so should match
* the regexp "[a-z][a-z0-9_]+".
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* A descriptive name for the argument. May be used, e.g. by the
* Python client, as a keyword argument name, and so should match
* the regexp "[a-z][a-z0-9_]+".
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 2;
private volatile java.lang.Object type_;
/**
*
* One of the type names from attr_value.proto ("string", "list(string)",
* "int", etc.).
*
*
* string type = 2;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
}
}
/**
*
* One of the type names from attr_value.proto ("string", "list(string)",
* "int", etc.).
*
*
* string type = 2;
* @return The bytes for type.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int DEFAULT_VALUE_FIELD_NUMBER = 3;
private org.tensorflow.framework.AttrValue defaultValue_;
/**
*
* A reasonable default for this attribute if the user does not supply
* a value. If not specified, the user must supply a value.
*
*
* .tensorflow.AttrValue default_value = 3;
* @return Whether the defaultValue field is set.
*/
@java.lang.Override
public boolean hasDefaultValue() {
return defaultValue_ != null;
}
/**
*
* A reasonable default for this attribute if the user does not supply
* a value. If not specified, the user must supply a value.
*
*
* string description = 4;
* @return The bytes for description.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int HAS_MINIMUM_FIELD_NUMBER = 5;
private boolean hasMinimum_;
/**
*
* For type == "int", this is a minimum value. For "list(___)"
* types, this is the minimum length.
*
*
* bool has_minimum = 5;
* @return The hasMinimum.
*/
@java.lang.Override
public boolean getHasMinimum() {
return hasMinimum_;
}
public static final int MINIMUM_FIELD_NUMBER = 6;
private long minimum_;
/**
* int64 minimum = 6;
* @return The minimum.
*/
@java.lang.Override
public long getMinimum() {
return minimum_;
}
public static final int ALLOWED_VALUES_FIELD_NUMBER = 7;
private org.tensorflow.framework.AttrValue allowedValues_;
/**
*
* The set of allowed values. Has type that is the "list" version
* of the "type" field above (uses the "list" field of AttrValue).
* If type == "type" or "list(type)" above, then the "type" field
* of "allowed_values.list" has the set of allowed DataTypes.
* If type == "string" or "list(string)", then the "s" field of
* "allowed_values.list" has the set of allowed strings.
*
*
* .tensorflow.AttrValue allowed_values = 7;
* @return Whether the allowedValues field is set.
*/
@java.lang.Override
public boolean hasAllowedValues() {
return allowedValues_ != null;
}
/**
*
* The set of allowed values. Has type that is the "list" version
* of the "type" field above (uses the "list" field of AttrValue).
* If type == "type" or "list(type)" above, then the "type" field
* of "allowed_values.list" has the set of allowed DataTypes.
* If type == "string" or "list(string)", then the "s" field of
* "allowed_values.list" has the set of allowed strings.
*
* The set of allowed values. Has type that is the "list" version
* of the "type" field above (uses the "list" field of AttrValue).
* If type == "type" or "list(type)" above, then the "type" field
* of "allowed_values.list" has the set of allowed DataTypes.
* If type == "string" or "list(string)", then the "s" field of
* "allowed_values.list" has the set of allowed strings.
*
* Description of the graph-construction-time configuration of this
* Op. That is to say, this describes the attr fields that will
* be specified in the NodeDef.
*
* A descriptive name for the argument. May be used, e.g. by the
* Python client, as a keyword argument name, and so should match
* the regexp "[a-z][a-z0-9_]+".
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A descriptive name for the argument. May be used, e.g. by the
* Python client, as a keyword argument name, and so should match
* the regexp "[a-z][a-z0-9_]+".
*
*
* string name = 1;
* @return The bytes for name.
*/
public org.nd4j.shade.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
*
* A descriptive name for the argument. May be used, e.g. by the
* Python client, as a keyword argument name, and so should match
* the regexp "[a-z][a-z0-9_]+".
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* A descriptive name for the argument. May be used, e.g. by the
* Python client, as a keyword argument name, and so should match
* the regexp "[a-z][a-z0-9_]+".
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* A descriptive name for the argument. May be used, e.g. by the
* Python client, as a keyword argument name, and so should match
* the regexp "[a-z][a-z0-9_]+".
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* One of the type names from attr_value.proto ("string", "list(string)",
* "int", etc.).
*
*
* string type = 2;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* One of the type names from attr_value.proto ("string", "list(string)",
* "int", etc.).
*
*
* string type = 2;
* @return The bytes for type.
*/
public org.nd4j.shade.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
*
* One of the type names from attr_value.proto ("string", "list(string)",
* "int", etc.).
*
*
* string type = 2;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
*
* One of the type names from attr_value.proto ("string", "list(string)",
* "int", etc.).
*
*
* string type = 2;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
*
* One of the type names from attr_value.proto ("string", "list(string)",
* "int", etc.).
*
*
* string type = 2;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
private org.tensorflow.framework.AttrValue defaultValue_;
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.AttrValue, org.tensorflow.framework.AttrValue.Builder, org.tensorflow.framework.AttrValueOrBuilder> defaultValueBuilder_;
/**
*
* A reasonable default for this attribute if the user does not supply
* a value. If not specified, the user must supply a value.
*
*
* .tensorflow.AttrValue default_value = 3;
* @return Whether the defaultValue field is set.
*/
public boolean hasDefaultValue() {
return defaultValueBuilder_ != null || defaultValue_ != null;
}
/**
*
* A reasonable default for this attribute if the user does not supply
* a value. If not specified, the user must supply a value.
*
* For type == "int", this is a minimum value. For "list(___)"
* types, this is the minimum length.
*
*
* bool has_minimum = 5;
* @param value The hasMinimum to set.
* @return This builder for chaining.
*/
public Builder setHasMinimum(boolean value) {
hasMinimum_ = value;
onChanged();
return this;
}
/**
*
* For type == "int", this is a minimum value. For "list(___)"
* types, this is the minimum length.
*
*
* bool has_minimum = 5;
* @return This builder for chaining.
*/
public Builder clearHasMinimum() {
hasMinimum_ = false;
onChanged();
return this;
}
private long minimum_ ;
/**
* int64 minimum = 6;
* @return The minimum.
*/
@java.lang.Override
public long getMinimum() {
return minimum_;
}
/**
* int64 minimum = 6;
* @param value The minimum to set.
* @return This builder for chaining.
*/
public Builder setMinimum(long value) {
minimum_ = value;
onChanged();
return this;
}
/**
* int64 minimum = 6;
* @return This builder for chaining.
*/
public Builder clearMinimum() {
minimum_ = 0L;
onChanged();
return this;
}
private org.tensorflow.framework.AttrValue allowedValues_;
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.AttrValue, org.tensorflow.framework.AttrValue.Builder, org.tensorflow.framework.AttrValueOrBuilder> allowedValuesBuilder_;
/**
*
* The set of allowed values. Has type that is the "list" version
* of the "type" field above (uses the "list" field of AttrValue).
* If type == "type" or "list(type)" above, then the "type" field
* of "allowed_values.list" has the set of allowed DataTypes.
* If type == "string" or "list(string)", then the "s" field of
* "allowed_values.list" has the set of allowed strings.
*
*
* .tensorflow.AttrValue allowed_values = 7;
* @return Whether the allowedValues field is set.
*/
public boolean hasAllowedValues() {
return allowedValuesBuilder_ != null || allowedValues_ != null;
}
/**
*
* The set of allowed values. Has type that is the "list" version
* of the "type" field above (uses the "list" field of AttrValue).
* If type == "type" or "list(type)" above, then the "type" field
* of "allowed_values.list" has the set of allowed DataTypes.
* If type == "string" or "list(string)", then the "s" field of
* "allowed_values.list" has the set of allowed strings.
*
* The set of allowed values. Has type that is the "list" version
* of the "type" field above (uses the "list" field of AttrValue).
* If type == "type" or "list(type)" above, then the "type" field
* of "allowed_values.list" has the set of allowed DataTypes.
* If type == "string" or "list(string)", then the "s" field of
* "allowed_values.list" has the set of allowed strings.
*
*
* .tensorflow.AttrValue allowed_values = 7;
*/
public Builder setAllowedValues(org.tensorflow.framework.AttrValue value) {
if (allowedValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
allowedValues_ = value;
onChanged();
} else {
allowedValuesBuilder_.setMessage(value);
}
return this;
}
/**
*
* The set of allowed values. Has type that is the "list" version
* of the "type" field above (uses the "list" field of AttrValue).
* If type == "type" or "list(type)" above, then the "type" field
* of "allowed_values.list" has the set of allowed DataTypes.
* If type == "string" or "list(string)", then the "s" field of
* "allowed_values.list" has the set of allowed strings.
*
* The set of allowed values. Has type that is the "list" version
* of the "type" field above (uses the "list" field of AttrValue).
* If type == "type" or "list(type)" above, then the "type" field
* of "allowed_values.list" has the set of allowed DataTypes.
* If type == "string" or "list(string)", then the "s" field of
* "allowed_values.list" has the set of allowed strings.
*
* The set of allowed values. Has type that is the "list" version
* of the "type" field above (uses the "list" field of AttrValue).
* If type == "type" or "list(type)" above, then the "type" field
* of "allowed_values.list" has the set of allowed DataTypes.
* If type == "string" or "list(string)", then the "s" field of
* "allowed_values.list" has the set of allowed strings.
*
* The set of allowed values. Has type that is the "list" version
* of the "type" field above (uses the "list" field of AttrValue).
* If type == "type" or "list(type)" above, then the "type" field
* of "allowed_values.list" has the set of allowed DataTypes.
* If type == "string" or "list(string)", then the "s" field of
* "allowed_values.list" has the set of allowed strings.
*
* The set of allowed values. Has type that is the "list" version
* of the "type" field above (uses the "list" field of AttrValue).
* If type == "type" or "list(type)" above, then the "type" field
* of "allowed_values.list" has the set of allowed DataTypes.
* If type == "string" or "list(string)", then the "s" field of
* "allowed_values.list" has the set of allowed strings.
*
* The set of allowed values. Has type that is the "list" version
* of the "type" field above (uses the "list" field of AttrValue).
* If type == "type" or "list(type)" above, then the "type" field
* of "allowed_values.list" has the set of allowed DataTypes.
* If type == "string" or "list(string)", then the "s" field of
* "allowed_values.list" has the set of allowed strings.
*
*
* .tensorflow.AttrValue allowed_values = 7;
*/
private org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.AttrValue, org.tensorflow.framework.AttrValue.Builder, org.tensorflow.framework.AttrValueOrBuilder>
getAllowedValuesFieldBuilder() {
if (allowedValuesBuilder_ == null) {
allowedValuesBuilder_ = new org.nd4j.shade.protobuf.SingleFieldBuilderV3<
org.tensorflow.framework.AttrValue, org.tensorflow.framework.AttrValue.Builder, org.tensorflow.framework.AttrValueOrBuilder>(
getAllowedValues(),
getParentForChildren(),
isClean());
allowedValues_ = null;
}
return allowedValuesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.OpDef.AttrDef)
}
// @@protoc_insertion_point(class_scope:tensorflow.OpDef.AttrDef)
private static final org.tensorflow.framework.OpDef.AttrDef DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.OpDef.AttrDef();
}
public static org.tensorflow.framework.OpDef.AttrDef getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public AttrDef parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new AttrDef(input, extensionRegistry);
}
};
public static org.nd4j.shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tensorflow.framework.OpDef.AttrDef getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Op names starting with an underscore are reserved for internal use.
* Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9_]*".
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Op names starting with an underscore are reserved for internal use.
* Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9_]*".
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int INPUT_ARG_FIELD_NUMBER = 2;
private java.util.List inputArg_;
/**
*
* Additional, longer human-readable description of what the Op does.
*
*
* string description = 6;
* @return The bytes for description.
*/
@java.lang.Override
public org.nd4j.shade.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
public static final int IS_COMMUTATIVE_FIELD_NUMBER = 18;
private boolean isCommutative_;
/**
*
* True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
*
*
* bool is_commutative = 18;
* @return The isCommutative.
*/
@java.lang.Override
public boolean getIsCommutative() {
return isCommutative_;
}
public static final int IS_AGGREGATE_FIELD_NUMBER = 16;
private boolean isAggregate_;
/**
*
* If is_aggregate is true, then this operation accepts N >= 2
* inputs and produces 1 output all of the same type. Should be
* associative and commutative, and produce output with the same
* shape as the input. The optimizer may replace an aggregate op
* taking input from multiple devices with a tree of aggregate ops
* that aggregate locally within each device (and possibly within
* groups of nearby devices) before communicating.
* TODO(josh11b): Implement that optimization.
*
*
* bool is_aggregate = 16;
* @return The isAggregate.
*/
@java.lang.Override
public boolean getIsAggregate() {
return isAggregate_;
}
public static final int IS_STATEFUL_FIELD_NUMBER = 17;
private boolean isStateful_;
/**
*
* Ops are marked as stateful if their behavior depends on some state beyond
* their input tensors (e.g. variable reading op) or if they have
* a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops
* must always produce the same output for the same input and have
* no side-effects.
* By default Ops may be moved between devices. Stateful ops should
* either not be moved, or should only be moved if that state can also
* be moved (e.g. via some sort of save / restore).
* Stateful ops are guaranteed to never be optimized away by Common
* Subexpression Elimination (CSE).
*
*
* bool is_stateful = 17;
* @return The isStateful.
*/
@java.lang.Override
public boolean getIsStateful() {
return isStateful_;
}
public static final int ALLOWS_UNINITIALIZED_INPUT_FIELD_NUMBER = 19;
private boolean allowsUninitializedInput_;
/**
*
* By default, all inputs to an Op must be initialized Tensors. Ops
* that may initialize tensors for the first time should set this
* field to true, to allow the Op to take an uninitialized Tensor as
* input.
*
*
* bool allows_uninitialized_input = 19;
* @return The allowsUninitializedInput.
*/
@java.lang.Override
public boolean getAllowsUninitializedInput() {
return allowsUninitializedInput_;
}
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(org.nd4j.shade.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
for (int i = 0; i < inputArg_.size(); i++) {
output.writeMessage(2, inputArg_.get(i));
}
for (int i = 0; i < outputArg_.size(); i++) {
output.writeMessage(3, outputArg_.get(i));
}
for (int i = 0; i < attr_.size(); i++) {
output.writeMessage(4, attr_.get(i));
}
if (!getSummaryBytes().isEmpty()) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 5, summary_);
}
if (!getDescriptionBytes().isEmpty()) {
org.nd4j.shade.protobuf.GeneratedMessageV3.writeString(output, 6, description_);
}
if (deprecation_ != null) {
output.writeMessage(8, getDeprecation());
}
if (isAggregate_ != false) {
output.writeBool(16, isAggregate_);
}
if (isStateful_ != false) {
output.writeBool(17, isStateful_);
}
if (isCommutative_ != false) {
output.writeBool(18, isCommutative_);
}
if (allowsUninitializedInput_ != false) {
output.writeBool(19, allowsUninitializedInput_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
for (int i = 0; i < inputArg_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(2, inputArg_.get(i));
}
for (int i = 0; i < outputArg_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(3, outputArg_.get(i));
}
for (int i = 0; i < attr_.size(); i++) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(4, attr_.get(i));
}
if (!getSummaryBytes().isEmpty()) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(5, summary_);
}
if (!getDescriptionBytes().isEmpty()) {
size += org.nd4j.shade.protobuf.GeneratedMessageV3.computeStringSize(6, description_);
}
if (deprecation_ != null) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeMessageSize(8, getDeprecation());
}
if (isAggregate_ != false) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeBoolSize(16, isAggregate_);
}
if (isStateful_ != false) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeBoolSize(17, isStateful_);
}
if (isCommutative_ != false) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeBoolSize(18, isCommutative_);
}
if (allowsUninitializedInput_ != false) {
size += org.nd4j.shade.protobuf.CodedOutputStream
.computeBoolSize(19, allowsUninitializedInput_);
}
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.OpDef)) {
return super.equals(obj);
}
org.tensorflow.framework.OpDef other = (org.tensorflow.framework.OpDef) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getInputArgList()
.equals(other.getInputArgList())) return false;
if (!getOutputArgList()
.equals(other.getOutputArgList())) return false;
if (!getAttrList()
.equals(other.getAttrList())) return false;
if (hasDeprecation() != other.hasDeprecation()) return false;
if (hasDeprecation()) {
if (!getDeprecation()
.equals(other.getDeprecation())) return false;
}
if (!getSummary()
.equals(other.getSummary())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (getIsCommutative()
!= other.getIsCommutative()) return false;
if (getIsAggregate()
!= other.getIsAggregate()) return false;
if (getIsStateful()
!= other.getIsStateful()) return false;
if (getAllowsUninitializedInput()
!= other.getAllowsUninitializedInput()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getInputArgCount() > 0) {
hash = (37 * hash) + INPUT_ARG_FIELD_NUMBER;
hash = (53 * hash) + getInputArgList().hashCode();
}
if (getOutputArgCount() > 0) {
hash = (37 * hash) + OUTPUT_ARG_FIELD_NUMBER;
hash = (53 * hash) + getOutputArgList().hashCode();
}
if (getAttrCount() > 0) {
hash = (37 * hash) + ATTR_FIELD_NUMBER;
hash = (53 * hash) + getAttrList().hashCode();
}
if (hasDeprecation()) {
hash = (37 * hash) + DEPRECATION_FIELD_NUMBER;
hash = (53 * hash) + getDeprecation().hashCode();
}
hash = (37 * hash) + SUMMARY_FIELD_NUMBER;
hash = (53 * hash) + getSummary().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + IS_COMMUTATIVE_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashBoolean(
getIsCommutative());
hash = (37 * hash) + IS_AGGREGATE_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashBoolean(
getIsAggregate());
hash = (37 * hash) + IS_STATEFUL_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashBoolean(
getIsStateful());
hash = (37 * hash) + ALLOWS_UNINITIALIZED_INPUT_FIELD_NUMBER;
hash = (53 * hash) + org.nd4j.shade.protobuf.Internal.hashBoolean(
getAllowsUninitializedInput());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.tensorflow.framework.OpDef parseFrom(
java.nio.ByteBuffer data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.OpDef parseFrom(
java.nio.ByteBuffer data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.OpDef parseFrom(
org.nd4j.shade.protobuf.ByteString data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.OpDef parseFrom(
org.nd4j.shade.protobuf.ByteString data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.OpDef parseFrom(byte[] data)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.tensorflow.framework.OpDef parseFrom(
byte[] data,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.tensorflow.framework.OpDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.OpDef parseFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.OpDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.tensorflow.framework.OpDef parseDelimitedFrom(
java.io.InputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.tensorflow.framework.OpDef parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.tensorflow.framework.OpDef parseFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.nd4j.shade.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.tensorflow.framework.OpDef 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(
org.nd4j.shade.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Defines an operation. A NodeDef in a GraphDef specifies an Op by
* using the "op" field which should match the name of a OpDef.
* LINT.IfChange
*
* Op names starting with an underscore are reserved for internal use.
* Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9_]*".
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
org.nd4j.shade.protobuf.ByteString bs =
(org.nd4j.shade.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Op names starting with an underscore are reserved for internal use.
* Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9_]*".
*
*
* string name = 1;
* @return The bytes for name.
*/
public org.nd4j.shade.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
org.nd4j.shade.protobuf.ByteString b =
org.nd4j.shade.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.nd4j.shade.protobuf.ByteString) ref;
}
}
/**
*
* Op names starting with an underscore are reserved for internal use.
* Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9_]*".
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Op names starting with an underscore are reserved for internal use.
* Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9_]*".
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Op names starting with an underscore are reserved for internal use.
* Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9_]*".
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
org.nd4j.shade.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.util.List inputArg_ =
java.util.Collections.emptyList();
private void ensureInputArgIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
inputArg_ = new java.util.ArrayList(inputArg_);
bitField0_ |= 0x00000001;
}
}
private org.nd4j.shade.protobuf.RepeatedFieldBuilderV3<
org.tensorflow.framework.OpDef.ArgDef, org.tensorflow.framework.OpDef.ArgDef.Builder, org.tensorflow.framework.OpDef.ArgDefOrBuilder> inputArgBuilder_;
/**
*
* True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
*
*
* bool is_commutative = 18;
* @param value The isCommutative to set.
* @return This builder for chaining.
*/
public Builder setIsCommutative(boolean value) {
isCommutative_ = value;
onChanged();
return this;
}
/**
*
* True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
*
*
* bool is_commutative = 18;
* @return This builder for chaining.
*/
public Builder clearIsCommutative() {
isCommutative_ = false;
onChanged();
return this;
}
private boolean isAggregate_ ;
/**
*
* If is_aggregate is true, then this operation accepts N >= 2
* inputs and produces 1 output all of the same type. Should be
* associative and commutative, and produce output with the same
* shape as the input. The optimizer may replace an aggregate op
* taking input from multiple devices with a tree of aggregate ops
* that aggregate locally within each device (and possibly within
* groups of nearby devices) before communicating.
* TODO(josh11b): Implement that optimization.
*
* If is_aggregate is true, then this operation accepts N >= 2
* inputs and produces 1 output all of the same type. Should be
* associative and commutative, and produce output with the same
* shape as the input. The optimizer may replace an aggregate op
* taking input from multiple devices with a tree of aggregate ops
* that aggregate locally within each device (and possibly within
* groups of nearby devices) before communicating.
* TODO(josh11b): Implement that optimization.
*
*
* bool is_aggregate = 16;
* @param value The isAggregate to set.
* @return This builder for chaining.
*/
public Builder setIsAggregate(boolean value) {
isAggregate_ = value;
onChanged();
return this;
}
/**
*
* If is_aggregate is true, then this operation accepts N >= 2
* inputs and produces 1 output all of the same type. Should be
* associative and commutative, and produce output with the same
* shape as the input. The optimizer may replace an aggregate op
* taking input from multiple devices with a tree of aggregate ops
* that aggregate locally within each device (and possibly within
* groups of nearby devices) before communicating.
* TODO(josh11b): Implement that optimization.
*
*
* bool is_aggregate = 16;
* @return This builder for chaining.
*/
public Builder clearIsAggregate() {
isAggregate_ = false;
onChanged();
return this;
}
private boolean isStateful_ ;
/**
*
* Ops are marked as stateful if their behavior depends on some state beyond
* their input tensors (e.g. variable reading op) or if they have
* a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops
* must always produce the same output for the same input and have
* no side-effects.
* By default Ops may be moved between devices. Stateful ops should
* either not be moved, or should only be moved if that state can also
* be moved (e.g. via some sort of save / restore).
* Stateful ops are guaranteed to never be optimized away by Common
* Subexpression Elimination (CSE).
*
* Ops are marked as stateful if their behavior depends on some state beyond
* their input tensors (e.g. variable reading op) or if they have
* a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops
* must always produce the same output for the same input and have
* no side-effects.
* By default Ops may be moved between devices. Stateful ops should
* either not be moved, or should only be moved if that state can also
* be moved (e.g. via some sort of save / restore).
* Stateful ops are guaranteed to never be optimized away by Common
* Subexpression Elimination (CSE).
*
*
* bool is_stateful = 17;
* @param value The isStateful to set.
* @return This builder for chaining.
*/
public Builder setIsStateful(boolean value) {
isStateful_ = value;
onChanged();
return this;
}
/**
*
* Ops are marked as stateful if their behavior depends on some state beyond
* their input tensors (e.g. variable reading op) or if they have
* a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops
* must always produce the same output for the same input and have
* no side-effects.
* By default Ops may be moved between devices. Stateful ops should
* either not be moved, or should only be moved if that state can also
* be moved (e.g. via some sort of save / restore).
* Stateful ops are guaranteed to never be optimized away by Common
* Subexpression Elimination (CSE).
*
*
* bool is_stateful = 17;
* @return This builder for chaining.
*/
public Builder clearIsStateful() {
isStateful_ = false;
onChanged();
return this;
}
private boolean allowsUninitializedInput_ ;
/**
*
* By default, all inputs to an Op must be initialized Tensors. Ops
* that may initialize tensors for the first time should set this
* field to true, to allow the Op to take an uninitialized Tensor as
* input.
*
* By default, all inputs to an Op must be initialized Tensors. Ops
* that may initialize tensors for the first time should set this
* field to true, to allow the Op to take an uninitialized Tensor as
* input.
*
*
* bool allows_uninitialized_input = 19;
* @param value The allowsUninitializedInput to set.
* @return This builder for chaining.
*/
public Builder setAllowsUninitializedInput(boolean value) {
allowsUninitializedInput_ = value;
onChanged();
return this;
}
/**
*
* By default, all inputs to an Op must be initialized Tensors. Ops
* that may initialize tensors for the first time should set this
* field to true, to allow the Op to take an uninitialized Tensor as
* input.
*
*
* bool allows_uninitialized_input = 19;
* @return This builder for chaining.
*/
public Builder clearAllowsUninitializedInput() {
allowsUninitializedInput_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:tensorflow.OpDef)
}
// @@protoc_insertion_point(class_scope:tensorflow.OpDef)
private static final org.tensorflow.framework.OpDef DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.tensorflow.framework.OpDef();
}
public static org.tensorflow.framework.OpDef getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.nd4j.shade.protobuf.Parser
PARSER = new org.nd4j.shade.protobuf.AbstractParser() {
@java.lang.Override
public OpDef parsePartialFrom(
org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.nd4j.shade.protobuf.InvalidProtocolBufferException {
return new OpDef(input, extensionRegistry);
}
};
public static org.nd4j.shade.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.nd4j.shade.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.tensorflow.framework.OpDef getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}