Home
last modified time | relevance | path

Searched refs:inf_value (Results 1 – 3 of 3) sorted by relevance

/third_party/PyYAML/lib/yaml/
Drepresenter.py167 inf_value = 1e300 variable in SafeRepresenter
168 while repr(inf_value) != repr(inf_value*inf_value):
169 inf_value *= inf_value
174 elif data == self.inf_value:
176 elif data == -self.inf_value:
Dconstructor.py265 inf_value = 1e300 variable in SafeConstructor
266 while inf_value != inf_value*inf_value:
267 inf_value *= inf_value
268 nan_value = -inf_value/inf_value # Trying to make a quiet NaN (like C99).
279 return sign*self.inf_value
/third_party/mindspore/mindspore/core/base/
Dfloat16.h39 static constexpr uint16_t inf_value = 0x7c00; variable
153 result = (f.u > f32infty.u) ? nan_value : inf_value; in FromFloat32()
267 static float16 infinity() noexcept { return float16::FromRaw(float16::inf_value); }
286 …ol(isinf)(const float16 &a) { return (a.int_value() & float16::value_mask) == float16::inf_value; }
287 …ool(isnan)(const float16 &a) { return (a.int_value() & float16::value_mask) > float16::inf_value; }