Home
last modified time | relevance | path

Searched defs:on_value (Results 1 – 13 of 13) sorted by relevance

/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/opencl/
Done_hot_tests.cc35 float on_value = 1; in TEST_F() local
56 float on_value = 1; in TEST_F() local
77 float on_value = 1; in TEST_F() local
100 float on_value = 1; in TEST_F() local
123 float on_value = 2; in TEST_F() local
144 float on_value = 2; in TEST_F() local
166 float on_value = 2; in TEST_F() local
187 float on_value = 1; in TEST_F() local
210 float on_value = 2; in TEST_F() local
233 float on_value = 2; in TEST_F() local
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Done_hot_impl.cu20 __global__ void OneHotKernel(size_t size, const S *indices, size_t depth, const T *on_value, const … in OneHotKernel()
41 void OneHot(const S *indices, size_t depth, const T *on_value, const T *off_value, size_t left_dim_… in OneHot()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/base/
Done_hot_base.cc185 const auto *on_value = reinterpret_cast<float *>(on_value_tensor->data()); in InitOnOffValueForFourInputs() local
192 const auto *on_value = reinterpret_cast<float16_t *>(on_value_tensor->data()); in InitOnOffValueForFourInputs() local
/third_party/mindspore/tests/st/auto_parallel/
Donehot_model_parallel.py49 def __init__(self, axis=-1, depth=1, on_value=1.0, off_value=0.0, strategy=None): argument
102 def __init__(self, batch_size, classes, on_value=1.0, off_value=0.0, axis=None, strategy=None): argument
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/
Done_hot_infer.c32 const TensorC *on_value = inputs[2]; in OneHotInferShape() local
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/
Done_hot_fp16.c19 int OneHotToFp16(const int *indices, float16_t on_value, float16_t off_value, float16_t *output, in OneHotToFp16()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/
Done_hot_fp32.c20 int OneHotToFp32(const int *indices, float on_value, float off_value, float *output, in OneHotToFp32()
/third_party/mindspore/tests/ut/cpp/ops/
Dtest_ops_one_hot.cc41 …auto on_value = TensorConstructUtils::CreateOnesTensor(kNumberTypeFloat32, std::vector<int64_t>{1}… in TEST_F() local
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Done_hot_cpu_kernel.cc56 auto on_value = reinterpret_cast<float *>(inputs[1]->addr)[0]; in Launch() local
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/arrays/
Done_hot_gpu_kernel.h44 const T *on_value = GetDeviceAddress<T>(inputs, 1); in Launch() local
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/pre_activate/
Dconvert_const_input_test.py35 on_value = Tensor(1.0, mstype.float32) variable
/third_party/mindspore/mindspore/nn/layer/
Dbasic.py650 def __init__(self, axis=-1, depth=1, on_value=1.0, off_value=0.0, dtype=mstype.float32): argument
/third_party/mindspore/mindspore/ops/_grad/
Dgrad_nn_ops.py825 def bprop(indices, depth, on_value, off_value, out, dout): argument