fn elu_gate[T](cache &vtl.Tensor[T]) &EluGate[T]
fn leaky_relu_gate[T](cache &vtl.Tensor[T]) &LeakyReluGate[T]
fn relu_gate[T](cache &vtl.Tensor[T]) &ReLUGate[T]
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 (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 (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[T] {
pub:
cache &vtl.Tensor[T] = unsafe { nil }
}
struct LeakyReluGate[T] {
pub:
cache &vtl.Tensor[T] = unsafe { nil }
}
struct ReLUGate[T] {
pub:
cache &vtl.Tensor[T] = unsafe { nil }
}
struct SigmoidGate[T] {
pub:
cache &vtl.Tensor[T] = unsafe { nil }
}