Home
last modified time | relevance | path

Searched refs:new_num_elements (Results 1 – 8 of 8) 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.cc400 int64 new_num_elements; in AddDim() local
402 new_num_elements = -1; in AddDim()
404 new_num_elements = MultiplyWithoutOverflow(num_elements(), size); in AddDim()
405 CHECK_LE(0, new_num_elements); in AddDim()
407 UnsafeAddDim(size, new_num_elements); in AddDim()
426 int64 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.h807 int64 new_num_elements = 1; in FillDimsAndValidateCompatibleShape() local
809 new_num_elements *= new_sizes[d]; in FillDimsAndValidateCompatibleShape()
812 CHECK_EQ(new_num_elements, NumElements()); in FillDimsAndValidateCompatibleShape()
820 int64 new_num_elements = 1; in FillDimsAndValidateCompatibleShape() local
822 new_num_elements *= new_sizes[d]; in FillDimsAndValidateCompatibleShape()
827 CHECK_EQ(new_num_elements * sizeof(T), NumElements() * element_size); in FillDimsAndValidateCompatibleShape()
835 CHECK_EQ(new_num_elements, NumElements()); in FillDimsAndValidateCompatibleShape()
Dtensor_shape.h336 void UnsafeAddDim(int64 size, int64 new_num_elements);
/external/icing/icing/file/
Dfile-backed-vector.h221 libtextclassifier3::Status TruncateTo(int32_t new_num_elements);
630 int32_t new_num_elements) { in TruncateTo() argument
631 if (new_num_elements < 0) { in TruncateTo()
633 "Truncated length %d must be >= 0", new_num_elements)); in TruncateTo()
636 if (new_num_elements >= header_->num_elements) { in TruncateTo()
639 new_num_elements, header_->num_elements)); in TruncateTo()
649 header_->num_elements = new_num_elements; in TruncateTo()
/external/tensorflow/tensorflow/compiler/xla/
Dliteral_util.cc347 int64 new_num_elements = 1; in ReshapeSlice() local
349 new_num_elements *= new_dimensions[i]; in ReshapeSlice()
351 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()