Skip to content

nn.gates.activation #

fn elu_gate #

fn elu_gate[T](cache &vtl.Tensor[T]) &EluGate[T]

fn leaky_relu_gate #

fn leaky_relu_gate[T](cache &vtl.Tensor[T]) &LeakyReluGate[T]

fn relu_gate #

fn relu_gate[T](cache &vtl.Tensor[T]) &ReLUGate[T]

fn sigmoid_gate #

fn sigmoid_gate[T](cache &vtl.Tensor[T]) &SigmoidGate[T]

fn (EluGate[T]) backward #

fn (g &EluGate[T]) backward[T](payload &autograd.Payload[T]) ![]&vtl.Tensor[T]

fn (EluGate[T]) cache #

fn (g &EluGate[T]) cache[T](mut result autograd.Variable[T], args ...autograd.CacheParam) !

fn (LeakyReluGate[T]) backward #

fn (g &LeakyReluGate[T]) backward[T](payload &autograd.Payload[T]) ![]&vtl.Tensor[T]

fn (LeakyReluGate[T]) cache #

fn (g &LeakyReluGate[T]) cache[T](mut result autograd.Variable[T], args ...autograd.CacheParam) !

fn (ReLUGate[T]) backward #

fn (g &ReLUGate[T]) backward[T](payload &autograd.Payload[T]) ![]&vtl.Tensor[T]

fn (ReLUGate[T]) cache #

fn (g &ReLUGate[T]) cache[T](mut result autograd.Variable[T], args ...autograd.CacheParam) !

fn (SigmoidGate[T]) backward #

fn (g &SigmoidGate[T]) backward[T](payload &autograd.Payload[T]) ![]&vtl.Tensor[T]

fn (SigmoidGate[T]) cache #

fn (g &SigmoidGate[T]) cache[T](mut result autograd.Variable[T], args ...autograd.CacheParam) !

struct EluGate #

struct EluGate[T] {
pub:
	cache &vtl.Tensor[T] = unsafe { nil }
}

struct LeakyReluGate #

struct LeakyReluGate[T] {
pub:
	cache &vtl.Tensor[T] = unsafe { nil }
}

struct ReLUGate #

struct ReLUGate[T] {
pub:
	cache &vtl.Tensor[T] = unsafe { nil }
}

struct SigmoidGate #

struct SigmoidGate[T] {
pub:
	cache &vtl.Tensor[T] = unsafe { nil }
}