Searched refs:strict_cast (Results 1 – 12 of 12) sorted by relevance
/external/tensorflow/tensorflow/core/kernels/ |
D | softmax_op_gpu.cu.cc | 40 strict_cast(T t); 45 strict_cast(T t) { in strict_cast() function 50 __device__ __host__ EIGEN_STRONG_INLINE float strict_cast<float, Eigen::half>( in strict_cast() function 57 strict_cast<Eigen::half, float>(float t) { in strict_cast() function 87 input[i] = strict_cast<U>(logits[tid]); in GenerateNormalizedProb() 88 max_val[i] = strict_cast<U>(ldg(max_logits + row)); in GenerateNormalizedProb() 103 output[tid] = strict_cast<T>(result[i]); in GenerateNormalizedProb() 133 input[i] = strict_cast<float>(logits_h[i]); in GenerateNormalizedProb() 134 max_val[i] = strict_cast<float>(ldg(max_logits + row[i])); in GenerateNormalizedProb() 140 output_h[i] = strict_cast<Eigen::half>(result[i]); in GenerateNormalizedProb() [all …]
|
/external/angle/src/common/third_party/base/anglebase/numerics/ |
D | safe_conversions.h | 114 constexpr Dst strict_cast(Src value) in strict_cast() function 150 constexpr StrictNumeric(const StrictNumeric<Src> &rhs) : value_(strict_cast<T>(rhs.value_)) in StrictNumeric() 156 constexpr StrictNumeric(Src value) : value_(strict_cast<T>(value)) in StrictNumeric() 163 return strict_cast<Dst>(value_); in Dst()
|
D | safe_numerics_unittest.cc | 29 using base::strict_cast; 626 EXPECT_EQ(0, strict_cast<int>(static_cast<char>(0))); in TEST() 627 EXPECT_EQ(0, strict_cast<int>(static_cast<unsigned char>(0))); in TEST() 628 EXPECT_EQ(0U, strict_cast<unsigned>(static_cast<unsigned char>(0))); in TEST()
|
/external/libchrome/base/metrics/ |
D | sample_map.cc | 67 *max = strict_cast<int64_t>(iter_->first) + 1; in Get() 90 IncreaseSumAndCount(strict_cast<int64_t>(count) * value, count); in Accumulate() 118 if (strict_cast<int64_t>(min) + 1 != max) in AddSubtractImpl()
|
D | persistent_sample_map.cc | 72 *max = strict_cast<int64_t>(iter_->first) + 1; in Get() 130 IncreaseSumAndCount(strict_cast<int64_t>(count) * value, count); in Accumulate() 204 if (strict_cast<int64_t>(min) + 1 != max) in AddSubtractImpl()
|
D | sample_vector.cc | 60 IncreaseSumAndCount(strict_cast<int64_t>(count) * value, count); in Accumulate() 406 *max = strict_cast<int64_t>(bucket_ranges_->range(index_ + 1)); in Get()
|
D | histogram_samples.cc | 240 IncreaseSumAndCount(strict_cast<int64_t>(value) * count, count); in AccumulateSingleSample()
|
/external/tensorflow/tensorflow/core/kernels/rnn/ |
D | lstm_ops_gpu.cu.cc | 43 strict_cast(T t); 48 strict_cast(T t) { in strict_cast() function 54 strict_cast<Eigen::half, float>(float t) { in strict_cast() function 63 t.device(d) = t.constant(strict_cast<T>(0.f)); in operator ()() 70 t.device(d) = t.constant(strict_cast<T>(0.f)); in operator ()() 93 T forget_bias_t = strict_cast<T>(forget_bias); in lstm_gates() 94 T cell_clip_t = strict_cast<T>(cell_clip); in lstm_gates()
|
/external/libchrome/base/numerics/ |
D | safe_conversions.h | 209 constexpr Dst strict_cast(Src value) { 264 : value_(strict_cast<T>(rhs.value_)) {} 270 : value_(strict_cast<T>(value)) {} 330 using internal::strict_cast;
|
D | README.md | 60 The `strict_cast` enforces type restrictions at compile-time and results in 62 `strict_cast` assignment will fail to compile if the destination type cannot 67 int int_value = strict_cast<int>(byte_value); 175 * `strict_cast<>()` - Analogous to `static_cast` for numeric types, except 199 the `strict_cast` template, and can perform valid arithmetic comparisons
|
/external/pdfium/third_party/base/numerics/ |
D | safe_conversions.h | 219 constexpr Dst strict_cast(Src value) { 274 : value_(strict_cast<T>(rhs.value_)) {} 280 : value_(strict_cast<T>(value)) {} 340 using internal::strict_cast;
|
/external/libchrome/base/ |
D | safe_numerics_unittest.cc | 1375 EXPECT_EQ(0, strict_cast<int>(static_cast<char>(0))); in TEST() 1376 EXPECT_EQ(0, strict_cast<int>(static_cast<unsigned char>(0))); in TEST() 1377 EXPECT_EQ(0U, strict_cast<unsigned>(static_cast<unsigned char>(0))); in TEST() 1488 EXPECT_EQ(1, strict_cast<int>(StrictNumeric<int>(1))); in TEST() 1493 EXPECT_EQ(1, strict_cast<int>(EnumTest::kOne)); in TEST()
|