Home
last modified time | relevance | path

Searched refs:is_finite (Results 1 – 25 of 77) sorted by relevance

1234

/external/tensorflow/tensorflow/core/api_def/python_api/
Dapi_def_IsFinite.pbtxt4 name: "math.is_finite"
7 name: "debugging.is_finite"
11 name: "is_finite"
/external/tensorflow/tensorflow/python/training/experimental/
Dloss_scale.py284 math_ops.reduce_all(math_ops.is_finite(g)) for g in grads if g is not None
309 math_ops.is_finite(value), lambda: _op_in_graph_mode(var.assign(value)),
406 is_finite = _is_all_finite(grads)
409 return math_ops.cast(is_finite, dtypes.float32)
415 is_finite = math_ops.equal(reduced_is_finite_float,
418 is_finite = _is_all_finite(grads)
443 update_op = control_flow_ops.cond(is_finite, update_if_finite_grads,
445 should_apply_gradients = is_finite
Dloss_scale_test.py108 def _get_tensor(self, is_finite): argument
109 tensor = control_flow_ops.cond(is_finite, lambda: 1., lambda: float('NaN'))
137 is_finite = itr.get_next()
138 grad = self._get_tensor(is_finite)
140 assert_op = check_ops.assert_equal(should_apply_gradients, is_finite)
/external/skia/tests/
DFloat16Test.cpp23 static bool is_finite(uint16_t h) { in is_finite() function
29 if (!is_finite(h)) { in DEF_TEST()
56 if (!is_finite(expected)) {
/external/skqp/tests/
DFloat16Test.cpp23 static bool is_finite(uint16_t h) { in is_finite() function
29 if (!is_finite(h)) { in DEF_TEST()
56 if (!is_finite(expected)) {
/external/tensorflow/tensorflow/python/keras/mixed_precision/
Dloss_scale_optimizer.py186 math_ops.reduce_all(math_ops.is_finite(g)) for g in grads if g is not None
211 math_ops.is_finite(value), lambda: _op_in_graph_mode(var.assign(value)),
347 is_finite = _is_all_finite(grads)
350 return math_ops.cast(is_finite, dtypes.float32)
356 is_finite = math_ops.equal(reduced_is_finite_float,
359 is_finite = _is_all_finite(grads)
384 update_op = control_flow_ops.cond(is_finite, update_if_finite_grads,
386 should_apply_gradients = is_finite
/external/rust/crates/rand/src/distributions/
Dutils.rs241 fn is_finite(self) -> bool; in is_finite() method
304 fn is_finite(self) -> bool {
325 self.is_finite()
330 self.is_finite()
/external/rust/crates/num-traits/src/
Dfloat.rs220 fn is_finite(self) -> bool { in is_finite() method
802 Self::is_finite(self) -> bool;
877 Self::is_finite(self) -> bool;
1062 fn is_finite(self) -> bool; in is_finite() method
1840 Self::is_finite(self) -> bool;
1922 FloatCore::is_finite(self) -> bool;
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_IsFinite.pbtxt13 tf.math.is_finite(x) ==> [True, True, True, False, False]
/external/skqp/src/core/
DSkColorSpaceXformSteps.cpp101 auto is_finite = [](float x) { return x*0 == 0; }; in apply() local
103 float invA = is_finite(1.0f / rgba[3]) ? 1.0f / rgba[3] : 0; in apply()
DSkEdgeBuilder.cpp345 bool is_finite = true; in build() local
351 auto apply_clipper = [this, &clipper, &is_finite] { in build()
358 is_finite = false; in build()
457 return is_finite ? fList.count() : 0; in build()
/external/skia/src/core/
DSkEdgeBuilder.cpp292 bool is_finite = true; in build() local
322 is_finite = rec.fIsFinite; in build()
360 return is_finite ? fList.count() : 0; in build()
DSkColorSpaceXformSteps.cpp99 auto is_finite = [](float x) { return x*0 == 0; }; in apply() local
101 float invA = is_finite(1.0f / rgba[3]) ? 1.0f / rgba[3] : 0; in apply()
/external/rust/crates/ryu/tests/
Dexhaustive.rs35 if !f.is_finite() { in test_exhaustive()
Df2s_test.rs59 assert!(!f.is_finite(), "f={}", f); in test_non_finite()
Dd2s_test.rs64 assert!(!f.is_finite(), "f={}", f); in test_non_finite()
/external/rust/crates/ryu/examples/
Dupstream_benchmark.rs49 if f.is_finite() {
/external/rust/crates/proc-macro2/src/
Dlib.rs1109 assert!(f.is_finite()); in f64_unsuffixed()
1127 assert!(f.is_finite()); in f64_suffixed()
1145 assert!(f.is_finite()); in f32_unsuffixed()
1163 assert!(f.is_finite()); in f32_suffixed()
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_tensor_test_ops.py52 math_ops.is_finite,
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dspecial_math_test.py88 is_finite = np.isfinite(x)
89 all_true = np.ones_like(is_finite, dtype=np.bool)
90 self.assertAllEqual(all_true, is_finite)
/external/rust/crates/serde_json/src/
Dnumber.rs133 return self.n.parse::<f64>().ok().map_or(false, |f| f.is_finite()); in is_f64()
214 self.n.parse::<f64>().ok().filter(|float| float.is_finite()) in as_f64()
231 if f.is_finite() { in from_f64()
/external/rust/crates/criterion/src/analysis/
Dcompare.rs91 .filter(|a| a.is_finite()) in t_test()
/external/tensorflow/tensorflow/python/ops/linalg/
Dlinalg_impl.py325 is_finite = math_ops.is_finite(math_ops.reduce_max(l1_norm))
328 is_finite, lambda: linalg_ops.matrix_solve(-u + v, u + v),
334 return control_flow_ops.cond(is_finite,
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_evaluator.cc528 Status HloEvaluator::HandleIsFinite(HloInstruction* is_finite) { in HandleIsFinite() argument
529 auto operand = is_finite->operand(0); in HandleIsFinite()
558 is_finite, in HandleIsFinite()
563 TF_ASSIGN_OR_RETURN(evaluated_[is_finite], std::move(result_or)); in HandleIsFinite()
568 is_finite, in HandleIsFinite()
573 TF_ASSIGN_OR_RETURN(evaluated_[is_finite], std::move(result_or)); in HandleIsFinite()
578 is_finite, in HandleIsFinite()
581 TF_ASSIGN_OR_RETURN(evaluated_[is_finite], std::move(result_or)); in HandleIsFinite()
586 is_finite, in HandleIsFinite()
589 TF_ASSIGN_OR_RETURN(evaluated_[is_finite], std::move(result_or)); in HandleIsFinite()
/external/tensorflow/tensorflow/compiler/tf2xla/python/
Dxla.py93 is_finite = _unary_op(math_ops.is_finite) variable

1234