Home
last modified time | relevance | path

Searched refs:tensor_bytes (Results 1 – 10 of 10) sorted by relevance

/external/eigen/unsupported/test/
Dcxx11_tensor_striding_sycl.cpp46 std::size_t tensor_bytes = tensor.size() * sizeof(DataType); in test_simple_striding() local
49 DataType * d_tensor = static_cast<DataType*>(sycl_device.allocate(tensor_bytes)); in test_simple_striding()
64 sycl_device.memcpyHostToDevice(d_tensor, tensor.data(), tensor_bytes); in test_simple_striding()
128 std::size_t tensor_bytes = tensor.size() * sizeof(DataType); in test_striding_as_lvalue() local
132 DataType * d_tensor = static_cast<DataType*>(sycl_device.allocate(tensor_bytes)); in test_striding_as_lvalue()
150 sycl_device.memcpyHostToDevice(d_tensor, tensor.data(), tensor_bytes); in test_striding_as_lvalue()
Dcxx11_tensor_gpu.cu30 std::size_t tensor_bytes = in1.size() * sizeof(float); in test_gpu_nullary() local
34 gpuMalloc((void**)(&d_in1), tensor_bytes); in test_gpu_nullary()
35 gpuMalloc((void**)(&d_in2), tensor_bytes); in test_gpu_nullary()
36 gpuMemcpy(d_in1, in1.data(), tensor_bytes, gpuMemcpyHostToDevice); in test_gpu_nullary()
37 gpuMemcpy(d_in2, in2.data(), tensor_bytes, gpuMemcpyHostToDevice); in test_gpu_nullary()
53 assert(gpuMemcpyAsync(new1.data(), d_in1, tensor_bytes, gpuMemcpyDeviceToHost, in test_gpu_nullary()
55 assert(gpuMemcpyAsync(new2.data(), d_in2, tensor_bytes, gpuMemcpyDeviceToHost, in test_gpu_nullary()
/external/executorch/backends/vulkan/serialization/
Dvulkan_graph_serialize.py170 tensor_bytes = bytes(array)
172 raw_bytes += tensor_bytes
173 raw_bytes += b"\x00" * padding_required(len(tensor_bytes))
175 vk_graph.constants.append(VkBytes(current_offset, len(tensor_bytes)))
176 current_offset += aligned_size(len(tensor_bytes))
/external/tensorflow/tensorflow/python/saved_model/
Dutils_impl.py300 tensor_bytes = tensor.tensor_content
301 if tensor_bytes:
305 chunksize = int(len(tensor_bytes) / tensor_size)
308 tensor_bytes[i:i + chunksize]
309 for i in range(0, len(tensor_bytes), chunksize)
/external/tensorflow/tensorflow/lite/testing/nnapi_tflite_zip_tests/
Dtest_runner.h112 bool CheckSizes(size_t tensor_bytes, size_t num_values) { in CheckSizes() argument
113 size_t num_tensor_elements = tensor_bytes / sizeof(T); in CheckSizes()
/external/tensorflow/tensorflow/lite/testing/
Dtest_runner.h107 bool CheckSizes(size_t tensor_bytes, size_t num_values) { in CheckSizes() argument
108 size_t num_tensor_elements = tensor_bytes / sizeof(T); in CheckSizes()
/external/executorch/backends/vulkan/test/
Dtest_serialization.py94 tensor_bytes = bytes(array)
95 self.assertEqual(constant_data_bytes, tensor_bytes)
/external/executorch/backends/qualcomm/runtime/
DSharedBuffer.cpp23 hash_val ^= std::hash<size_t>()(info.tensor_bytes); in operator ()()
37 lhs.pos == rhs.pos && lhs.tensor_bytes == rhs.tensor_bytes && in operator ==()
DQnnExecuTorch.h44 size_t tensor_bytes; member
DQnnManager.cpp132 info.tensor_bytes, in PreRegisterMem()