Trait burn_core::module::ModuleMapper

source ·
pub trait ModuleMapper<B: Backend> {
    // Provided methods
    fn map_float<const D: usize>(
        &mut self,
        _id: &ParamId,
        tensor: Tensor<B, D>,
    ) -> Tensor<B, D> { ... }
    fn map_int<const D: usize>(
        &mut self,
        _id: &ParamId,
        tensor: Tensor<B, D, Int>,
    ) -> Tensor<B, D, Int> { ... }
    fn map_bool<const D: usize>(
        &mut self,
        _id: &ParamId,
        tensor: Tensor<B, D, Bool>,
    ) -> Tensor<B, D, Bool> { ... }
}
Expand description

Module mapper trait.

Provided Methods§

source

fn map_float<const D: usize>( &mut self, _id: &ParamId, tensor: Tensor<B, D>, ) -> Tensor<B, D>

Map a float tensor in the module.

source

fn map_int<const D: usize>( &mut self, _id: &ParamId, tensor: Tensor<B, D, Int>, ) -> Tensor<B, D, Int>

Map an int tensor in the module.

source

fn map_bool<const D: usize>( &mut self, _id: &ParamId, tensor: Tensor<B, D, Bool>, ) -> Tensor<B, D, Bool>

Map a bool tensor in the module.

Object Safety§

This trait is not object safe.

Implementors§