Home
last modified time | relevance | path

Searched refs:all_same (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/core/util/
Dstats_calculator.h67 bool all_same() const { return (count_ == 0 || min_ == max_); } in all_same() function
76 return all_same() in sample_variance()
83 return all_same() ? 0 : (squared_sum_ / count_) - (avg() * avg()); in variance()
88 return all_same() ? 0 : std::sqrt(variance()); in std_deviation()
94 } else if (all_same()) { in OutputToStream()
Dstats_calculator_test.cc81 EXPECT_TRUE(stat.all_same()); in TEST()
83 EXPECT_TRUE(stat.all_same()); in TEST()
85 EXPECT_FALSE(stat.all_same()); in TEST()
/external/tensorflow/tensorflow/lite/tools/benchmark/experimental/c/
Dbenchmark_c_api.h49 bool all_same; member
Dbenchmark_c_api.cc35 stat.all_same(), stat.avg(), stat.std_deviation(), in ConvertStat()
/external/tensorflow/tensorflow/cc/gradients/
Dmath_grad_test.cc807 auto all_same = Mul(scope_, Const(scope_, {1.f, 1.f, 1.f}), x); in TEST_F() local
808 auto y = Min(scope_, all_same, {0}); in TEST_F()
817 auto all_same = Mul(scope_, Const(scope_, {1.f, 1.f, 1.f}), x); in TEST_F() local
818 auto y = Max(scope_, all_same, {0}); in TEST_F()
/external/mesa3d/src/compiler/nir/
Dnir_opt_copy_prop_vars.c544 bool all_same = true; in load_from_ssa_entry_value() local
550 all_same = false; in load_from_ssa_entry_value()
553 all_same = false; in load_from_ssa_entry_value()
556 if (all_same) { in load_from_ssa_entry_value()
/external/mesa3d/src/amd/vulkan/
Dradv_meta.c624 nir_ssa_def *all_same = nir_ieq(b, &tex_all_same->dest.ssa, nir_imm_bool(b, false)); in radv_meta_build_resolve_shader_core() local
625 nir_push_if(b, all_same); in radv_meta_build_resolve_shader_core()
/external/tensorflow/tensorflow/python/ops/
Drnn.py117 all_same = all(x == inferred_dtypes[0] for x in inferred_dtypes)
118 if not all_same:
/external/tensorflow/tensorflow/compiler/xla/service/spmd/
Dspmd_partitioner.cc675 bool all_same = true; in ReshardAsWindowedInput() local
681 all_same = false; in ReshardAsWindowedInput()
685 if (!all_same) { in ReshardAsWindowedInput()
/external/mesa3d/src/amd/compiler/
Daco_instruction_selection.cpp9719 bool all_same = true; in create_continue_phis() local
9720 for (unsigned i = 1; all_same && (i < block.linear_preds.size()); i++) in create_continue_phis()
9721 all_same = vals[block.linear_preds[i] - first] == vals[block.linear_preds[0] - first]; in create_continue_phis()
9724 if (all_same) { in create_continue_phis()