Home
last modified time | relevance | path

Searched refs:new_num_elements (Results 1 – 12 of 12) sorted by relevance

/external/mesa3d/src/util/
Du_idalloc.c53 util_idalloc_resize(struct util_idalloc *buf, unsigned new_num_elements) in util_idalloc_resize() argument
55 new_num_elements = align(new_num_elements, 32); in util_idalloc_resize()
57 if (new_num_elements > buf->num_elements) { in util_idalloc_resize()
61 (new_num_elements / 32) * sizeof(*buf->data)); in util_idalloc_resize()
63 for (i = buf->num_elements / 32; i < new_num_elements / 32; i++) in util_idalloc_resize()
65 buf->num_elements = new_num_elements; in util_idalloc_resize()
Du_idalloc.h51 util_idalloc_resize(struct util_idalloc *buf, unsigned new_num_elements);
/external/tensorflow/tensorflow/core/framework/
Dtensor_shape.cc399 int64_t new_num_elements; in AddDim() local
401 new_num_elements = -1; in AddDim()
403 new_num_elements = MultiplyWithoutOverflow(num_elements(), size); in AddDim()
404 CHECK_LE(0, new_num_elements); in AddDim()
406 UnsafeAddDim(size, new_num_elements); in AddDim()
426 int64_t new_num_elements; in AddDimWithStatus() local
428 new_num_elements = -1; in AddDimWithStatus()
430 new_num_elements = MultiplyWithoutOverflow(num_elements(), size); in AddDimWithStatus()
431 if (TF_PREDICT_FALSE(new_num_elements < 0)) { in AddDimWithStatus()
434 ", result: ", new_num_elements); in AddDimWithStatus()
[all …]
Dtensor.h827 int64_t new_num_elements = 1; in FillDimsAndValidateCompatibleShape() local
829 new_num_elements *= new_sizes[d]; in FillDimsAndValidateCompatibleShape()
832 CHECK_EQ(new_num_elements, NumElements()); in FillDimsAndValidateCompatibleShape()
840 int64_t new_num_elements = 1; in FillDimsAndValidateCompatibleShape() local
842 new_num_elements *= new_sizes[d]; in FillDimsAndValidateCompatibleShape()
847 CHECK_EQ(new_num_elements * static_cast<int64_t>(sizeof(T)), in FillDimsAndValidateCompatibleShape()
856 CHECK_EQ(new_num_elements, NumElements()); in FillDimsAndValidateCompatibleShape()
Dtensor_shape.h336 void UnsafeAddDim(int64_t size, int64_t new_num_elements);
/external/tensorflow/tensorflow/security/advisory/
Dtfsa-2021-012.md67 int64 new_num_elements;
69 new_num_elements = -1;
71 new_num_elements = MultiplyWithoutOverflow(num_elements(), size);
72 if (TF_PREDICT_FALSE(new_num_elements < 0)) {
75 ", result: ", new_num_elements);
Dtfsa-2021-071.md72 int64 new_num_elements;
74 new_num_elements = -1;
76 new_num_elements = MultiplyWithoutOverflow(num_elements(), size);
77 if (TF_PREDICT_FALSE(new_num_elements < 0)) {
80 ", result: ", new_num_elements);
Dtfsa-2021-024.md71 int64 new_num_elements;
73 new_num_elements = -1;
75 new_num_elements = MultiplyWithoutOverflow(num_elements(), size);
76 if (TF_PREDICT_FALSE(new_num_elements < 0)) {
79 ", result: ", new_num_elements);
/external/tensorflow/tensorflow/core/kernels/
Dsparse_concat_op.cc129 int64_t new_num_elements = 1; in Compute() local
136 new_num_elements = in Compute()
137 MultiplyWithoutOverflow(new_num_elements, input_shape_vector(j)); in Compute()
138 if (new_num_elements < 0) { in Compute()
/external/icing/icing/file/
Dfile-backed-vector.h359 libtextclassifier3::Status TruncateTo(int32_t new_num_elements);
939 int32_t new_num_elements) { in TruncateTo() argument
940 if (new_num_elements < 0) { in TruncateTo()
942 "Truncated length %d must be >= 0", new_num_elements)); in TruncateTo()
945 if (new_num_elements >= header_->num_elements) { in TruncateTo()
948 new_num_elements, header_->num_elements)); in TruncateTo()
958 header_->num_elements = new_num_elements; in TruncateTo()
/external/tensorflow/tensorflow/compiler/xla/
Dliteral_util.cc391 int64_t new_num_elements = 1; in ReshapeSlice() local
393 new_num_elements *= new_dimensions[i]; in ReshapeSlice()
395 CHECK_EQ(ShapeUtil::ElementsIn(literal.shape()), new_num_elements); in ReshapeSlice()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_descriptors.c2187 unsigned new_num_elements = desc->num_elements * 2; in si_get_first_free_bindless_slot() local
2190 REALLOC(desc->list, desc->num_elements * slot_size, new_num_elements * slot_size); in si_get_first_free_bindless_slot()
2191 desc->num_elements = new_num_elements; in si_get_first_free_bindless_slot()
2192 desc->num_active_slots = new_num_elements; in si_get_first_free_bindless_slot()