nn.gates.loss
fn bce_gate #
fn bce_gate[T](input &vtl.Tensor[T], target &vtl.Tensor[T], from_logits bool) &BCEGate[T]
bce_gate exposes this operation as part of the public API.
fn huber_loss_gate #
fn huber_loss_gate[T](input &vtl.Tensor[T], target &vtl.Tensor[T], delta T) &HuberLossGate[T]
huber_loss_gate exposes this operation as part of the public API.
fn kl_div_loss_gate #
fn kl_div_loss_gate[T](input &vtl.Tensor[T], target &vtl.Tensor[T]) &KLDivLossGate[T]
kl_div_loss_gate exposes this operation as part of the public API.
fn mse_gate #
fn mse_gate[T](cache &autograd.Variable[T], target &vtl.Tensor[T]) &MseGate[T]
mse_gate exposes this operation as part of the public API.
fn nll_loss_gate #
fn nll_loss_gate[T](input &vtl.Tensor[T], target &vtl.Tensor[T]) &NLLLossGate[T]
nll_loss_gate exposes this operation as part of the public API.
fn sigmoid_cross_entropy_gate #
fn sigmoid_cross_entropy_gate[T](cache &autograd.Variable[T], target &vtl.Tensor[T]) &SigmoidCrossEntropyGate[T]
sigmoid_cross_entropy_gate exposes this operation as part of the public API.
fn softmax_cross_entropy_gate #
fn softmax_cross_entropy_gate[T](cache &autograd.Variable[T], target &vtl.Tensor[T]) &SoftmaxCrossEntropyGate[T]
softmax_cross_entropy_gate exposes this operation as part of the public API.
fn (BCEGate[T]) backward #
fn (g &BCEGate[T]) backward(payload &autograd.Payload[T]) ![]&vtl.Tensor[T]
backward exposes this operation as part of the public API.
fn (BCEGate[T]) cache #
fn (g &BCEGate[T]) cache(mut result autograd.Variable[T], args ...autograd.CacheParam) !
cache exposes this operation as part of the public API.
fn (HuberLossGate[T]) backward #
fn (g &HuberLossGate[T]) backward(payload &autograd.Payload[T]) ![]&vtl.Tensor[T]
backward exposes this operation as part of the public API.
fn (HuberLossGate[T]) cache #
fn (g &HuberLossGate[T]) cache(mut result autograd.Variable[T], args ...autograd.CacheParam) !
cache exposes this operation as part of the public API.
fn (KLDivLossGate[T]) backward #
fn (g &KLDivLossGate[T]) backward(payload &autograd.Payload[T]) ![]&vtl.Tensor[T]
backward exposes this operation as part of the public API.
fn (KLDivLossGate[T]) cache #
fn (g &KLDivLossGate[T]) cache(mut result autograd.Variable[T], args ...autograd.CacheParam) !
cache exposes this operation as part of the public API.
fn (MseGate[T]) backward #
fn (g &MseGate[T]) backward(payload &autograd.Payload[T]) ![]&vtl.Tensor[T]
backward exposes this operation as part of the public API.
fn (MseGate[T]) cache #
fn (g &MseGate[T]) cache(mut result autograd.Variable[T], args ...autograd.CacheParam) !
cache exposes this operation as part of the public API.
fn (NLLLossGate[T]) backward #
fn (g &NLLLossGate[T]) backward(payload &autograd.Payload[T]) ![]&vtl.Tensor[T]
backward exposes this operation as part of the public API.
fn (NLLLossGate[T]) cache #
fn (g &NLLLossGate[T]) cache(mut result autograd.Variable[T], args ...autograd.CacheParam) !
cache exposes this operation as part of the public API.
fn (SigmoidCrossEntropyGate[T]) backward #
fn (g &SigmoidCrossEntropyGate[T]) backward(payload &autograd.Payload[T]) ![]&vtl.Tensor[T]
backward exposes this operation as part of the public API.
fn (SigmoidCrossEntropyGate[T]) cache #
fn (g &SigmoidCrossEntropyGate[T]) cache(mut result autograd.Variable[T], args ...autograd.CacheParam) !
cache exposes this operation as part of the public API.
fn (SoftmaxCrossEntropyGate[T]) backward #
fn (g &SoftmaxCrossEntropyGate[T]) backward(payload &autograd.Payload[T]) ![]&vtl.Tensor[T]
backward exposes this operation as part of the public API.
fn (SoftmaxCrossEntropyGate[T]) cache #
fn (g &SoftmaxCrossEntropyGate[T]) cache(mut result autograd.Variable[T], args ...autograd.CacheParam) !
cache exposes this operation as part of the public API.
struct BCEGate #
struct BCEGate[T] {
pub:
target &vtl.Tensor[T] = unsafe { nil }
from_logits bool
}
BCEGate defines a public data structure for this module.
struct HuberLossGate #
struct HuberLossGate[T] {
pub:
target &vtl.Tensor[T] = unsafe { nil }
delta T
}
HuberLossGate defines a public data structure for this module.
struct KLDivLossGate #
struct KLDivLossGate[T] {
pub:
target &vtl.Tensor[T] = unsafe { nil }
}
KLDivLossGate defines a public data structure for this module.
struct MseGate #
struct MseGate[T] {
pub:
cache &autograd.Variable[T] = unsafe { nil }
target &vtl.Tensor[T] = unsafe { nil }
}
MseGate defines a public data structure for this module.
struct NLLLossGate #
struct NLLLossGate[T] {
pub:
target &vtl.Tensor[T] = unsafe { nil }
}
NLLLossGate defines a public data structure for this module.
struct SigmoidCrossEntropyGate #
struct SigmoidCrossEntropyGate[T] {
pub:
cache &autograd.Variable[T] = unsafe { nil }
target &vtl.Tensor[T] = unsafe { nil }
}
SigmoidCrossEntropyGate defines a public data structure for this module.
struct SoftmaxCrossEntropyGate #
struct SoftmaxCrossEntropyGate[T] {
pub:
cache &autograd.Variable[T] = unsafe { nil }
target &vtl.Tensor[T] = unsafe { nil }
}
SoftmaxCrossEntropyGate defines a public data structure for this module.
- fn bce_gate
- fn huber_loss_gate
- fn kl_div_loss_gate
- fn mse_gate
- fn nll_loss_gate
- fn sigmoid_cross_entropy_gate
- fn softmax_cross_entropy_gate
- type BCEGate[T]
- type HuberLossGate[T]
- type KLDivLossGate[T]
- type MseGate[T]
- type NLLLossGate[T]
- type SigmoidCrossEntropyGate[T]
- type SoftmaxCrossEntropyGate[T]
- struct BCEGate
- struct HuberLossGate
- struct KLDivLossGate
- struct MseGate
- struct NLLLossGate
- struct SigmoidCrossEntropyGate
- struct SoftmaxCrossEntropyGate