Packages

final case class KernelDef(op: String = "", deviceType: String = "", constraint: Seq[AttrConstraint] = _root_.scala.Seq.empty, hostMemoryArg: Seq[String] = _root_.scala.Seq.empty, label: String = "", priority: Int = 0, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[KernelDef] with Product with Serializable

op

Must match the name of an Op.

deviceType

Type of device this kernel runs on.

hostMemoryArg

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

label

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.

priority

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.

Annotations
@SerialVersionUID()
Linear Supertypes
Updatable[KernelDef], GeneratedMessage, Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KernelDef
  2. Updatable
  3. GeneratedMessage
  4. Serializable
  5. Serializable
  6. Product
  7. Equals
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KernelDef(op: String = "", deviceType: String = "", constraint: Seq[AttrConstraint] = _root_.scala.Seq.empty, hostMemoryArg: Seq[String] = _root_.scala.Seq.empty, label: String = "", priority: Int = 0, unknownFields: UnknownFieldSet = ...)

    op

    Must match the name of an Op.

    deviceType

    Type of device this kernel runs on.

    hostMemoryArg

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

    label

    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.

    priority

    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.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAllConstraint(__vs: Iterable[AttrConstraint]): KernelDef
  5. def addAllHostMemoryArg(__vs: Iterable[String]): KernelDef
  6. def addConstraint(__vs: AttrConstraint*): KernelDef
  7. def addHostMemoryArg(__vs: String*): KernelDef
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clearConstraint: KernelDef
  10. def clearHostMemoryArg: KernelDef
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  12. def companion: KernelDef.type
    Definition Classes
    KernelDef → GeneratedMessage
  13. val constraint: Seq[AttrConstraint]
  14. val deviceType: String
  15. def discardUnknownFields: KernelDef
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    KernelDef → GeneratedMessage
  19. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    KernelDef → GeneratedMessage
  20. val hostMemoryArg: Seq[String]
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. val label: String
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. val op: String
  27. val priority: Int
  28. def serializedSize: Int
    Definition Classes
    KernelDef → GeneratedMessage
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  31. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  32. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  33. def toProtoString: String
    Definition Classes
    KernelDef → GeneratedMessage
  34. val unknownFields: UnknownFieldSet
  35. def update(ms: (Lens[KernelDef, KernelDef]) ⇒ Mutation[KernelDef]*): KernelDef
    Definition Classes
    Updatable
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def withConstraint(__v: Seq[AttrConstraint]): KernelDef
  40. def withDeviceType(__v: String): KernelDef
  41. def withHostMemoryArg(__v: Seq[String]): KernelDef
  42. def withLabel(__v: String): KernelDef
  43. def withOp(__v: String): KernelDef
  44. def withPriority(__v: Int): KernelDef
  45. def withUnknownFields(__v: UnknownFieldSet): KernelDef
  46. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  47. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    KernelDef → GeneratedMessage
  48. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Updatable[KernelDef]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped