pub struct OperatorNode<'a> {
pub _tab: Table<'a>,
}
Fields§
§_tab: Table<'a>
Implementations§
Source§impl<'a> OperatorNode<'a>
impl<'a> OperatorNode<'a>
pub const VT_TYPE_: VOffsetT = 4u16
pub const VT_ATTRS_TYPE: VOffsetT = 6u16
pub const VT_ATTRS: VOffsetT = 8u16
pub const VT_INPUTS: VOffsetT = 10u16
pub const VT_OUTPUTS: VOffsetT = 12u16
pub unsafe fn init_from_table(table: Table<'a>) -> Self
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>>
pub fn type_(&self) -> OperatorType
pub fn attrs_type(&self) -> OperatorAttrs
pub fn attrs(&self) -> Option<Table<'a>>
pub fn inputs(&self) -> Option<Vector<'a, i32>>
pub fn outputs(&self) -> Option<Vector<'a, i32>>
pub fn attrs_as_arg_max_attrs(&self) -> Option<ArgMaxAttrs<'a>>
pub fn attrs_as_average_pool_attrs(&self) -> Option<AveragePoolAttrs<'a>>
pub fn attrs_as_batch_normalization_attrs( &self, ) -> Option<BatchNormalizationAttrs<'a>>
pub fn attrs_as_cast_attrs(&self) -> Option<CastAttrs<'a>>
pub fn attrs_as_concat_attrs(&self) -> Option<ConcatAttrs<'a>>
pub fn attrs_as_constant_of_shape_attrs( &self, ) -> Option<ConstantOfShapeAttrs<'a>>
pub fn attrs_as_conv_attrs(&self) -> Option<ConvAttrs<'a>>
pub fn attrs_as_conv_transpose_attrs(&self) -> Option<ConvTransposeAttrs<'a>>
pub fn attrs_as_flatten_attrs(&self) -> Option<FlattenAttrs<'a>>
pub fn attrs_as_gather_attrs(&self) -> Option<GatherAttrs<'a>>
pub fn attrs_as_gemm_attrs(&self) -> Option<GemmAttrs<'a>>
pub fn attrs_as_gruattrs(&self) -> Option<GRUAttrs<'a>>
pub fn attrs_as_leaky_relu_attrs(&self) -> Option<LeakyReluAttrs<'a>>
pub fn attrs_as_lstmattrs(&self) -> Option<LSTMAttrs<'a>>
pub fn attrs_as_max_pool_attrs(&self) -> Option<MaxPoolAttrs<'a>>
pub fn attrs_as_reduce_mean_attrs(&self) -> Option<ReduceMeanAttrs<'a>>
pub fn attrs_as_reshape_attrs(&self) -> Option<ReshapeAttrs<'a>>
pub fn attrs_as_resize_attrs(&self) -> Option<ResizeAttrs<'a>>
pub fn attrs_as_split_attrs(&self) -> Option<SplitAttrs<'a>>
pub fn attrs_as_softmax_attrs(&self) -> Option<SoftmaxAttrs<'a>>
pub fn attrs_as_transpose_attrs(&self) -> Option<TransposeAttrs<'a>>
pub fn attrs_as_mod_attrs(&self) -> Option<ModAttrs<'a>>
pub fn attrs_as_scatter_elements_attrs( &self, ) -> Option<ScatterElementsAttrs<'a>>
pub fn attrs_as_one_hot_attrs(&self) -> Option<OneHotAttrs<'a>>
pub fn attrs_as_top_kattrs(&self) -> Option<TopKAttrs<'a>>
pub fn attrs_as_hard_sigmoid_attrs(&self) -> Option<HardSigmoidAttrs<'a>>
pub fn attrs_as_trilu_attrs(&self) -> Option<TriluAttrs<'a>>
pub fn attrs_as_scatter_ndattrs(&self) -> Option<ScatterNDAttrs<'a>>
pub fn attrs_as_non_max_suppression_attrs( &self, ) -> Option<NonMaxSuppressionAttrs<'a>>
pub fn attrs_as_layer_normalization_attrs( &self, ) -> Option<LayerNormalizationAttrs<'a>>
pub fn attrs_as_random_uniform_attrs(&self) -> Option<RandomUniformAttrs<'a>>
pub fn attrs_as_elu_attrs(&self) -> Option<EluAttrs<'a>>
pub fn attrs_as_random_uniform_like_attrs( &self, ) -> Option<RandomUniformLikeAttrs<'a>>
pub fn attrs_as_random_normal_attrs(&self) -> Option<RandomNormalAttrs<'a>>
pub fn attrs_as_random_normal_like_attrs( &self, ) -> Option<RandomNormalLikeAttrs<'a>>
pub fn attrs_as_gather_ndattrs(&self) -> Option<GatherNDAttrs<'a>>
pub fn attrs_as_gelu_attrs(&self) -> Option<GeluAttrs<'a>>
pub fn attrs_as_einsum_attrs(&self) -> Option<EinsumAttrs<'a>>
pub fn attrs_as_if_attrs(&self) -> Option<IfAttrs<'a>>
pub fn attrs_as_pad_attrs(&self) -> Option<PadAttrs<'a>>
pub fn attrs_as_dequantize_linear_attrs( &self, ) -> Option<DequantizeLinearAttrs<'a>>
pub fn attrs_as_quantize_linear_attrs(&self) -> Option<QuantizeLinearAttrs<'a>>
pub fn attrs_as_depth_to_space_attrs(&self) -> Option<DepthToSpaceAttrs<'a>>
pub fn attrs_as_cast_like_attrs(&self) -> Option<CastLikeAttrs<'a>>
pub fn attrs_as_shape_attrs(&self) -> Option<ShapeAttrs<'a>>
pub fn attrs_as_dropout_attrs(&self) -> Option<DropoutAttrs<'a>>
pub fn attrs_as_eye_like_attrs(&self) -> Option<EyeLikeAttrs<'a>>
pub fn attrs_as_is_inf_attrs(&self) -> Option<IsInfAttrs<'a>>
pub fn attrs_as_loop_attrs(&self) -> Option<LoopAttrs<'a>>
pub fn attrs_as_sequence_empty_attrs(&self) -> Option<SequenceEmptyAttrs<'a>>
pub fn attrs_as_concat_from_sequence_attrs( &self, ) -> Option<ConcatFromSequenceAttrs<'a>>
pub fn attrs_as_split_to_sequence_attrs( &self, ) -> Option<SplitToSequenceAttrs<'a>>
pub fn attrs_as_grid_sample_attrs(&self) -> Option<GridSampleAttrs<'a>>
pub fn attrs_as_stftattrs(&self) -> Option<STFTAttrs<'a>>
Trait Implementations§
Source§impl<'a> Clone for OperatorNode<'a>
impl<'a> Clone for OperatorNode<'a>
Source§fn clone(&self) -> OperatorNode<'a>
fn clone(&self) -> OperatorNode<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OperatorNode<'_>
impl Debug for OperatorNode<'_>
Source§impl<'a> Follow<'a> for OperatorNode<'a>
impl<'a> Follow<'a> for OperatorNode<'a>
Source§impl<'a> PartialEq for OperatorNode<'a>
impl<'a> PartialEq for OperatorNode<'a>
Source§impl Verifiable for OperatorNode<'_>
impl Verifiable for OperatorNode<'_>
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
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.impl<'a> Copy for OperatorNode<'a>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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