Esempio n. 1
0
 void fp_compute() override {
   if (m_value == EvalType(0)) {
     El::Zero(get_activations());
   } else {
     El::Fill(get_activations(), m_value);
   }
 }
Esempio n. 2
0
 /** Computation to evaluate the metric function (deprecated).
  *  This function is not called since the 'evaluate' function is
  *  overridden.
  */
 EvalType evaluate_compute(const AbsDistMat& prediction,
                           const AbsDistMat& ground_truth) override {
   LBANN_ERROR("This function should not be called");
   return EvalType(0);
 }
Esempio n. 3
0
 EvalType fractio_cast(fractio<Type> const& fr) {
     return EvalType(fr.numerator()) / EvalType(fr.denominator());
 }