Trait rai_core::ops::ArangeArgs

source ·
pub trait ArangeArgs<D: Type>: Debug {
    // Required method
    fn stop(&self) -> D::Repr;

    // Provided methods
    fn start(&self) -> D::Repr { ... }
    fn step(&self) -> D::Repr { ... }
    fn size(&self) -> usize { ... }
}
Expand description

Represents the arguments for the arange function.

Required Methods§

source

fn stop(&self) -> D::Repr

Returns the stop value for the arange function.

Provided Methods§

source

fn start(&self) -> D::Repr

Returns the start value for the arange function.

source

fn step(&self) -> D::Repr

Returns the step value for the arange function.

source

fn size(&self) -> usize

Returns the size of the resulting Tensor for the arange function.

Implementations on Foreign Types§

source§

impl ArangeArgs<F16> for (f16, f16)

source§

fn start(&self) -> f16

source§

fn stop(&self) -> f16

source§

impl ArangeArgs<F16> for (f16, f16, f16)

source§

fn start(&self) -> f16

source§

fn stop(&self) -> f16

source§

fn step(&self) -> f16

source§

impl ArangeArgs<F16> for f16

source§

fn stop(&self) -> f16

source§

impl ArangeArgs<F32> for (f32, f32)

source§

fn start(&self) -> f32

source§

fn stop(&self) -> f32

source§

impl ArangeArgs<F32> for (f32, f32, f32)

source§

fn start(&self) -> f32

source§

fn stop(&self) -> f32

source§

fn step(&self) -> f32

source§

impl ArangeArgs<F32> for f32

source§

fn stop(&self) -> f32

source§

impl ArangeArgs<F64> for (f64, f64)

source§

fn start(&self) -> f64

source§

fn stop(&self) -> f64

source§

impl ArangeArgs<F64> for (f64, f64, f64)

source§

fn start(&self) -> f64

source§

fn stop(&self) -> f64

source§

fn step(&self) -> f64

source§

impl ArangeArgs<F64> for f64

source§

fn stop(&self) -> f64

source§

impl ArangeArgs<U8> for (u8, u8)

source§

fn start(&self) -> u8

source§

fn stop(&self) -> u8

source§

impl ArangeArgs<U8> for (u8, u8, u8)

source§

fn start(&self) -> u8

source§

fn stop(&self) -> u8

source§

fn step(&self) -> u8

source§

impl ArangeArgs<U8> for u8

source§

fn stop(&self) -> u8

source§

impl ArangeArgs<U32> for (u32, u32)

source§

fn start(&self) -> u32

source§

fn stop(&self) -> u32

source§

impl ArangeArgs<U32> for (u32, u32, u32)

source§

fn start(&self) -> u32

source§

fn stop(&self) -> u32

source§

fn step(&self) -> u32

source§

impl ArangeArgs<U32> for u32

source§

fn stop(&self) -> u32

Implementors§