Home
last modified time | relevance | path

Searched refs:LongToInt (Results 1 – 25 of 38) sorted by relevance

12

/third_party/mindspore/mindspore/ccsrc/backend/optimizer/trt_pass/
Dtrt_op_converter.cc145 …*(inputs[0].tensor()), pooling_type, nvinfer1::DimsHW{LongToInt(kernel_size[2]), LongToInt(kernel_… in AddPoolingLayer()
149 layer->setStride(nvinfer1::DimsHW{LongToInt(strides[2]), LongToInt(strides[3])}); in AddPoolingLayer()
206 int offset = axis[i] >= 0 ? LongToInt(axis[i]) : LongToInt(axis[i] + input_shape.size()); in AddReduceLayer()
211 int offset = axis >= 0 ? LongToInt(axis) : LongToInt(axis + input_shape.size()); in AddReduceLayer()
274 *(inputs[0].tensor()), LongToInt(out_channel), in MS_TRT_CONVERTER_FUNC_REG()
275 …nvinfer1::DimsHW{LongToInt(kernel_size[0]), LongToInt(kernel_size[1])}, *(inputs[1].weight()), bia… in MS_TRT_CONVERTER_FUNC_REG()
279 layer->setStride(nvinfer1::DimsHW{LongToInt(strides[2]), LongToInt(strides[3])}); in MS_TRT_CONVERTER_FUNC_REG()
289 layer->setPrePadding(nvinfer1::DimsHW{LongToInt(pad_list[0]), LongToInt(pad_list[2])}); in MS_TRT_CONVERTER_FUNC_REG()
290 layer->setPostPadding(nvinfer1::DimsHW{LongToInt(pad_list[1]), LongToInt(pad_list[3])}); in MS_TRT_CONVERTER_FUNC_REG()
728 …nvinfer1::DimsHW{LongToInt(kernel_size[0]), LongToInt(kernel_size[1])}, *(inputs[1].weight()), bia… in MS_TRT_CONVERTER_FUNC_REG()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/rl/
Dbuffer_append_cpu_kernel.h72 …int remain_size = (exp_batch_ > (capacity_ - index)) ? LongToInt(capacity_ - index) : LongToInt(ex… in Launch()
73 …int remap_size = (exp_batch_ > (capacity_ - index)) ? LongToInt(exp_batch_ - capacity_ + index) : … in Launch()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/rl/
Dbuffer_append_gpu_kernel.cc75 IncreaseCount(capacity_, LongToInt(exp_batch_), count_addr, head_addr, index_addr, cuda_stream); in Launch()
80 …BufferAppend(capacity_, one_exp_len, index_addr, LongToInt(exp_batch_), buffer_addr, exp_addr, cud… in Launch()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Dslice_grad_cpu_kernel.cc42 [](const int64_t &value) { return LongToInt(value); }); in InitKernel()
50 [](const int64_t &value) { return LongToInt(value); }); in InitKernel()
52 [](const int64_t &value) { return LongToInt(value); }); in InitKernel()
60 [](const int64_t &value) { return LongToInt(value); }); in InitKernel()
Dstridedslice_cpu_kernel.cc132 int begin_pos = LongToInt(begin[i]); in InitSliceParam()
133 int end_pos = LongToInt(end[i]); in InitSliceParam()
134 int stride_size = LongToInt(stride[i]); in InitSliceParam()
Dslice_cpu_kernel.cc71 int begin_pos = LongToInt(begin[i]); in InitSliceParam()
72 int slice_size = LongToInt(size[i]); in InitSliceParam()
Drandom_cpu_kernel.cc122 seed_ = LongToInt(GetValue<int64_t>(prim->GetAttr("seed"))); in InitKernel()
123 seed2_ = LongToInt(GetValue<int64_t>(prim->GetAttr("seed2"))); in InitKernel()
Dunpack_cpu_kernel.cc39 unstack_param_.axis_ = LongToInt(axis_tmp); in InitKernel()
Dconcat_cpu_kernel.cc31 axis_ = LongToInt(AnfAlgo::GetNodeAttr<int64_t>(kernel_node, AXIS)); in InitKernel()
Dsplit_cpu_kernel.cc67 param.split_dim_ = LongToInt(axis_); in LaunchSplit()
Dtile_cpu_kernel.cc61 [](const int64_t &value) { return LongToInt(value); }); in TileTensorParamrInit()
Dl2_normalize_cpu_kernel.cc34 axis_ = LongToInt(AnfAlgo::GetNodeAttr<int64_t>(kernel_node, AXIS)); in InitKernel()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/mkldnn/
Dlstm_cpu_kernel.cc121 input_size_ = LongToInt(AnfAlgo::GetNodeAttr<int64_t>(kernel_node, "input_size")); in CheckParam()
122 hidden_size_ = LongToInt(AnfAlgo::GetNodeAttr<int64_t>(kernel_node, "hidden_size")); in CheckParam()
123 num_layers_ = LongToInt(AnfAlgo::GetNodeAttr<int64_t>(kernel_node, "num_layers")); in CheckParam()
Dpooling_avg_grad_cpu_kernel.cc47 [](const int64_t &value) { return LongToInt(value); }); in InitKernel()
49 [](const int64_t &value) { return LongToInt(value); }); in InitKernel()
Dconv2d_grad_filter_cpu_kernel.cc59 [](const int64_t &value) { return LongToInt(value); }); in InitKernel()
61 [](const int64_t &value) { return LongToInt(value); }); in InitKernel()
Dconv_cpu_kernel.cc67 [](const int64_t &value) { return LongToInt(value); }); in InitKernel()
69 [](const int64_t &value) { return LongToInt(value); }); in InitKernel()
Dpooling_max_grad_cpu_kernel.cc45 [](const int64_t &value) { return LongToInt(value); }); in InitKernel()
47 [](const int64_t &value) { return LongToInt(value); }); in InitKernel()
/third_party/mindspore/mindspore/ccsrc/runtime/device/
Dconvert_tensor_utils.h32 void LongToInt(void *dst, const void *src, size_t elem_num);
Dconvert_tensor_utils.cc87 void LongToInt(void *dst, const void *src, size_t elem_num) { in LongToInt() function
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/strategy_checkpoint/
Dparallel_strategy_checkpoint.cc177 tensor_map->add_dim(LongToInt(map_dim)); in Save()
187 parallel_layouts->set_field(LongToInt(tensor_layout->get_field_size())); in Save()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/nn/
Dsoftmax_gpu_kernel.h127 auto axis = LongToInt(GetAttr<int64_t>(kernel_node, "axis")); in Init()
134 [](const int64_t &value) { return LongToInt(value); }); in Init()
/third_party/mindspore/mindspore/ccsrc/runtime/device/cpu/
Dcpu_device_address.cc137 LongToInt(ptr_, host_ptr, size / sizeof(int64_t)); in SyncHostToDevice()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/fl/
Dstart_fl_job_kernel.h83 data_size_ = LongToInt(AnfAlgo::GetNodeAttr<int64_t>(kernel_node, "data_size")); in Init()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/ps/
Dembedding_look_up_ps_kernel.cc95 int index = SizeToInt(lookup_ids[i]) - LongToInt(offset_); in UpdateEmbeddings()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/trt/
Dtrt_utils.h79 trt_dims.d[i - offset] = LongToInt(ms_shape[i]);

12