Home
last modified time | relevance | path

Searched refs:Softmax (Results 1 – 25 of 94) sorted by relevance

1234

/third_party/mindspore/tests/ut/python/optimizer/
Dtest_python_pass.py46 softmax_model = nn.Softmax()
51 pattern = Call(P.Softmax(), [x])
62 softmax_model = nn.Softmax()
67 sigmoid_softmax_pattern = Prim([P.Sigmoid(), P.Softmax()])
85 softmax_model = nn.Softmax()
90 softmax_pattern = Prim(P.Softmax())
110 softmax_model = nn.Softmax()
115 softmax_pattern = Prim(P.Softmax())
134 softmax_model = nn.Softmax()
139 softmax_pattern = Prim(P.Softmax())
[all …]
/third_party/mindspore/mindspore/core/ops/
Dsoftmax.h32 class MS_CORE_API Softmax : public PrimitiveC {
35 Softmax() : PrimitiveC(kNameSoftmax) { InitIOName({"x"}, {"output"}); } in Softmax() function
37 ~Softmax() = default;
38 MS_DECLARE_PARENT(Softmax, PrimitiveC);
51 using PrimSoftmaxPtr = std::shared_ptr<Softmax>;
Dsoftmax.cc29 void Softmax::set_axis(const std::vector<int64_t> &axis) { (void)this->AddAttr(kAxis, MakeValue(axi… in set_axis()
31 std::vector<int64_t> Softmax::get_axis() const { in get_axis()
36 void Softmax::Init(const int64_t axis) { in Init()
84 REGISTER_PRIMITIVE_EVAL_IMPL(Softmax, prim::kPrimSoftmax, SoftmaxInfer, nullptr, true);
/third_party/mindspore/tests/st/ops/cpu/
Dtest_softmax_op.py32 self.softmax = P.Softmax(axis=-1)
46 Softmax = NetSoftmax()
47 output = Softmax()
60 self.softmax = P.Softmax(axis=-2)
74 Softmax = NetSoftmax1()
75 output = Softmax()
/third_party/mindspore/tests/st/ops/gpu/
Dtest_softmax_op.py30 self.softmax1 = P.Softmax()
31 self.softmax2 = P.Softmax(axis)
50 Softmax = NetSoftmax()
51 output = Softmax(x)
60 Softmax = NetSoftmax()
61 output = Softmax(x)
73 self.softmax1 = P.Softmax()
/third_party/mindspore/tests/st/ops/ascend/test_tbe_ops/
Dtest_softmax.py28 self.Softmax = P.Softmax()
31 return self.Softmax(x)
/third_party/mindspore/tests/st/ops/graph_kernel/
Dtest_softmax.py25 self.Softmax = P.Softmax(axis)
28 return self.Softmax(x)
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/nn/
Dsoftmax_gpu_kernel.cc21 MS_REG_GPU_KERNEL_ONE(Softmax, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberT…
23 MS_REG_GPU_KERNEL_ONE(Softmax, KernelAttr().AddInputAttr(kNumberTypeFloat16).AddOutputAttr(kNumberT…
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/ops_info/
Dactivation_info.h108 class Softmax : public ActivationBase {
110 explicit Softmax(const std::string &name, const Shapes &inputs_shape, const Shapes &outputs_shape, in Softmax() function
113 ~Softmax() override = default;
125 class SoftmaxInfo : public Softmax {
129 : Softmax(name, inputs_shape, outputs_shape, attrs) {} in SoftmaxInfo()
133 class LogSoftmaxInfo : public Softmax {
137 : Softmax(name, inputs_shape, outputs_shape, attrs) {} in LogSoftmaxInfo()
/third_party/mindspore/tests/ut/cpp/parallel/ops_info/
Dactivation_test.cc29 class Softmax;
31 using SoftmaxPtr = std::shared_ptr<Softmax>;
71 …soft_ptr_ = std::make_shared<Softmax>("softmax_info", sm_inputs_shape, sm_outputs_shape, softmax_a… in SetUp()
/third_party/mindspore/tests/ut/cpp/ops/
Dtest_ops_softmax.cc35 auto softmax = std::make_shared<Softmax>(); in TEST_F()
65 auto softmax = std::make_shared<Softmax>(); in TEST_F()
95 auto softmax = std::make_shared<Softmax>(); in TEST_F()
/third_party/mindspore/tests/ut/python/pipeline/parse/
Dtest_create_obj.py43 self.softmax = nn.Softmax(0)
47 x = nn.Softmax(self.axis)(x)
104 self.softmax = nn.Softmax(self.axis)
/third_party/mindspore/tests/ut/python/pynative_mode/nn/
Dtest_activation.py51 layer = nn.Softmax(1)
60 layer = nn.Softmax()
/third_party/mindspore/mindspore/nn/layer/
Dactivation.py47 class Softmax(Cell): class
91 super(Softmax, self).__init__()
92 self.softmax = P.Softmax(axis)
860 'softmax': Softmax,
/third_party/mindspore/tests/ut/python/ops/
Dtest_ops_reid.py79 'block': P.Softmax(),
84 'block': P.Softmax(axis=(0, 1)),
/third_party/mindspore/tests/ut/python/parallel/
Dtest_hybird_parallel_activation.py114 self.softmax = P.Softmax().shard(strategy3)
168 self.softmax = P.Softmax().shard(strategy3)
197 self.softmax = P.Softmax().shard(strategy5)
229 self.softmax = P.Softmax(axis=(0, 1)).shard(strategy5)
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/
Dsoftmax_fp32.h25 void Softmax(const float *input_ptr, float *output_ptr, float *sum_data, const SoftmaxParameter *pa…
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/mkldnn/
Dsoftmax_cpu_kernel.h37 MS_REG_CPU_KERNEL(Softmax, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTypeF…
/third_party/mindspore/mindspore/lite/tools/converter/parser/caffe/
Dcaffe_softmax_parser.cc25 auto prim = std::make_unique<ops::Softmax>(); in Parse()
/third_party/mindspore/tests/ut/python/exec/
Dtest_softmax.py27 self.softmax = nn.Softmax(dim)
/third_party/mindspore/mindspore/lite/tools/converter/parser/onnx/
Donnx_softmax_parser.cc25 auto prim = std::make_unique<ops::Softmax>(); in Parse()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/
Dsoftmax_infer.c42 REG_INFER(Softmax, PrimType_Softmax, SoftMaxInferShape)
/third_party/mindspore/mindspore/lite/tools/converter/parser/tflite/
Dtflite_softmax_parser.cc31 auto prim = std::make_unique<ops::Softmax>(); in Parse()
/third_party/mindspore/mindspore/lite/tools/converter/parser/tf/
Dtf_softmax_parser.cc29 auto prim = std::make_unique<ops::Softmax>(); in Parse()
/third_party/mindspore/tests/st/ops/ascend/
Dtest_softmax.py29 self.softmax = P.Softmax(axis=1)

1234