Home
last modified time | relevance | path

Searched refs:MultiplyWithoutOverflow (Results 1 – 7 of 7) sorted by relevance

/external/tensorflow/tensorflow/core/util/
Doverflow_test.cc43 int64 xy = MultiplyWithoutOverflow(x, y); in TEST()
57 EXPECT_DEATH(MultiplyWithoutOverflow(n, 0), ""); in TEST()
58 EXPECT_DEATH(MultiplyWithoutOverflow(0, n), ""); in TEST()
59 EXPECT_DEATH(MultiplyWithoutOverflow(n, n), ""); in TEST()
Doverflow.h26 inline int64 MultiplyWithoutOverflow(const int64 x, const int64 y) { in MultiplyWithoutOverflow() function
/external/tensorflow/tensorflow/core/framework/
Dtensor_shape.cc67 num_elements = MultiplyWithoutOverflow(num_elements, d.size()); in IsValid()
105 num_elements = MultiplyWithoutOverflow(num_elements, d.size()); in IsValidShape()
316 n = MultiplyWithoutOverflow(n, dim.size); in RecomputeNumElements()
331 new_num_elements = MultiplyWithoutOverflow(num_elements(), size); in AddDim()
593 new_num_elements = MultiplyWithoutOverflow(out->num_elements(), dim); in MakeShapeHelper()
759 n = MultiplyWithoutOverflow(n, dim); in NumElements()
/external/tensorflow/tensorflow/compiler/xla/
Doverflow_util.h26 inline int64 MultiplyWithoutOverflow(const int64 x, const int64 y) { in MultiplyWithoutOverflow() function
Dshape_util.cc695 int64 sparse_elements_size = MultiplyWithoutOverflow( in ValidateShapeSize()
701 MultiplyWithoutOverflow(max_sparse_elements, shape.rank()); in ValidateShapeSize()
706 MultiplyWithoutOverflow(sparse_indices_size, sizeof(int64)); in ValidateShapeSize()
729 dense_shape_size = MultiplyWithoutOverflow(dense_shape_size, dim); in ValidateShapeSize()
734 dense_shape_size = MultiplyWithoutOverflow( in ValidateShapeSize()
/external/tensorflow/tensorflow/core/kernels/
Done_hot_op.cc84 MultiplyWithoutOverflow(indices_shape.num_elements(), depth_v) >= 0, in Compute()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_sharding.cc390 MultiplyWithoutOverflow(product_of_dimensions, dimension); in FromProto()