Home
last modified time | relevance | path

Searched defs:tensor_size (Results 1 – 25 of 74) sorted by relevance

123

/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/runtime/pynative/
Dop_runtime_info.cc51 size_t tensor_size = type_size * SizeOf(shape); in OpRuntimeInfoGetOutputTensorMemSize() local
69 …auto tensor_size = OpRuntimeInfoGetOutputTensorMemSize(node, i, output_type, output_format, device… in CacheForExecutionOrder() local
117 …auto tensor_size = OpRuntimeInfoGetOutputTensorMemSize(input, index, type_id, format, device_shape… in CacheForGraphInputs() local
166 void OpRuntimeInfo::SetOutputTensorSize(size_t index, size_t tensor_size) { in SetOutputTensorSize()
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/cpu/hal/device/
Dcpu_kernel_runtime.cc113 …size_t tensor_size = std::accumulate(data_shape.begin(), data_shape.end(), type_size, std::multipl… in AssignValueNodeAddress() local
146 size_t tensor_size = type_size * SizeOf(fmt_shape); in AssignInputNodeAddress() local
213 …size_t tensor_size = std::accumulate(temp_shape.begin(), temp_shape.end(), type_size, std::multipl… in CreateTensorForOutput() local
230 …size_t tensor_size = std::accumulate(data_shape.begin(), data_shape.end(), type_size, std::multipl… in CreateTensorForOutput() local
340 size_t tensor_size = std::accumulate(data_shape.begin(), data_shape.end(), in BindInputTensorAddressPtr() local
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/runtime/device/
Ddevice_address_utils.cc55 size_t tensor_size = value.size() + 1; in CreateDeviceAddressForScalarAndString() local
245 size_t tensor_size = AnfAlgo::GetOutputTensorMemSize(item, index); in CreateParameterDeviceAddress() local
311 size_t tensor_size = AnfAlgo::GetOutputTensorMemSize(value_node, output_idx); in CreateDeviceAddressForTensorValue() local
587 size_t tensor_size = type_size * SizeOf(device_shape); in GetTensorDeviceSize() local
872 auto tensor_size = LongToSize(tensor->data().nbytes()); in CreateInputTensorAddress() local
925 auto tensor_size = LongToSize(tensor->data().nbytes()); in MallocForInput() local
1043 const auto &tensor_size = LongToSize(tensor->data().nbytes()); in CreateInputAddress() local
1162 auto tensor_size = LongToSize(tensor->data().nbytes()); in CreateOutputTensorAddress() local
1204 auto tensor_size = GetTypeByte(TypeIdToType(tensor->data_type())) * SizeOf(real_shape); in CreateDeviceAddress() local
Dtensor_array.cc82 auto tensor_size = tensors_[i]->size; in Write() local
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/cpu/kernel/
Dconvert_to_dynamic_cpu_kernel.cc44 size_t tensor_size = 0; in Resize() local
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/cpu/kernel/eigen/
Dbessel_i1_cpu_kernel.cc73 size_t tensor_size = inputs[0]->size() / sizeof(T); in LaunchKernel() local
Dbessel_k0_cpu_kernel.cc73 size_t tensor_size = inputs[0]->size() / sizeof(T); in LaunchKernel() local
Dbessel_k1e_cpu_kernel.cc74 size_t tensor_size = inputs[0]->size() / sizeof(T); in LaunchKernel() local
Dbessel_y1_cpu_kernel.cc73 size_t tensor_size = inputs[0]->size() / sizeof(T); in LaunchKernel() local
Dbessel_j0_cpu_kernel.cc72 size_t tensor_size = inputs[0]->size() / sizeof(T); in LaunchKernel() local
Dbessel_i0e_cpu_kernel.cc74 size_t tensor_size = inputs[0]->size() / sizeof(T); in LaunchKernel() local
Dbessel_y0_cpu_kernel.cc73 size_t tensor_size = inputs[0]->size() / sizeof(T); in LaunchKernel() local
Dbessel_i0_cpu_kernel.cc73 size_t tensor_size = inputs[0]->size() / sizeof(T); in LaunchKernel() local
Dbessel_j1_cpu_kernel.cc73 size_t tensor_size = inputs[0]->size() / sizeof(T); in LaunchKernel() local
Dbessel_i1e_cpu_kernel.cc74 size_t tensor_size = inputs[0]->size() / sizeof(T); in LaunchKernel() local
Dbessel_k1_cpu_kernel.cc73 size_t tensor_size = inputs[0]->size() / sizeof(T); in LaunchKernel() local
Dbessel_k0e_cpu_kernel.cc74 size_t tensor_size = inputs[0]->size() / sizeof(T); in LaunchKernel() local
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/ascend/kernel/aicpu/aicpu_ops/cpu_kernel/ms_kernel/
Dmasked_select_grad.cc104 uint64_t tensor_size = 1; in MaskedSelectGradCompute() local
/third_party/mindspore/mindspore-src/source/tests/ut/cpp/common/
Ddevice_common_test.h143 size_t tensor_size = AnfAlgo::GetOutputTensorMemSize(input_node, index); in CreateKernel() local
152 size_t tensor_size = AnfAlgo::GetOutputTensorMemSize(node, output_index); in CreateKernel() local
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/gpu/kernel/math/
Dtriu_indices_gpu_kernel.cc46 size_t tensor_size = 0; in Resize() local
Dtril_indices_gpu_kernel.cc46 size_t tensor_size = 0; in Resize() local
/third_party/mindspore/mindspore-src/source/mindspore/core/ops/
Dpriority_replay_buffer.cc115 …size_t tensor_size = std::accumulate(shapes[i].begin(), shapes[i].end(), type_size, std::multiplie… in Init() local
205 …size_t tensor_size = std::accumulate(shapes[i].begin(), shapes[i].end(), type_size, std::multiplie… in Init() local
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/gpu/kernel/rl/
Dtensor_array_stack_kernel.cc71 size_t tensor_size = tensors_->GetValidSize(); in UpdateOutputShapeAndSize() local
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/cpu/kernel/rl/
Dtensor_array_stack_kernel.cc68 size_t tensor_size = tensors_->GetValidSize(); in UpdateOutputShapeAndSize() local
/third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/ascend/kernel/acl/acl_kernel/
Dcustom_op_kernel_mod.cc86 …size_t tensor_size = std::accumulate(shape.begin(), shape.end(), type_size, std::multiplies<size_t… in Resize() local

123