LossCalculation

Loss and Gradient calculation

Takes samples, target, module, loss function and computes the loss and the gradients

class Object
trait Matchable
class Any

Value members

Abstract methods

def apply[M <: GenericModule[I, Variable]](samples: I, target: STen, module: M & GenericModule[I, Variable], lossFunction: LossFunction, computeGradients: Boolean, zeroGradBeforeComputingGradients: Boolean)(implicit scope: Scope): (Variable, Long, Option[Seq[Option[STen]]])