Home
last modified time | relevance | path

Searched refs:buffer_map (Results 1 – 25 of 61) sorted by relevance

123

/external/tensorflow/tensorflow/lite/delegates/flex/
Dbuffer_map_test.cc80 BufferMap buffer_map; // BufferMap is the easiest way to build the tensor. in MakeTensor() local
82 buffer_map.SetFromTfLite(0, t1.get()); in MakeTensor()
83 return buffer_map.GetTensor(0); in MakeTensor()
101 BufferMap buffer_map; in TEST() local
102 EXPECT_FALSE(buffer_map.HasTensor(0)); in TEST()
106 BufferMap buffer_map; in TEST() local
110 buffer_map.SetFromTfLite(0, t.get()); in TEST()
111 ASSERT_TRUE(buffer_map.HasTensor(0)); in TEST()
113 EXPECT_THAT(GetTensorData<float>(buffer_map.GetTensor(0)), in TEST()
117 tensorflow::Tensor out_tensor = buffer_map.GetTensor(0); in TEST()
[all …]
Dkernel.cc275 tensorflow::Status BuildEagerInputs(const BufferMap* buffer_map) { in BuildEagerInputs() argument
283 if (!buffer_map->HasTensor(input_index)) { in BuildEagerInputs()
288 buffer_map->GetTensor(input_index), nullptr, nullptr, nullptr); in BuildEagerInputs()
302 tensorflow::Status PersistEagerOutputs(BufferMap* buffer_map) { in PersistEagerOutputs() argument
308 buffer_map->SetFromTensorFlow(outputs_.TfLiteIndex(i), *tensor); in PersistEagerOutputs()
334 tensorflow::Status ExecuteFlexOp(TfLiteContext* context, BufferMap* buffer_map, in ExecuteFlexOp() argument
336 TF_RETURN_WITH_CONTEXT_IF_ERROR(node_data->BuildEagerInputs(buffer_map), in ExecuteFlexOp()
353 TF_RETURN_IF_ERROR(node_data->PersistEagerOutputs(buffer_map)); in ExecuteFlexOp()
363 BufferMap* buffer_map; member
380 op_data->buffer_map = reinterpret_cast<DelegateData*>(params->delegate->data_) in Init()
[all …]
DBUILD13 name = "buffer_map",
14 srcs = ["buffer_map.cc"],
15 hdrs = ["buffer_map.h"],
38 ":buffer_map",
82 ":buffer_map",
120 ":buffer_map",
Ddelegate.cc79 BufferMap* buffer_map = in CopyFromBufferHandle() local
82 if (!buffer_map->HasTensor(buffer_handle)) { in CopyFromBufferHandle()
87 tensorflow::Tensor t = buffer_map->GetTensor(buffer_handle); in CopyFromBufferHandle()
Dkernel_test.cc83 auto* buffer_map = delegate_data->GetBufferMap(context); in ConfigureDelegate() local
84 if (!buffer_map->HasTensor(buffer_handle)) { in ConfigureDelegate()
89 buffer_map->GetTensor(buffer_handle).tensor_data(); in ConfigureDelegate()
/external/nos/host/android/hals/keymaster/
Dbuffer.cpp122 static map<uint64_t, Operation> buffer_map; variable
127 if (buffer_map.find(handle) != buffer_map.end()) { in buffer_begin()
135 buffer_map.insert( in buffer_begin()
141 if (buffer_map.find(handle) == buffer_map.end()) { in buffer_remaining()
146 const Operation &op = buffer_map.find(handle)->second; in buffer_remaining()
154 if (buffer_map.find(handle) == buffer_map.end()) { in buffer_append()
159 Operation *op = &buffer_map.find(handle)->second; in buffer_append()
167 if (buffer_map.find(handle) == buffer_map.end()) { in buffer_peek()
172 Operation *op = &buffer_map.find(handle)->second; in buffer_peek()
179 if (buffer_map.find(handle) == buffer_map.end()) { in buffer_advance()
[all …]
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorDeviceSycl.h26 mutable std::map<const void *, std::shared_ptr<void>> buffer_map; member
48 auto it = buffer_map.find(p); in deallocate()
49 if (it != buffer_map.end()) { in deallocate()
50 buffer_map.erase(it); in deallocate()
55 std::map<const void *, std::shared_ptr<void>>::iterator it=buffer_map.begin(); in deallocate_all()
56 while (it!=buffer_map.end()) { in deallocate_all()
58 buffer_map.erase(it); in deallocate_all()
60 it=buffer_map.begin(); in deallocate_all()
62 buffer_map.clear(); in deallocate_all()
75 …std::pair<std::map<const void *, std::shared_ptr<void>>::iterator,bool> ret = buffer_map.insert(st… in add_sycl_buffer()
[all …]
/external/mesa3d/src/mesa/vbo/
Dvbo_exec_draw.c83 const fi_type *src = exec->vtx.buffer_map + last_prim->start * sz; in vbo_copy_vertices()
247 arrays[attr].Ptr = (GLubyte *)exec->vtx.buffer_map + offset; in vbo_exec_bind_arrays()
291 GLsizeiptr length = (exec->vtx.buffer_ptr - exec->vtx.buffer_map) * in vbo_exec_vtx_unmap()
301 exec->vtx.buffer_map) * sizeof(float); in vbo_exec_vtx_unmap()
307 exec->vtx.buffer_map = NULL; in vbo_exec_vtx_unmap()
331 assert(!exec->vtx.buffer_map); in vbo_exec_vtx_map()
337 exec->vtx.buffer_map = (fi_type *) in vbo_exec_vtx_map()
345 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_vtx_map()
348 exec->vtx.buffer_ptr = exec->vtx.buffer_map = NULL; in vbo_exec_vtx_map()
352 if (!exec->vtx.buffer_map) { in vbo_exec_vtx_map()
[all …]
Dvbo_save_api.c216 vertex_store->buffer_map = NULL; in alloc_vertex_store()
228 assert(!vertex_store->buffer_map); in free_vertex_store()
248 assert(!vertex_store->buffer_map); /* the buffer should not be mapped */ in vbo_save_map_vertex_store()
260 vertex_store->buffer_map = range - vertex_store->used; in vbo_save_map_vertex_store()
261 assert(vertex_store->buffer_map); in vbo_save_map_vertex_store()
265 vertex_store->buffer_map = NULL; in vbo_save_map_vertex_store()
292 vertex_store->buffer_map = NULL; in vbo_save_unmap_vertex_store()
313 save->buffer_map = save->vertex_store->buffer_map + save->vertex_store->used; in reset_counters()
315 assert(save->buffer_map == save->buffer_ptr); in reset_counters()
384 const fi_type *src = save->buffer_map + prim->start * sz; in convert_line_loop_to_strip()
[all …]
Dvbo_exec_api.c70 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_wrap_buffers()
325 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_wrap_upgrade_vertex()
362 assert(exec->vtx.buffer_ptr == exec->vtx.buffer_map); in vbo_exec_wrap_upgrade_vertex()
880 const fi_type *src = exec->vtx.buffer_map + in vbo_exec_End()
882 fi_type *dst = exec->vtx.buffer_map + in vbo_exec_End()
1130 _mesa_align_free(exec->vtx.buffer_map); in vbo_use_buffer_objects()
1131 exec->vtx.buffer_map = NULL; in vbo_use_buffer_objects()
1176 assert(!exec->vtx.buffer_map); in vbo_exec_vtx_init()
1177 exec->vtx.buffer_map = _mesa_align_malloc(VBO_VERT_BUFFER_SIZE, 64); in vbo_exec_vtx_init()
1178 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_vtx_init()
[all …]
Dvbo_save.h126 fi_type *buffer_map; member
162 fi_type *buffer_map; /**< Mapping of vertex_store's buffer */ member
Dvbo_exec.h95 fi_type *buffer_map; member
/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_video.c92 src = ws->buffer_map(old_buf.res->buf, cs, PIPE_TRANSFER_READ); in si_vid_resize_buffer()
96 dst = ws->buffer_map(new_buf->res->buf, cs, PIPE_TRANSFER_WRITE); in si_vid_resize_buffer()
Dradeon_vce.c64 uint32_t *ptr = enc->ws->buffer_map(fb->res->buf, enc->cs, PIPE_TRANSFER_READ_WRITE);
355 uint32_t *ptr = enc->ws->buffer_map(fb->res->buf, enc->cs, PIPE_TRANSFER_READ_WRITE); in rvce_get_feedback()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_alias_analysis.cc502 BufferValueMap buffer_map(module, alias_analysis->dataflow_analysis()); in Run() local
503 buffer_map.MergeAliasedBuffers(); in Run()
509 buffer_map.ComputeSortedBufferNumbers(); in Run()
513 auto& value_set = buffer_map.GetValuesInBuffer(buffer_number); in Run()
/external/mesa3d/src/gallium/drivers/r600/
Dradeon_video.c100 src = ws->buffer_map(old_buf.res->buf, cs, PIPE_TRANSFER_READ); in rvid_resize_buffer()
104 dst = ws->buffer_map(new_buf->res->buf, cs, PIPE_TRANSFER_WRITE); in rvid_resize_buffer()
Dradeon_vce.c70 uint32_t *ptr = enc->ws->buffer_map(fb->res->buf, enc->cs, PIPE_TRANSFER_READ_WRITE);
356 uint32_t *ptr = enc->ws->buffer_map(fb->res->buf, enc->cs, PIPE_TRANSFER_READ_WRITE); in rvce_get_feedback()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_transfer.c221 map = r300->rws->buffer_map(trans->linear_texture->buf, in r300_texture_transfer_map()
233 map = r300->rws->buffer_map(tex->buf, r300->cs, usage); in r300_texture_transfer_map()
Dr300_screen_buffer.c129 map = rws->buffer_map(rbuf->buf, r300->cs, usage); in r300_buffer_transfer_map()
Dr300_query.c161 map = r300->rws->buffer_map(q->buf, r300->cs, in r300_get_query_result()
/external/mesa3d/src/gallium/drivers/i915/
Di915_winsys.h195 void *(*buffer_map)(struct i915_winsys *iws, member
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_resource_buffer.h291 return sws->buffer_map(sws, sbuf->hwbuf, flags); in svga_buffer_hw_storage_map()
/external/mesa3d/src/gallium/winsys/i915/drm/
Di915_drm_buffer.c254 idws->base.buffer_map = i915_drm_buffer_map; in i915_drm_winsys_init_buffer_functions()
/external/mesa3d/src/amd/vulkan/winsys/amdgpu/
Dradv_amdgpu_cs.c221 cs->ib_mapped = ws->buffer_map(cs->ib_buffer); in radv_amdgpu_cs_create()
347 cs->ib_mapped = cs->ws->base.buffer_map(cs->ib_buffer); in radv_amdgpu_cs_grow()
962 ptr = ws->buffer_map(bos[j]); in radv_amdgpu_winsys_cs_submit_sysmem()
1001 ptr = ws->buffer_map(bos[0]); in radv_amdgpu_winsys_cs_submit_sysmem()
1190 ctx->fence_map = (uint64_t*)ws->base.buffer_map(ctx->fence_bo); in radv_amdgpu_ctx_create()
/external/mesa3d/src/amd/vulkan/
Dradv_radeon_winsys.h201 void *(*buffer_map)(struct radeon_winsys_bo *bo); member

123