Have a question? Connect with the community at the TensorFlow Forum Visit Forum

KernelDef.AttrConstraint.Builder

public static final class KernelDef.AttrConstraint.Builder

Protobuf type tensorflow.KernelDef.AttrConstraint

Public Methods

KernelDef.AttrConstraint.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
KernelDef.AttrConstraint
KernelDef.AttrConstraint
KernelDef.AttrConstraint.Builder
KernelDef.AttrConstraint.Builder
clearAllowedValues ()
 A list of values that this kernel supports for this attr.
KernelDef.AttrConstraint.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
KernelDef.AttrConstraint.Builder
clearName ()
 Name of an attr from the Op.
KernelDef.AttrConstraint.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
KernelDef.AttrConstraint.Builder
AttrValue
getAllowedValues ()
 A list of values that this kernel supports for this attr.
AttrValue.Builder
getAllowedValuesBuilder ()
 A list of values that this kernel supports for this attr.
AttrValueOrBuilder
getAllowedValuesOrBuilder ()
 A list of values that this kernel supports for this attr.
KernelDef.AttrConstraint
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
String
getName ()
 Name of an attr from the Op.
com.google.protobuf.ByteString
getNameBytes ()
 Name of an attr from the Op.
boolean
hasAllowedValues ()
 A list of values that this kernel supports for this attr.
final boolean
KernelDef.AttrConstraint.Builder
mergeAllowedValues ( AttrValue value)
 A list of values that this kernel supports for this attr.
KernelDef.AttrConstraint.Builder
mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
KernelDef.AttrConstraint.Builder
mergeFrom (com.google.protobuf.Message other)
final KernelDef.AttrConstraint.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
KernelDef.AttrConstraint.Builder
setAllowedValues ( AttrValue.Builder builderForValue)
 A list of values that this kernel supports for this attr.
KernelDef.AttrConstraint.Builder
setAllowedValues ( AttrValue value)
 A list of values that this kernel supports for this attr.
KernelDef.AttrConstraint.Builder
setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
KernelDef.AttrConstraint.Builder
setName (String value)
 Name of an attr from the Op.
KernelDef.AttrConstraint.Builder
setNameBytes (com.google.protobuf.ByteString value)
 Name of an attr from the Op.
KernelDef.AttrConstraint.Builder
setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
final KernelDef.AttrConstraint.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

Inherited Methods

Public Methods

public KernelDef.AttrConstraint.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public KernelDef.AttrConstraint buildPartial ()

public KernelDef.AttrConstraint.Builder clearAllowedValues ()

 A list of values that this kernel supports for this attr.
 Like OpDef.AttrDef.allowed_values, except for kernels instead of Ops.
 
.tensorflow.AttrValue allowed_values = 2;

public KernelDef.AttrConstraint.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)

public KernelDef.AttrConstraint.Builder clearName ()

 Name of an attr from the Op.
 
string name = 1;

public KernelDef.AttrConstraint.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public AttrValue getAllowedValues ()

 A list of values that this kernel supports for this attr.
 Like OpDef.AttrDef.allowed_values, except for kernels instead of Ops.
 
.tensorflow.AttrValue allowed_values = 2;

public AttrValue.Builder getAllowedValuesBuilder ()

 A list of values that this kernel supports for this attr.
 Like OpDef.AttrDef.allowed_values, except for kernels instead of Ops.
 
.tensorflow.AttrValue allowed_values = 2;

public AttrValueOrBuilder getAllowedValuesOrBuilder ()

 A list of values that this kernel supports for this attr.
 Like OpDef.AttrDef.allowed_values, except for kernels instead of Ops.
 
.tensorflow.AttrValue allowed_values = 2;

public KernelDef.AttrConstraint getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

public String getName ()

 Name of an attr from the Op.
 
string name = 1;

public com.google.protobuf.ByteString getNameBytes ()

 Name of an attr from the Op.
 
string name = 1;

public boolean hasAllowedValues ()

 A list of values that this kernel supports for this attr.
 Like OpDef.AttrDef.allowed_values, except for kernels instead of Ops.
 
.tensorflow.AttrValue allowed_values = 2;

public final boolean isInitialized ()

public KernelDef.AttrConstraint.Builder mergeAllowedValues ( AttrValue value)

 A list of values that this kernel supports for this attr.
 Like OpDef.AttrDef.allowed_values, except for kernels instead of Ops.
 
.tensorflow.AttrValue allowed_values = 2;

public KernelDef.AttrConstraint.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public KernelDef.AttrConstraint.Builder mergeFrom (com.google.protobuf.Message other)

public final KernelDef.AttrConstraint.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public KernelDef.AttrConstraint.Builder setAllowedValues ( AttrValue.Builder builderForValue)

 A list of values that this kernel supports for this attr.
 Like OpDef.AttrDef.allowed_values, except for kernels instead of Ops.
 
.tensorflow.AttrValue allowed_values = 2;

public KernelDef.AttrConstraint.Builder setAllowedValues ( AttrValue value)

 A list of values that this kernel supports for this attr.
 Like OpDef.AttrDef.allowed_values, except for kernels instead of Ops.
 
.tensorflow.AttrValue allowed_values = 2;

public KernelDef.AttrConstraint.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public KernelDef.AttrConstraint.Builder setName (String value)

 Name of an attr from the Op.
 
string name = 1;

public KernelDef.AttrConstraint.Builder setNameBytes (com.google.protobuf.ByteString value)

 Name of an attr from the Op.
 
string name = 1;

public KernelDef.AttrConstraint.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)

<