Searched refs:MultiplyWithoutOverflow (Results 1 – 7 of 7) sorted by relevance
/external/tensorflow/tensorflow/core/util/ |
D | overflow_test.cc | 65 int64 xy = MultiplyWithoutOverflow(x, y); in TEST() 78 EXPECT_LT(MultiplyWithoutOverflow(n, 0), 0) << n; in TEST() 79 EXPECT_LT(MultiplyWithoutOverflow(0, n), 0) << n; in TEST() 80 EXPECT_LT(MultiplyWithoutOverflow(n, n), 0) << n; in TEST()
|
D | overflow.h | 27 inline int64 MultiplyWithoutOverflow(const int64 x, const int64 y) { in MultiplyWithoutOverflow() function
|
/external/tensorflow/tensorflow/core/framework/ |
D | tensor_shape.cc | 70 num_elements = MultiplyWithoutOverflow(num_elements, d); in IsValid() 90 num_elements = MultiplyWithoutOverflow(num_elements, d.size()); in IsValid() 128 num_elements = MultiplyWithoutOverflow(num_elements, d.size()); in IsValidShape() 384 n = MultiplyWithoutOverflow(n, dim.size); in RecomputeNumElements() 404 new_num_elements = MultiplyWithoutOverflow(num_elements(), size); in AddDim() 430 new_num_elements = MultiplyWithoutOverflow(num_elements(), size); in AddDimWithStatus() 808 new_num_elements = MultiplyWithoutOverflow(out->num_elements(), dim); in MakeShapeHelper() 1004 n = MultiplyWithoutOverflow(n, dim); in NumElements()
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | overflow_util.h | 30 inline int64 MultiplyWithoutOverflow(const int64 x, const int64 y) { in MultiplyWithoutOverflow() function
|
D | shape_util.cc | 231 dense_shape_size = MultiplyWithoutOverflow(dense_shape_size, d); in FillNewShape() 847 dense_shape_size = MultiplyWithoutOverflow(dense_shape_size, dim); in ValidateShapeSize() 852 dense_shape_size = MultiplyWithoutOverflow( in ValidateShapeSize()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | one_hot_op.cc | 85 MultiplyWithoutOverflow(indices_shape.num_elements(), depth_v) >= 0, in Compute()
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | hlo_sharding.cc | 509 MultiplyWithoutOverflow(product_of_dimensions, dimension); in FromProto()
|