pub struct Input {
pub out_data: Vec<f32>,
pub in_size: usize,
pub out_size: usize,
}Fields§
§out_data: Vec<f32>§in_size: usize§out_size: usizeTrait Implementations§
source§impl GenericLayer for Input
impl GenericLayer for Input
fn is_trainable(&self) -> bool
fn get_name(&self) -> String
fn get_in_size(&self) -> usize
fn get_out_size(&self) -> usize
fn get_params_and_grads(&mut self) -> (&mut Vec<f32>, &mut Vec<f32>)
fn get_weights_mut(&mut self) -> &mut Vec<f32>
fn get_grads(&self) -> &Vec<f32>
fn get_costs(&self) -> &Vec<f32>
fn get_out_data(&self) -> &Vec<f32>
fn get_weights(&self) -> &Vec<f32>
fn backward_data(&mut self, _data_in: &Vec<f32>, _expected: &Vec<f32>)
fn backward_costs(&mut self, _data_in: &Vec<f32>, _costs: &Vec<f32>)
fn forward_data(&mut self, data: &Vec<f32>)
Auto Trait Implementations§
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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