KernelDef.Builder

public static final class KernelDef.Builder

Protobuf type tensorflow.KernelDef

Public Methods

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 ( KernelDef.AttrConstraint value)
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
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.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 (com.google.protobuf.ByteString value)
 Names of the Op's input_/output_args that reside in host memory
 instead of device memory.
KernelDef.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
KernelDef
KernelDef
KernelDef.Builder
KernelDef.Builder
clearConstraint ()
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;
KernelDef.Builder
clearDeviceType ()
 Type of device this kernel runs on.
KernelDef.Builder
clearField (com.google.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 (com.google.protobuf.Descriptors.OneofDescriptor oneof)
KernelDef.Builder
clearOp ()
 Must match the name of an Op.
KernelDef.Builder
clearPriority ()
 Prioritization of kernel amongst different devices.
KernelDef.Builder
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
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
String
getDeviceType ()
 Type of device this kernel runs on.
com.google.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.
com.google.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.
com.google.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.
com.google.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.
com.google.protobuf.ByteString
getOpBytes ()
 Must match the name of an Op.
int
getPriority ()
 Prioritization of kernel amongst different devices.
final boolean
KernelDef.Builder
mergeFrom (com.google.protobuf.Message other)
KernelDef.Builder
mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
final KernelDef.Builder
mergeUnknownFields (com.google.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 (com.google.protobuf.ByteString value)
 Type of device this kernel runs on.
KernelDef.Builder
setField (com.google.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 (com.google.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 (com.google.protobuf.ByteString value)
 Must match the name of an Op.
KernelDef.Builder
setPriority (int value)
 Prioritization of kernel amongst different devices.
KernelDef.Builder
setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
final KernelDef.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

Inherited Methods

Public Methods

public KernelDef.Builder addAllConstraint (Iterable<? extends KernelDef.AttrConstraint > values)

repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;

public KernelDef.Builder addAllHostMemoryArg (Iterable<String> values)

 Names of the Op's input_/output_args that reside in host memory
 instead of device memory.