Home
last modified time | relevance | path

Searched refs:MathUtil (Results 1 – 25 of 31) sorted by relevance

12

/external/tensorflow/tensorflow/core/lib/math/
Dmath_util_test.cc42 IntegralType floor_1 = MathUtil::FloorOfRatio(numerator, denominator); in TestCeilOfRatio()
43 IntegralType floor_2 = MathUtil::CeilOrFloorOfRatio<IntegralType, false>( in TestCeilOfRatio()
50 IntegralType ceil_1 = MathUtil::CeilOfRatio(numerator, denominator); in TestCeilOfRatio()
51 IntegralType ceil_2 = MathUtil::CeilOrFloorOfRatio<IntegralType, true>( in TestCeilOfRatio()
172 const int64 correct_result = MathUtil::CeilOfRatio(numerator, denominator); in TestThatCeilOfRatioDenomMinusOneIsIncorrect()
189 TEST(MathUtil, CeilOfRatio) { in TEST() argument
209 TEST(MathUtil, GCD) { in TEST() argument
221 EXPECT_EQ(tc.gcd, MathUtil::GCD<uint32>(tc.x, tc.y)); in TEST()
222 EXPECT_EQ(tc.gcd, MathUtil::GCD<uint32>(tc.y, tc.x)); in TEST()
223 EXPECT_EQ(tc.gcd, MathUtil::GCD<uint64>(tc.x, tc.y)); in TEST()
[all …]
Dmath_util.h26 class MathUtil {
98 IntegralType MathUtil::CeilOrFloorOfRatio(IntegralType numerator, in CeilOrFloorOfRatio()
136 IntegralType MathUtil::GCD(IntegralType a, IntegralType b) { in GCD()
152 T MathUtil::IPow(T base, int exp) { in IPow()
/external/tensorflow/tensorflow/compiler/xla/client/
Dpadding.cc123 tensorflow::MathUtil::CeilOfRatio(input_dimension, window_stride); in MakePadding()
129 tensorflow::MathUtil::FloorOfRatio(padding_size, int64{2}), in MakePadding()
130 tensorflow::MathUtil::CeilOfRatio(padding_size, int64{2})); in MakePadding()
/external/tensorflow/tensorflow/stream_executor/lib/
Dmathutil.h31 class MathUtil {
57 IntegralType MathUtil::CeilOrFloorOfRatio(IntegralType numerator, in CeilOrFloorOfRatio()
/external/protobuf/src/google/protobuf/stubs/
Dmathutil.h58 class MathUtil {
115 bool MathUtil::WithinFractionOrMargin(const T x, const T y, in WithinFractionOrMargin()
/external/tensorflow/tensorflow/core/lib/random/
Drandom_distributions_test.cc115 : MathUtil::IPow(theoretical_moments(1), i); in CheckSamplesMoments()
118 : MathUtil::IPow(theoretical_moments(2), i); in CheckSamplesMoments()
222 double bias = 2.0 * MathUtil::IPow(kV, n - 1) * kFV / (2.0 * kPhiV - 1.0); in operator ()()
/external/tensorflow/tensorflow/core/lib/core/
Darena.cc119 return (a / MathUtil::GCD<uint32>(a, b)) * b; in LeastCommonMultiple()
121 return (b / MathUtil::GCD<uint32>(b, a)) * a; in LeastCommonMultiple()
/external/protobuf/src/google/protobuf/util/
Dfield_comparator.cc194 return MathUtil::AlmostEquals(value_1, value_2); in CompareDoubleOrFloat()
199 return MathUtil::WithinFractionOrMargin( in CompareDoubleOrFloat()
Dfield_comparator_test.cc221 ASSERT_TRUE(MathUtil::AlmostEquals(message_1_.optional_float(), in TEST_F()
223 ASSERT_TRUE(MathUtil::AlmostEquals(message_1_.optional_double(), in TEST_F()
/external/tensorflow/tensorflow/stream_executor/
Ddevice_description.cc151 return port::MathUtil::CeilOfRatio(x, y); in DivideCeil()
158 *block_count = port::MathUtil::CeilOfRatio(element_count, *threads_per_block); in CalculateDimensionality()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dbatch_normalization_test.cc125 using tensorflow::MathUtil; in XLA_TEST_P()
129 {MathUtil::IPow(-1.0f, 2), MathUtil::IPow(4.1f, 2)}, in XLA_TEST_P()
130 {MathUtil::IPow(2.0f, 2), MathUtil::IPow(4.1f, 2)}, in XLA_TEST_P()
131 {MathUtil::IPow(5.0f, 2), MathUtil::IPow(4.4f, 2)}, in XLA_TEST_P()
Dconvert_test.cc523 {42, UINT64_MAX, tensorflow::MathUtil::IPow<uint64>(2, 63)}}; in XLA_TEST_F()
/external/tensorflow/tensorflow/stream_executor/gpu/
Dredzone_allocator.cc39 return tensorflow::MathUtil::CeilOfRatio(value, divisor) * divisor; in RoundUpToNearest()
226 tensorflow::MathUtil::CeilOfRatio(num_elements, threads_per_block); in RunRedzoneChecker()
/external/tensorflow/tensorflow/core/kernels/
Dconv_2d_gpu.h922 data_long_side - MathUtil::FloorOfRatio<int>(
926 int num_full_tiles = MathUtil::FloorOfRatio<int>(
969 MathUtil::CeilOfRatio<int>(input_dims[1], requested_tile_size_i),
970 MathUtil::CeilOfRatio<int>(input_dims[2], requested_tile_size_j),
1009 MathUtil::CeilOfRatio<int>(input_dims[1], kTileSize),
1010 MathUtil::CeilOfRatio<int>(input_dims[2], kTileSize),
Drandom_op_test.cc85 0.25 + MathUtil::IPow(1.1, i % 2 == 0 ? i : n - i); in VecAlphas()
Dsdca_internal.cc286 if (dis(gen) > MathUtil::IPow(0.1, sampled_count_[picked_id])) { in SampleAdaptiveProbabilities()
/external/protobuf/src/google/protobuf/util/internal/
Ddatapiece.cc63 MathUtil::Sign<From>(before) == MathUtil::Sign<To>(after)) { in ValidateNumberConversion()
/external/tensorflow/tensorflow/core/kernels/linalg/
Dlu_op.cc60 double cost = (2 / 3.0) * MathUtil::IPow(num_rows, 3); in GetCostPerUnit()
/external/tensorflow/tensorflow/compiler/xla/
Dutil.h404 return tensorflow::MathUtil::FloorOfRatio<T>(dividend, divisor); in FloorOfRatio()
411 return tensorflow::MathUtil::CeilOfRatio<T>(dividend, divisor); in CeilOfRatio()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dmemory_optimizer.cc1117 MathUtil::IPow<double>((earliest_use - peak_time).count(), 2) / in IdentifySwappingCandidates()
1118 MathUtil::IPow<double>(mem_info.uses_left.size(), 2) + in IdentifySwappingCandidates()
1119 MathUtil::IPow<double>((allocation_time - peak_time).count(), 2); in IdentifySwappingCandidates()
/external/tensorflow/tensorflow/core/framework/
Dtensor_test.cc1077 x.vec<complex64>()(i) = MathUtil::IPow(rotate_45, i); in TEST()
1085 y_expected.vec<complex64>()(i) = MathUtil::IPow(rotate_45, i + 1); in TEST()
1126 x.vec<complex128>()(i) = MathUtil::IPow(rotate_45, i); in TEST()
1134 y_expected.vec<complex128>()(i) = MathUtil::IPow(rotate_45, i + 1); in TEST()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dlegalize_hlo.cc903 tensorflow::MathUtil::FloorOfRatio(padding_size, int64_t(2)) || in matchAndRewrite()
905 tensorflow::MathUtil::CeilOfRatio(padding_size, int64_t(2))) in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dimage_resize_ops.cc109 int64 gcd = MathUtil::GCD(static_cast<uint64>(in_size_factor), in ComputeResizeConvolutionParameters()
/external/tensorflow/tensorflow/compiler/xla/service/
Dtriangular_solve_expander.cc254 tensorflow::MathUtil::IPow(block_size, 2); in InvertDiagonalBlocks()
Dmemory_space_assignment.cc165 while_nest_multiplier = tensorflow::MathUtil::IPow<float>( in GetAlternateMemoryBenefit()
172 while_nest_multiplier = tensorflow::MathUtil::IPow<float>( in GetAlternateMemoryBenefit()
418 elapsed_time * tensorflow::MathUtil::IPow<float>(kWhileExecutionCount, in CostAnalysisPrefetchIntervalPicker()
671 tensorflow::MathUtil::IPow<float>(kWhileExecutionCount, in GetLogicalIntervalElapsed()

12