Home
last modified time | relevance | path

Searched refs:num_elems (Results 1 – 25 of 41) sorted by relevance

12

/external/libnetfilter_conntrack/src/conntrack/
Dstack.c18 int num_elems; member
51 if (s->num_elems >= s->max_elems) { in stack_push()
55 memcpy(s->data + (s->elem_size * s->num_elems), data, s->elem_size); in stack_push()
56 s->num_elems++; in stack_push()
62 if (s->num_elems <= 0) { in stack_pop()
66 s->num_elems--; in stack_pop()
67 memcpy(data, s->data + (s->elem_size * s->num_elems), s->elem_size); in stack_pop()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dsparse_to_dense_op.cc37 const int64 num_elems = in Compile() local
56 (sparse_values_shape.dims() == 1 && num_values == num_elems), in Compile()
59 ", should be [] or [", num_elems, "]")); in Compile()
70 if (sparse_values_shape.dims() == 0 && num_elems != 1) { in Compile()
71 sparse_values = Broadcast(sparse_values, {num_elems}); in Compile()
/external/tensorflow/tensorflow/core/kernels/
Dsparse_to_dense_op.cc59 const int64 num_elems = indices.dims() > 0 ? indices.dim_size(0) : 1; in Compute() local
78 (sparse_values.dims() == 1 && num_values == num_elems), in Compute()
81 ", should be [] or [", num_elems, "]")); in Compute()
96 TensorShape ix_shape({num_elems, num_dims}); in Compute()
113 TensorShape({num_elems}), &sparse_values_b)); in Compute()
/external/boringssl/src/crypto/test/
Dmalloc.cc57 extern void *__libc_calloc(size_t num_elems, size_t size);
123 void *calloc(size_t num_elems, size_t size) { in calloc() argument
129 return __libc_calloc(num_elems, size); in calloc()
/external/flatbuffers/java/com/google/flatbuffers/
DFlatBufferBuilder.java447 public void startVector(int elem_size, int num_elems, int alignment) { in startVector() argument
449 vector_num_elems = num_elems; in startVector()
450 prep(SIZEOF_INT, elem_size * num_elems); in startVector()
451 prep(alignment, elem_size * num_elems); // Just in case alignment > int. in startVector()
481 public ByteBuffer createUnintializedVector(int elem_size, int num_elems, int alignment) { in createUnintializedVector() argument
482 int length = elem_size * num_elems; in createUnintializedVector()
483 startVector(elem_size, num_elems, alignment); in createUnintializedVector()
/external/tensorflow/tensorflow/lite/experimental/writer/
Doption_writer_generator.cc137 for (int i = 0; i < d->num_elems; i++) { in BuildOptionToTypeFunctionMap()
201 for (int i = 0; i < d->num_elems; i++) { in BuildOpToOptionMap()
280 for (size_t i = 0; i < options->num_elems; i++) { in GenerateImportForOp()
346 for (size_t i = 0; i < options->num_elems; i++) { in GenerateImportForOp()
386 if (type_info->num_elems != 0) { in GenerateImport()
/external/flatbuffers/include/flatbuffers/
Dminireflect.h91 case ST_STRUCT: return static_cast<size_t>(type_table->values[type_table->num_elems]); in InlineSize()
110 type_table->num_elems); in EnumName()
111 if (i >= 0 && i < static_cast<int64_t>(type_table->num_elems)) { in EnumName()
200 LookupEnum(union_type, type_table->values, type_table->num_elems); in IterateValue()
202 type_code_idx < static_cast<int32_t>(type_table->num_elems)) { in IterateValue()
236 for (size_t i = 0; i < type_table->num_elems; i++) { in IterateObject()
/external/pdfium/core/fxcrt/
Dfx_memory.cpp33 void* FXMEM_DefaultCalloc(size_t num_elems, size_t byte_size) { in FXMEM_DefaultCalloc() argument
34 return FX_SafeAlloc(num_elems, byte_size); in FXMEM_DefaultCalloc()
Dfx_memory.h18 void* FXMEM_DefaultCalloc(size_t num_elems, size_t byte_size);
/external/mesa3d/src/compiler/nir/
Dnir_gather_info.c170 unsigned num_elems; in try_mask_partial_io() local
174 num_elems = glsl_get_aoa_size(type); in try_mask_partial_io()
178 num_elems = glsl_get_matrix_columns(type); in try_mask_partial_io()
186 if (offset >= num_elems * elem_width * mat_cols) { in try_mask_partial_io()
/external/mesa3d/src/compiler/glsl/
Dir_set_program_inouts.cpp283 unsigned num_elems; in try_mark_partial_variable() local
285 num_elems = type->length; in try_mark_partial_variable()
291 num_elems = type->matrix_columns; in try_mark_partial_variable()
295 if (index_as_constant->value.u[0] >= num_elems) { in try_mark_partial_variable()
/external/tensorflow/tensorflow/python/data/experimental/benchmarks/
Dmap_vectorization_benchmark.py116 num_elems = int(np.sum([np.prod(x) for x in input_size]))
135 name=name_template.format(str_id, batch_size, num_elems, "unoptimized"))
138 name=name_template.format(str_id, batch_size, num_elems, "optimized"))
/external/tensorflow/tensorflow/core/distributed_runtime/
Dtensor_coding_test.cc159 string MakeFloatTensorTestCase(int num_elems) { in MakeFloatTensorTestCase() argument
160 std::vector<int8> v(num_elems); in MakeFloatTensorTestCase()
161 for (int i = 0; i < num_elems; i++) { in MakeFloatTensorTestCase()
/external/tensorflow/tensorflow/python/ops/
Dctc_ops.py1069 num_elems = array_ops.shape(flat_elems[0])[0]
1084 def cond(i, num_elems, *args): argument
1086 return i >= 0 if reverse else i < num_elems
1091 def body(i, num_elems, *args): argument
1108 return [i, num_elems] + new_out + flat_accum
1123 loop_in = [init_i, num_elems] + outputs + flat_initial
/external/flatbuffers/php/
DFlatbufferBuilder.php584 public function startVector($elem_size, $num_elems, $alignment) argument
587 $this->vector_num_elems = $num_elems;
588 $this->prep(Constants::SIZEOF_INT, $elem_size * $num_elems);
589 $this->prep($alignment, $elem_size * $num_elems); // Just in case alignemnt > int;
/external/v8/src/runtime/
Druntime-regexp.cc1561 int num_elems) { in NewJSArrayWithElements() argument
1563 FixedArray::ShrinkOrEmpty(isolate, elems, num_elems)); in NewJSArrayWithElements()
1647 uint32_t num_elems = 0; in RUNTIME_FUNCTION() local
1684 elems = FixedArray::SetAndGrow(isolate, elems, num_elems++, substr); in RUNTIME_FUNCTION()
1685 if (num_elems == limit) { in RUNTIME_FUNCTION()
1686 return *NewJSArrayWithElements(isolate, elems, num_elems); in RUNTIME_FUNCTION()
1706 elems = FixedArray::SetAndGrow(isolate, elems, num_elems++, capture); in RUNTIME_FUNCTION()
1707 if (num_elems == limit) { in RUNTIME_FUNCTION()
1708 return *NewJSArrayWithElements(isolate, elems, num_elems); in RUNTIME_FUNCTION()
1718 elems = FixedArray::SetAndGrow(isolate, elems, num_elems++, substr); in RUNTIME_FUNCTION()
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dhash_map.hpp210 static std::size_t hash_size(std::size_t num_elems) in hash_size() argument
224 if (num_elems < sizes[i]) in hash_size()
/external/flatbuffers/js/
Dflatbuffers.js726 flatbuffers.Builder.prototype.startVector = function(elem_size, num_elems, alignment) { argument
728 this.vector_num_elems = num_elems;
729 this.prep(flatbuffers.SIZEOF_INT, elem_size * num_elems);
730 this.prep(alignment, elem_size * num_elems); // Just in case alignment > int.
/external/tensorflow/tensorflow/core/grappler/costs/
Dgraph_memory.cc116 int num_elems = TensorShape(shape).num_elements(); in InferMemUsageForNeighbors() local
117 neighbors_memory_usage += num_elems * size; in InferMemUsageForNeighbors()
/external/tensorflow/tensorflow/core/framework/
Dattr_value_util.cc43 int64 num_elems = TensorShape(t.tensor_shape()).num_elements(); in TensorByteSize() local
44 return num_elems < 0 ? -1 : num_elems * DataTypeSize(t.dtype()); in TensorByteSize()
/external/flatbuffers/lobster/
Dflatbuffers.lobster139 def StartVector(elem_size, num_elems, alignment):
142 Prep(sz_32, elem_size * num_elems)
143 Prep(alignment, elem_size * num_elems) // In case alignment > int.
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_pack.h63 unsigned num_elems,
Dlp_bld_pack.c293 unsigned num_elems, in lp_build_uninterleave1() argument
299 assert(num_elems <= LP_MAX_VECTOR_LENGTH); in lp_build_uninterleave1()
301 for (i = 0; i < num_elems / 2; ++i) in lp_build_uninterleave1()
304 shuffle = LLVMConstVector(elems, num_elems / 2); in lp_build_uninterleave1()
/external/mesa3d/src/gallium/drivers/ddebug/
Ddd_context.c244 unsigned num_elems, in dd_context_create_vertex_elements_state() argument
252 hstate->cso = pipe->create_vertex_elements_state(pipe, num_elems, elems); in dd_context_create_vertex_elements_state()
253 memcpy(hstate->state.velems.velems, elems, sizeof(elems[0]) * num_elems); in dd_context_create_vertex_elements_state()
254 hstate->state.velems.count = num_elems; in dd_context_create_vertex_elements_state()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_BarrierTakeMany.pbtxt19 A one-dimensional tensor of indices, with length num_elems.

12