OperatorNode

Struct OperatorNode 

Source
pub struct OperatorNode<'a> {
    pub _tab: Table<'a>,
}

Fields§

§_tab: Table<'a>

Implementations§

Source§

impl<'a> OperatorNode<'a>

Source

pub const VT_TYPE_: VOffsetT = 4u16

Source

pub const VT_ATTRS_TYPE: VOffsetT = 6u16

Source

pub const VT_ATTRS: VOffsetT = 8u16

Source

pub const VT_INPUTS: VOffsetT = 10u16

Source

pub const VT_OUTPUTS: VOffsetT = 12u16

Source

pub unsafe fn init_from_table(table: Table<'a>) -> Self

Source

pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr, A>, args: &'args OperatorNodeArgs<'args>, ) -> WIPOffset<OperatorNode<'bldr>>

Source

pub fn type_(&self) -> OperatorType

Source

pub fn attrs_type(&self) -> OperatorAttrs

Source

pub fn attrs(&self) -> Option<Table<'a>>

Source

pub fn inputs(&self) -> Option<Vector<'a, i32>>

Source

pub fn outputs(&self) -> Option<Vector<'a, i32>>

Source

pub fn attrs_as_arg_max_attrs(&self) -> Option<ArgMaxAttrs<'a>>

Source

pub fn attrs_as_average_pool_attrs(&self) -> Option<AveragePoolAttrs<'a>>

Source

pub fn attrs_as_batch_normalization_attrs( &self, ) -> Option<BatchNormalizationAttrs<'a>>

Source

pub fn attrs_as_cast_attrs(&self) -> Option<CastAttrs<'a>>

Source

pub fn attrs_as_concat_attrs(&self) -> Option<ConcatAttrs<'a>>

Source

pub fn attrs_as_constant_of_shape_attrs( &self, ) -> Option<ConstantOfShapeAttrs<'a>>

Source

pub fn attrs_as_conv_attrs(&self) -> Option<ConvAttrs<'a>>

Source

pub fn attrs_as_conv_transpose_attrs(&self) -> Option<ConvTransposeAttrs<'a>>

Source

pub fn attrs_as_flatten_attrs(&self) -> Option<FlattenAttrs<'a>>

Source

pub fn attrs_as_gather_attrs(&self) -> Option<GatherAttrs<'a>>

Source

pub fn attrs_as_gemm_attrs(&self) -> Option<GemmAttrs<'a>>

Source

pub fn attrs_as_gruattrs(&self) -> Option<GRUAttrs<'a>>

Source

pub fn attrs_as_leaky_relu_attrs(&self) -> Option<LeakyReluAttrs<'a>>

Source

pub fn attrs_as_lstmattrs(&self) -> Option<LSTMAttrs<'a>>

Source

pub fn attrs_as_max_pool_attrs(&self) -> Option<MaxPoolAttrs<'a>>

Source

pub fn attrs_as_reduce_mean_attrs(&self) -> Option<ReduceMeanAttrs<'a>>

Source

pub fn attrs_as_reshape_attrs(&self) -> Option<ReshapeAttrs<'a>>

Source

pub fn attrs_as_resize_attrs(&self) -> Option<ResizeAttrs<'a>>

Source

pub fn attrs_as_split_attrs(&self) -> Option<SplitAttrs<'a>>

Source

pub fn attrs_as_softmax_attrs(&self) -> Option<SoftmaxAttrs<'a>>

Source

pub fn attrs_as_transpose_attrs(&self) -> Option<TransposeAttrs<'a>>

Source

pub fn attrs_as_mod_attrs(&self) -> Option<ModAttrs<'a>>

Source

pub fn attrs_as_scatter_elements_attrs( &self, ) -> Option<ScatterElementsAttrs<'a>>

Source

pub fn attrs_as_one_hot_attrs(&self) -> Option<OneHotAttrs<'a>>

Source

pub fn attrs_as_top_kattrs(&self) -> Option<TopKAttrs<'a>>

Source

pub fn attrs_as_hard_sigmoid_attrs(&self) -> Option<HardSigmoidAttrs<'a>>

Source

pub fn attrs_as_trilu_attrs(&self) -> Option<TriluAttrs<'a>>

Source

pub fn attrs_as_scatter_ndattrs(&self) -> Option<ScatterNDAttrs<'a>>

Source

pub fn attrs_as_non_max_suppression_attrs( &self, ) -> Option<NonMaxSuppressionAttrs<'a>>

Source

pub fn attrs_as_layer_normalization_attrs( &self, ) -> Option<LayerNormalizationAttrs<'a>>

Source

pub fn attrs_as_random_uniform_attrs(&self) -> Option<RandomUniformAttrs<'a>>

Source

pub fn attrs_as_elu_attrs(&self) -> Option<EluAttrs<'a>>

Source

pub fn attrs_as_random_uniform_like_attrs( &self, ) -> Option<RandomUniformLikeAttrs<'a>>

Source

pub fn attrs_as_random_normal_attrs(&self) -> Option<RandomNormalAttrs<'a>>

Source

pub fn attrs_as_random_normal_like_attrs( &self, ) -> Option<RandomNormalLikeAttrs<'a>>

Source

pub fn attrs_as_gather_ndattrs(&self) -> Option<GatherNDAttrs<'a>>

Source

pub fn attrs_as_gelu_attrs(&self) -> Option<GeluAttrs<'a>>

Source

pub fn attrs_as_einsum_attrs(&self) -> Option<EinsumAttrs<'a>>

Source

pub fn attrs_as_if_attrs(&self) -> Option<IfAttrs<'a>>

Source

pub fn attrs_as_pad_attrs(&self) -> Option<PadAttrs<'a>>

Source

pub fn attrs_as_dequantize_linear_attrs( &self, ) -> Option<DequantizeLinearAttrs<'a>>

Source

pub fn attrs_as_quantize_linear_attrs(&self) -> Option<QuantizeLinearAttrs<'a>>

Source

pub fn attrs_as_depth_to_space_attrs(&self) -> Option<DepthToSpaceAttrs<'a>>

Source

pub fn attrs_as_cast_like_attrs(&self) -> Option<CastLikeAttrs<'a>>

Source

pub fn attrs_as_shape_attrs(&self) -> Option<ShapeAttrs<'a>>

Source

pub fn attrs_as_dropout_attrs(&self) -> Option<DropoutAttrs<'a>>

Source

pub fn attrs_as_eye_like_attrs(&self) -> Option<EyeLikeAttrs<'a>>

Source

pub fn attrs_as_is_inf_attrs(&self) -> Option<IsInfAttrs<'a>>

Source

pub fn attrs_as_loop_attrs(&self) -> Option<LoopAttrs<'a>>

Source

pub fn attrs_as_sequence_empty_attrs(&self) -> Option<SequenceEmptyAttrs<'a>>

Source

pub fn attrs_as_concat_from_sequence_attrs( &self, ) -> Option<ConcatFromSequenceAttrs<'a>>

Source

pub fn attrs_as_split_to_sequence_attrs( &self, ) -> Option<SplitToSequenceAttrs<'a>>

Source

pub fn attrs_as_grid_sample_attrs(&self) -> Option<GridSampleAttrs<'a>>

Source

pub fn attrs_as_stftattrs(&self) -> Option<STFTAttrs<'a>>

Trait Implementations§

Source§

impl<'a> Clone for OperatorNode<'a>

Source§

fn clone(&self) -> OperatorNode<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OperatorNode<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Follow<'a> for OperatorNode<'a>

Source§

type Inner = OperatorNode<'a>

Source§

unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner

Safety Read more
Source§

impl<'a> PartialEq for OperatorNode<'a>

Source§

fn eq(&self, other: &OperatorNode<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Verifiable for OperatorNode<'_>

Source§

fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>

Runs the verifier for this type, assuming its at position pos in the verifier’s buffer. Should not need to be called directly.
Source§

impl<'a> Copy for OperatorNode<'a>

Source§

impl<'a> StructuralPartialEq for OperatorNode<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for OperatorNode<'a>

§

impl<'a> RefUnwindSafe for OperatorNode<'a>

§

impl<'a> Send for OperatorNode<'a>

§

impl<'a> Sync for OperatorNode<'a>

§

impl<'a> Unpin for OperatorNode<'a>

§

impl<'a> UnwindSafe for OperatorNode<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.