class Num::NN::LinearLayer(T)

Defined in:

nn/layers/linear.cr

Constructors

Instance Method Summary

Instance methods inherited from class Num::NN::Layer(T)

forward(input : Num::Grad::Variable(T)) forward, output_shape : Array(Int32) output_shape, variables : Array(Num::Grad::Variable(T)) variables

Constructor Detail

def self.new(context : Num::Grad::Context(T), inp_dim : Int, outp_dim : Int) #

[View source]

Instance Method Detail

def bias : Num::Grad::Variable(T) #

[View source]
def forward(input : Num::Grad::Variable(T)) : Num::Grad::Variable(T) #

[View source]
def output_shape : Array(Int32) #

[View source]
def variables : Array(Num::Grad::Variable(T)) #

[View source]
def weights : Num::Grad::Variable(T) #

[View source]