Struct tfrecord::protos::KernelDef[][src]

pub struct KernelDef {
    pub op: String,
    pub device_type: String,
    pub constraint: Vec<AttrConstraint>,
    pub host_memory_arg: Vec<String>,
    pub label: String,
    pub priority: i32,
}

Fields

op: String

Must match the name of an Op.

device_type: String

Type of device this kernel runs on.

constraint: Vec<AttrConstraint>host_memory_arg: Vec<String>

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

label: String

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: i32

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.

Trait Implementations

impl Clone for KernelDef[src]

impl Debug for KernelDef[src]

impl Default for KernelDef[src]

impl<'de> Deserialize<'de> for KernelDef[src]

impl Message for KernelDef[src]

impl PartialEq<KernelDef> for KernelDef[src]

impl Serialize for KernelDef[src]

impl StructuralPartialEq for KernelDef[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,