Interface KernelDefOrBuilder
- All Superinterfaces:
MessageLiteOrBuilder, MessageOrBuilder
- All Known Implementing Classes:
KernelDef, KernelDef.Builder
-
Method Summary
Modifier and TypeMethodDescriptiongetConstraint(int index) repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;intrepeated .tensorflow.KernelDef.AttrConstraint constraint = 3;repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;getConstraintOrBuilder(int index) repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;List<? extends KernelDef.AttrConstraintOrBuilder> repeated .tensorflow.KernelDef.AttrConstraint constraint = 3;Type of device this kernel runs on.Type of device this kernel runs on.getHostMemoryArg(int index) Names of the Op's input_/output_args that reside in host memory instead of device memory.getHostMemoryArgBytes(int index) Names of the Op's input_/output_args that reside in host memory instead of device memory.intNames of the Op's input_/output_args that reside in host memory instead of device memory.Names of the Op's input_/output_args that reside in host memory instead of device memory.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.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.getOp()Must match the name of an Op.Must match the name of an Op.intPrioritization of kernel amongst different devices.Methods inherited from interface MessageLiteOrBuilder
isInitialized
-
Method Details
-
getOp
-
getOpBytes
-
getDeviceType
String getDeviceType()Type of device this kernel runs on.
string device_type = 2;- Returns:
- The deviceType.
-
getDeviceTypeBytes
ByteString getDeviceTypeBytes()Type of device this kernel runs on.
string device_type = 2;- Returns:
- The bytes for deviceType.
-
getConstraintList
List<KernelDef.AttrConstraint> getConstraintList()repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; -
getConstraint
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; -
getConstraintCount
int getConstraintCount()repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; -
getConstraintOrBuilderList
List<? extends KernelDef.AttrConstraintOrBuilder> getConstraintOrBuilderList()repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; -
getConstraintOrBuilder
repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; -
getHostMemoryArgList
-
getHostMemoryArgCount
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;- Returns:
- The count of hostMemoryArg.
-
getHostMemoryArg
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 of the element to return.- Returns:
- The hostMemoryArg at the given index.
-
getHostMemoryArgBytes
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 of the value to return.- Returns:
- The bytes of the hostMemoryArg at the given index.
-
getLabel
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;- Returns:
- The label.
-
getLabelBytes
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;- Returns:
- The bytes for label.
-
getPriority
int getPriority()Prioritization of kernel amongst different devices. By default we assume priority is 0. The higher the priority the better. By default (i.e. if this is not set), we prefer GPU kernels over CPU.
int32 priority = 6;- Returns:
- The priority.
-