Home
last modified time | relevance | path

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

12

/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.py245 math_ops.reduce_all(math_ops.is_finite(g)) for g in grads if g is not None
270 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
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/skia/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.cpp292 bool is_finite = true; in build() local
322 is_finite = rec.fIsFinite; in build()
360 return is_finite ? fList.count() : 0; in build()
DSkScan_Hairline.cpp382 Sk2x32 is_finite(~0); // start out as true in hair_cubic() local
386 is_finite &= sk2s_is_finite(p); in hair_cubic()
389 if (is_finite.allTrue()) { in hair_cubic()
/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()
DSkScan_Hairline.cpp382 Sk2x32 is_finite(~0); // start out as true in hair_cubic() local
386 is_finite &= sk2s_is_finite(p); in hair_cubic()
389 if (is_finite.allTrue()) { in hair_cubic()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_IsFinite.pbtxt13 tf.math.is_finite(x) ==> [True, True, True, False, False]
/external/rust/crates/proc-macro2/src/
Dlib.rs1046 assert!(f.is_finite()); in f64_unsuffixed()
1064 assert!(f.is_finite()); in f64_suffixed()
1082 assert!(f.is_finite()); in f32_unsuffixed()
1100 assert!(f.is_finite()); in f32_suffixed()
/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)
Dnormal_test.py59 is_finite = np.isfinite(self.evaluate(tensor))
60 all_true = np.ones_like(is_finite, dtype=np.bool)
61 self.assertAllEqual(all_true, is_finite)
/external/tensorflow/tensorflow/compiler/tf2xla/python/
Dxla.py90 is_finite = _unary_op(math_ops.is_finite) variable
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_evaluator.cc516 Status HloEvaluator::HandleIsFinite(HloInstruction* is_finite) { in HandleIsFinite() argument
517 auto operand = is_finite->operand(0); in HandleIsFinite()
546 is_finite, in HandleIsFinite()
551 TF_ASSIGN_OR_RETURN(evaluated_[is_finite], std::move(result_or)); in HandleIsFinite()
556 is_finite, in HandleIsFinite()
561 TF_ASSIGN_OR_RETURN(evaluated_[is_finite], std::move(result_or)); in HandleIsFinite()
566 is_finite, in HandleIsFinite()
569 TF_ASSIGN_OR_RETURN(evaluated_[is_finite], std::move(result_or)); in HandleIsFinite()
574 is_finite, in HandleIsFinite()
577 TF_ASSIGN_OR_RETURN(evaluated_[is_finite], std::move(result_or)); in HandleIsFinite()
Dhlo_evaluator.h207 Status HandleIsFinite(HloInstruction* is_finite) override;
/external/tensorflow/tensorflow/python/ops/
Dclip_ops.py330 math_ops.is_finite(use_norm),
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.debugging.pbtxt112 name: "is_finite"
/external/python/cpython2/Lib/
Dfractions.py194 if not dec.is_finite():
/external/tensorflow/tensorflow/compiler/tests/
Dunary_ops_test.py204 math_ops.is_finite,
383 math_ops.is_finite,
/external/tensorflow/tensorflow/python/distribute/
Dcross_device_utils.py166 array_ops.reduce_all(array_ops.is_finite(grads)))
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_dispatch.py312 math_ops.is_finite,
Dragged_dispatch_test.py66 math_ops.is_finite,

12