#[repr(i32)]pub enum ArgKind {
DNN_ARG_EMPTY = 0,
DNN_ARG_CONST = 1,
DNN_ARG_INPUT = 2,
DNN_ARG_OUTPUT = 3,
DNN_ARG_TEMP = 4,
DNN_ARG_PATTERN = 5,
}Variants§
DNN_ARG_EMPTY = 0
valid only for Arg.idx==0. It’s “no-arg”
DNN_ARG_CONST = 1
a constant argument.
DNN_ARG_INPUT = 2
input of the whole model. Before Net::forward() or in Net::forward() all inputs must be set
DNN_ARG_OUTPUT = 3
output of the model.
DNN_ARG_TEMP = 4
intermediate result, a result of some operation and input to some other operation(s).
DNN_ARG_PATTERN = 5
not used for now
Trait Implementations§
impl Copy for ArgKind
impl Eq for ArgKind
impl StructuralPartialEq for ArgKind
Auto Trait Implementations§
impl Freeze for ArgKind
impl RefUnwindSafe for ArgKind
impl Send for ArgKind
impl Sync for ArgKind
impl Unpin for ArgKind
impl UnsafeUnpin for ArgKind
impl UnwindSafe for ArgKind
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