public static final class KernelDef.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder> implements KernelDefOrBuilder
tensorflow.KernelDef
Modifier and Type | Method and 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.Builder builderForValue)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; |
KernelDef.Builder |
addConstraint(int index,
KernelDef.AttrConstraint value)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; |
KernelDef.Builder |
addConstraint(KernelDef.AttrConstraint.Builder builderForValue)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; |
KernelDef.Builder |
addConstraint(KernelDef.AttrConstraint value)
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(KernelDef other) |
KernelDef.Builder |
mergeFrom(org.nd4j.shade.protobuf.Message 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.Builder builderForValue)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; |
KernelDef.Builder |
setConstraint(int index,
KernelDef.AttrConstraint value)
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) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
public KernelDef.Builder clear()
clear
in interface org.nd4j.shade.protobuf.Message.Builder
clear
in interface org.nd4j.shade.protobuf.MessageLite.Builder
clear
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface org.nd4j.shade.protobuf.Message.Builder
getDescriptorForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
getDescriptorForType
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
public KernelDef getDefaultInstanceForType()
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
public KernelDef build()
build
in interface org.nd4j.shade.protobuf.Message.Builder
build
in interface org.nd4j.shade.protobuf.MessageLite.Builder
public KernelDef buildPartial()
buildPartial
in interface org.nd4j.shade.protobuf.Message.Builder
buildPartial
in interface org.nd4j.shade.protobuf.MessageLite.Builder
public KernelDef.Builder clone()
clone
in interface org.nd4j.shade.protobuf.Message.Builder
clone
in interface org.nd4j.shade.protobuf.MessageLite.Builder
clone
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
public KernelDef.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface org.nd4j.shade.protobuf.Message.Builder
setField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
public KernelDef.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface org.nd4j.shade.protobuf.Message.Builder
clearField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
public KernelDef.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface org.nd4j.shade.protobuf.Message.Builder
clearOneof
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
public KernelDef.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface org.nd4j.shade.protobuf.Message.Builder
setRepeatedField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
public KernelDef.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface org.nd4j.shade.protobuf.Message.Builder
addRepeatedField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
public KernelDef.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
mergeFrom
in interface org.nd4j.shade.protobuf.Message.Builder
mergeFrom
in class org.nd4j.shade.protobuf.AbstractMessage.Builder<KernelDef.Builder>
public KernelDef.Builder mergeFrom(KernelDef other)
public final boolean isInitialized()
isInitialized
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
isInitialized
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
public KernelDef.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface org.nd4j.shade.protobuf.Message.Builder
mergeFrom
in interface org.nd4j.shade.protobuf.MessageLite.Builder
mergeFrom
in class org.nd4j.shade.protobuf.AbstractMessage.Builder<KernelDef.Builder>
IOException
public String getOp()
Must match the name of an Op.
string op = 1;
getOp
in interface KernelDefOrBuilder
public org.nd4j.shade.protobuf.ByteString getOpBytes()
Must match the name of an Op.
string op = 1;
getOpBytes
in interface KernelDefOrBuilder
public KernelDef.Builder setOp(String value)
Must match the name of an Op.
string op = 1;
value
- The op to set.public KernelDef.Builder clearOp()
Must match the name of an Op.
string op = 1;
public KernelDef.Builder setOpBytes(org.nd4j.shade.protobuf.ByteString value)
Must match the name of an Op.
string op = 1;
value
- The bytes for op to set.public String getDeviceType()
Type of device this kernel runs on.
string device_type = 2;
getDeviceType
in interface KernelDefOrBuilder
public org.nd4j.shade.protobuf.ByteString getDeviceTypeBytes()
Type of device this kernel runs on.
string device_type = 2;
getDeviceTypeBytes
in interface KernelDefOrBuilder
public KernelDef.Builder setDeviceType(String value)
Type of device this kernel runs on.
string device_type = 2;
value
- The deviceType to set.public KernelDef.Builder clearDeviceType()
Type of device this kernel runs on.
string device_type = 2;
public KernelDef.Builder setDeviceTypeBytes(org.nd4j.shade.protobuf.ByteString value)
Type of device this kernel runs on.
string device_type = 2;
value
- The bytes for deviceType to set.public List<KernelDef.AttrConstraint> getConstraintList()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
getConstraintList
in interface KernelDefOrBuilder
public int getConstraintCount()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
getConstraintCount
in interface KernelDefOrBuilder
public KernelDef.AttrConstraint getConstraint(int index)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
getConstraint
in interface KernelDefOrBuilder
public KernelDef.Builder setConstraint(int index, KernelDef.AttrConstraint value)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
public KernelDef.Builder setConstraint(int index, KernelDef.AttrConstraint.Builder builderForValue)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
public KernelDef.Builder addConstraint(KernelDef.AttrConstraint value)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
public KernelDef.Builder addConstraint(int index, KernelDef.AttrConstraint value)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
public KernelDef.Builder addConstraint(KernelDef.AttrConstraint.Builder builderForValue)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
public KernelDef.Builder addConstraint(int index, KernelDef.AttrConstraint.Builder builderForValue)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
public KernelDef.Builder addAllConstraint(Iterable<? extends KernelDef.AttrConstraint> values)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
public KernelDef.Builder clearConstraint()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
public KernelDef.Builder removeConstraint(int index)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
public KernelDef.AttrConstraint.Builder getConstraintBuilder(int index)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
public KernelDef.AttrConstraintOrBuilder getConstraintOrBuilder(int index)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
getConstraintOrBuilder
in interface KernelDefOrBuilder
public List<? extends KernelDef.AttrConstraintOrBuilder> getConstraintOrBuilderList()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
getConstraintOrBuilderList
in interface KernelDefOrBuilder
public KernelDef.AttrConstraint.Builder addConstraintBuilder()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
public KernelDef.AttrConstraint.Builder addConstraintBuilder(int index)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
public List<KernelDef.AttrConstraint.Builder> getConstraintBuilderList()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
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;
getHostMemoryArgList
in interface KernelDefOrBuilder
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;
getHostMemoryArgCount
in interface KernelDefOrBuilder
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;
getHostMemoryArg
in interface KernelDefOrBuilder
index
- The index of the element to return.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;
getHostMemoryArgBytes
in interface KernelDefOrBuilder
index
- The index of the value to return.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;
index
- The index to set the value at.value
- The hostMemoryArg to set.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;
value
- The hostMemoryArg to add.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;
values
- The hostMemoryArg to add.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;
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;
value
- The bytes of the hostMemoryArg to add.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;
getLabel
in interface KernelDefOrBuilder
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;
getLabelBytes
in interface KernelDefOrBuilder
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;
value
- The label to set.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;
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;
value
- The bytes for label to set.public final KernelDef.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface org.nd4j.shade.protobuf.Message.Builder
setUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
public final KernelDef.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface org.nd4j.shade.protobuf.Message.Builder
mergeUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<KernelDef.Builder>
Copyright © 2022. All rights reserved.