Package org.tensorflow.framework
Class KernelDef.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
-
- org.tensorflow.framework.KernelDef.Builder
-
- All Implemented Interfaces:
Cloneable
,org.nd4j.shade.protobuf.Message.Builder
,org.nd4j.shade.protobuf.MessageLite.Builder
,org.nd4j.shade.protobuf.MessageLiteOrBuilder
,org.nd4j.shade.protobuf.MessageOrBuilder
,KernelDefOrBuilder
- Enclosing class:
- KernelDef
public static final class KernelDef.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder> implements KernelDefOrBuilder
Protobuf typetensorflow.KernelDef
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KernelDef.Builder
addAllConstraint(Iterable<? extends KernelDef.AttrConstraint> values)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
KernelDef.Builder
addAllHostMemoryArg(Iterable<String> values)
Names of the Op's input_/output_args that reside in host memory instead of device memory.KernelDef.Builder
addConstraint(int index, KernelDef.AttrConstraint value)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
KernelDef.Builder
addConstraint(int index, KernelDef.AttrConstraint.Builder builderForValue)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
KernelDef.Builder
addConstraint(KernelDef.AttrConstraint value)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
KernelDef.Builder
addConstraint(KernelDef.AttrConstraint.Builder builderForValue)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
KernelDef.AttrConstraint.Builder
addConstraintBuilder()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
KernelDef.AttrConstraint.Builder
addConstraintBuilder(int index)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
KernelDef.Builder
addHostMemoryArg(String value)
Names of the Op's input_/output_args that reside in host memory instead of device memory.KernelDef.Builder
addHostMemoryArgBytes(org.nd4j.shade.protobuf.ByteString value)
Names of the Op's input_/output_args that reside in host memory instead of device memory.KernelDef.Builder
addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
KernelDef
build()
KernelDef
buildPartial()
KernelDef.Builder
clear()
KernelDef.Builder
clearConstraint()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
KernelDef.Builder
clearDeviceType()
Type of device this kernel runs on.KernelDef.Builder
clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
KernelDef.Builder
clearHostMemoryArg()
Names of the Op's input_/output_args that reside in host memory instead of device memory.KernelDef.Builder
clearLabel()
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.KernelDef.Builder
clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
KernelDef.Builder
clearOp()
Must match the name of an Op.KernelDef.Builder
clone()
KernelDef.AttrConstraint
getConstraint(int index)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
KernelDef.AttrConstraint.Builder
getConstraintBuilder(int index)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
List<KernelDef.AttrConstraint.Builder>
getConstraintBuilderList()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
int
getConstraintCount()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
List<KernelDef.AttrConstraint>
getConstraintList()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
KernelDef.AttrConstraintOrBuilder
getConstraintOrBuilder(int index)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
List<? extends KernelDef.AttrConstraintOrBuilder>
getConstraintOrBuilderList()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
KernelDef
getDefaultInstanceForType()
static org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor()
org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDeviceType()
Type of device this kernel runs on.org.nd4j.shade.protobuf.ByteString
getDeviceTypeBytes()
Type of device this kernel runs on.String
getHostMemoryArg(int index)
Names of the Op's input_/output_args that reside in host memory instead of device memory.org.nd4j.shade.protobuf.ByteString
getHostMemoryArgBytes(int index)
Names of the Op's input_/output_args that reside in host memory instead of device memory.int
getHostMemoryArgCount()
Names of the Op's input_/output_args that reside in host memory instead of device memory.org.nd4j.shade.protobuf.ProtocolStringList
getHostMemoryArgList()
Names of the Op's input_/output_args that reside in host memory instead of device memory.String
getLabel()
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.org.nd4j.shade.protobuf.ByteString
getLabelBytes()
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
getOp()
Must match the name of an Op.org.nd4j.shade.protobuf.ByteString
getOpBytes()
Must match the name of an Op.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
KernelDef.Builder
mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
KernelDef.Builder
mergeFrom(org.nd4j.shade.protobuf.Message other)
KernelDef.Builder
mergeFrom(KernelDef other)
KernelDef.Builder
mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
KernelDef.Builder
removeConstraint(int index)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
KernelDef.Builder
setConstraint(int index, KernelDef.AttrConstraint value)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
KernelDef.Builder
setConstraint(int index, KernelDef.AttrConstraint.Builder builderForValue)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
KernelDef.Builder
setDeviceType(String value)
Type of device this kernel runs on.KernelDef.Builder
setDeviceTypeBytes(org.nd4j.shade.protobuf.ByteString value)
Type of device this kernel runs on.KernelDef.Builder
setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
KernelDef.Builder
setHostMemoryArg(int index, String value)
Names of the Op's input_/output_args that reside in host memory instead of device memory.KernelDef.Builder
setLabel(String value)
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.KernelDef.Builder
setLabelBytes(org.nd4j.shade.protobuf.ByteString value)
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.KernelDef.Builder
setOp(String value)
Must match the name of an Op.KernelDef.Builder
setOpBytes(org.nd4j.shade.protobuf.ByteString value)
Must match the name of an Op.KernelDef.Builder
setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
KernelDef.Builder
setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
-
clear
public KernelDef.Builder clear()
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clear
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
-
getDefaultInstanceForType
public KernelDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public KernelDef build()
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public KernelDef buildPartial()
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public KernelDef.Builder clone()
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clone
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
-
setField
public KernelDef.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
-
clearField
public KernelDef.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
-
clearOneof
public KernelDef.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearOneof
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
-
setRepeatedField
public KernelDef.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
-
addRepeatedField
public KernelDef.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
-
mergeFrom
public KernelDef.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeFrom
in classorg.nd4j.shade.protobuf.AbstractMessage.Builder<KernelDef.Builder>
-
mergeFrom
public KernelDef.Builder mergeFrom(KernelDef other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
-
mergeFrom
public KernelDef.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classorg.nd4j.shade.protobuf.AbstractMessage.Builder<KernelDef.Builder>
- Throws:
IOException
-
getOp
public String getOp()
Must match the name of an Op.
string op = 1;
- Specified by:
getOp
in interfaceKernelDefOrBuilder
- Returns:
- The op.
-
getOpBytes
public org.nd4j.shade.protobuf.ByteString getOpBytes()
Must match the name of an Op.
string op = 1;
- Specified by:
getOpBytes
in interfaceKernelDefOrBuilder
- Returns:
- The bytes for op.
-
setOp
public KernelDef.Builder setOp(String value)
Must match the name of an Op.
string op = 1;
- Parameters:
value
- The op to set.- Returns:
- This builder for chaining.
-
clearOp
public KernelDef.Builder clearOp()
Must match the name of an Op.
string op = 1;
- Returns:
- This builder for chaining.
-
setOpBytes
public KernelDef.Builder setOpBytes(org.nd4j.shade.protobuf.ByteString value)
Must match the name of an Op.
string op = 1;
- Parameters:
value
- The bytes for op to set.- Returns:
- This builder for chaining.
-
getDeviceType
public String getDeviceType()
Type of device this kernel runs on.
string device_type = 2;
- Specified by:
getDeviceType
in interfaceKernelDefOrBuilder
- Returns:
- The deviceType.
-
getDeviceTypeBytes
public org.nd4j.shade.protobuf.ByteString getDeviceTypeBytes()
Type of device this kernel runs on.
string device_type = 2;
- Specified by:
getDeviceTypeBytes
in interfaceKernelDefOrBuilder
- Returns:
- The bytes for deviceType.
-
setDeviceType
public KernelDef.Builder setDeviceType(String value)
Type of device this kernel runs on.
string device_type = 2;
- Parameters:
value
- The deviceType to set.- Returns:
- This builder for chaining.
-
clearDeviceType
public KernelDef.Builder clearDeviceType()
Type of device this kernel runs on.
string device_type = 2;
- Returns:
- This builder for chaining.
-
setDeviceTypeBytes
public KernelDef.Builder setDeviceTypeBytes(org.nd4j.shade.protobuf.ByteString value)
Type of device this kernel runs on.
string device_type = 2;
- Parameters:
value
- The bytes for deviceType to set.- Returns:
- This builder for chaining.
-
getConstraintList
public List<KernelDef.AttrConstraint> getConstraintList()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
- Specified by:
getConstraintList
in interfaceKernelDefOrBuilder
-
getConstraintCount
public int getConstraintCount()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
- Specified by:
getConstraintCount
in interfaceKernelDefOrBuilder
-
getConstraint
public KernelDef.AttrConstraint getConstraint(int index)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
- Specified by:
getConstraint
in interfaceKernelDefOrBuilder
-
setConstraint
public KernelDef.Builder setConstraint(int index, KernelDef.AttrConstraint value)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
-
setConstraint
public KernelDef.Builder setConstraint(int index, KernelDef.AttrConstraint.Builder builderForValue)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
-
addConstraint
public KernelDef.Builder addConstraint(KernelDef.AttrConstraint value)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
-
addConstraint
public KernelDef.Builder addConstraint(int index, KernelDef.AttrConstraint value)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
-
addConstraint
public KernelDef.Builder addConstraint(KernelDef.AttrConstraint.Builder builderForValue)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
-
addConstraint
public KernelDef.Builder addConstraint(int index, KernelDef.AttrConstraint.Builder builderForValue)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
-
addAllConstraint
public KernelDef.Builder addAllConstraint(Iterable<? extends KernelDef.AttrConstraint> values)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
-
clearConstraint
public KernelDef.Builder clearConstraint()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
-
removeConstraint
public KernelDef.Builder removeConstraint(int index)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
-
getConstraintBuilder
public KernelDef.AttrConstraint.Builder getConstraintBuilder(int index)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
-
getConstraintOrBuilder
public KernelDef.AttrConstraintOrBuilder getConstraintOrBuilder(int index)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
- Specified by:
getConstraintOrBuilder
in interfaceKernelDefOrBuilder
-
getConstraintOrBuilderList
public List<? extends KernelDef.AttrConstraintOrBuilder> getConstraintOrBuilderList()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
- Specified by:
getConstraintOrBuilderList
in interfaceKernelDefOrBuilder
-
addConstraintBuilder
public KernelDef.AttrConstraint.Builder addConstraintBuilder()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
-
addConstraintBuilder
public KernelDef.AttrConstraint.Builder addConstraintBuilder(int index)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
-
getConstraintBuilderList
public List<KernelDef.AttrConstraint.Builder> getConstraintBuilderList()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
-
getHostMemoryArgList
public org.nd4j.shade.protobuf.ProtocolStringList getHostMemoryArgList()
Names of the Op's input_/output_args that reside in host memory instead of device memory.
repeated string host_memory_arg = 4;
- Specified by:
getHostMemoryArgList
in interfaceKernelDefOrBuilder
- Returns:
- A list containing the hostMemoryArg.
-
getHostMemoryArgCount
public int getHostMemoryArgCount()
Names of the Op's input_/output_args that reside in host memory instead of device memory.
repeated string host_memory_arg = 4;
- Specified by:
getHostMemoryArgCount
in interfaceKernelDefOrBuilder
- Returns:
- The count of hostMemoryArg.
-
getHostMemoryArg
public String getHostMemoryArg(int index)
Names of the Op's input_/output_args that reside in host memory instead of device memory.
repeated string host_memory_arg = 4;
- Specified by:
getHostMemoryArg
in interfaceKernelDefOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The hostMemoryArg at the given index.
-
getHostMemoryArgBytes
public org.nd4j.shade.protobuf.ByteString getHostMemoryArgBytes(int index)
Names of the Op's input_/output_args that reside in host memory instead of device memory.
repeated string host_memory_arg = 4;
- Specified by:
getHostMemoryArgBytes
in interfaceKernelDefOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the hostMemoryArg at the given index.
-
setHostMemoryArg
public KernelDef.Builder setHostMemoryArg(int index, String value)
Names of the Op's input_/output_args that reside in host memory instead of device memory.
repeated string host_memory_arg = 4;
- Parameters:
index
- The index to set the value at.value
- The hostMemoryArg to set.- Returns:
- This builder for chaining.
-
addHostMemoryArg
public KernelDef.Builder addHostMemoryArg(String value)
Names of the Op's input_/output_args that reside in host memory instead of device memory.
repeated string host_memory_arg = 4;
- Parameters:
value
- The hostMemoryArg to add.- Returns:
- This builder for chaining.
-
addAllHostMemoryArg
public KernelDef.Builder addAllHostMemoryArg(Iterable<String> values)
Names of the Op's input_/output_args that reside in host memory instead of device memory.
repeated string host_memory_arg = 4;
- Parameters:
values
- The hostMemoryArg to add.- Returns:
- This builder for chaining.
-
clearHostMemoryArg
public KernelDef.Builder clearHostMemoryArg()
Names of the Op's input_/output_args that reside in host memory instead of device memory.
repeated string host_memory_arg = 4;
- Returns:
- This builder for chaining.
-
addHostMemoryArgBytes
public KernelDef.Builder addHostMemoryArgBytes(org.nd4j.shade.protobuf.ByteString value)
Names of the Op's input_/output_args that reside in host memory instead of device memory.
repeated string host_memory_arg = 4;
- Parameters:
value
- The bytes of the hostMemoryArg to add.- Returns:
- This builder for chaining.
-
getLabel
public String getLabel()
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;
- Specified by:
getLabel
in interfaceKernelDefOrBuilder
- Returns:
- The label.
-
getLabelBytes
public org.nd4j.shade.protobuf.ByteString getLabelBytes()
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;
- Specified by:
getLabelBytes
in interfaceKernelDefOrBuilder
- Returns:
- The bytes for label.
-
setLabel
public KernelDef.Builder setLabel(String value)
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;
- Parameters:
value
- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
public KernelDef.Builder clearLabel()
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;
- Returns:
- This builder for chaining.
-
setLabelBytes
public KernelDef.Builder setLabelBytes(org.nd4j.shade.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for label to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final KernelDef.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
-
mergeUnknownFields
public final KernelDef.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
-
-