Home | History | Annotate | Download | only in stats

Lines Matching defs:first

118 // GradientStats holds first and second order gradient stats.
123 GradientStats(float g, float h) : first(g), second(h) {}
125 GradientStats(const Tensor& g, const Tensor& h) : first(g), second(h) {}
128 : first(g.Slice(example_index, example_index + 1)),
132 first += other.first;
138 first *= value;
144 first -= other.first;
149 bool IsZero() const { return first.IsZero() && second.IsZero(); }
152 return first.IsAlmostZero(eps) && second.IsAlmostZero(eps);
158 return "First = " + first.DebugString() +
162 TensorStat first;