Home
last modified time | relevance | path

Searched defs:off_value (Results 1 – 12 of 12) sorted by relevance

/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/opencl/
Done_hot_tests.cc36 float off_value = -1; in TEST_F() local
57 float off_value = -1; in TEST_F() local
78 float off_value = -1; in TEST_F() local
101 float off_value = -1; in TEST_F() local
124 float off_value = 0; in TEST_F() local
145 float off_value = 0; in TEST_F() local
167 float off_value = 0; in TEST_F() local
188 float off_value = -1; in TEST_F() local
211 float off_value = -2; in TEST_F() local
234 float off_value = -2; in TEST_F() local
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Done_hot_impl.cu20 …id OneHotKernel(size_t size, const S *indices, size_t depth, const T *on_value, const T *off_value, 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.cc210 const auto *off_value = reinterpret_cast<float *>(off_value_tensor->data()); in InitOnOffValueForFourInputs() local
217 const auto *off_value = reinterpret_cast<float16_t *>(off_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/fp32/
Done_hot_fp32.c20 int OneHotToFp32(const int *indices, float on_value, float off_value, float *output, in OneHotToFp32()
/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/tests/ut/cpp/ops/
Dtest_ops_one_hot.cc42 …auto off_value = TensorConstructUtils::CreateZerosTensor(kNumberTypeFloat32, std::vector<int64_t>{… in TEST_F() local
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Done_hot_cpu_kernel.cc57 auto off_value = reinterpret_cast<float *>(inputs[2]->addr)[0]; in Launch() local
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/arrays/
Done_hot_gpu_kernel.h45 const T *off_value = GetDeviceAddress<T>(inputs, 2); in Launch() local
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/pre_activate/
Dconvert_const_input_test.py36 off_value = Tensor(0.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