Home
last modified time | relevance | path

Searched refs:relu (Results 1 – 25 of 246) sorted by relevance

12345678910

/third_party/mindspore/tests/st/ops/gpu/
Dtest_relu_op.py29 self.relu = P.ReLU()
32 return self.relu(x)
39 self.relu = P.ReLU()
43 return self.relu(x_conv)
58 relu = NetRelu()
59 output = relu(x)
63 relu = NetRelu()
64 output = relu(x)
80 relu = NetRelu()
81 output = relu(x)
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fusion/
Dderelu_fusion.cc40 CNodePtr CreateReluV2(const FuncGraphPtr &graph, const CNodePtr &relu) { in CreateReluV2() argument
42 MS_EXCEPTION_IF_NULL(relu); in CreateReluV2()
43 CheckCNodeInputSize(relu, kReluInputTensorNum); in CreateReluV2()
46 std::vector<AnfNodePtr> inputs = {NewValueNode(prim), relu->input(kIndex1)}; in CreateReluV2()
49 new_node->set_scope(relu->scope()); in CreateReluV2()
53 if (AnfAlgo::IsDynamicShape(relu)) { in CreateReluV2()
56 std::vector<size_t> mask_shape = AnfAlgo::GetOutputInferShape(relu, 0); in CreateReluV2()
61 auto input_dtype = AnfAlgo::GetPrevNodeOutputInferDataType(relu, 0); in CreateReluV2()
77 auto types = {AnfAlgo::GetOutputInferDataType(relu, 0), mask_dtype}; in CreateReluV2()
78 auto shapes = {AnfAlgo::GetOutputInferShape(relu, 0), mask_shape}; in CreateReluV2()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/
Drelu_v2_pass.cc67 CNodePtr CreateReluV2(const FuncGraphPtr &graph, const CNodePtr &relu) { in CreateReluV2() argument
69 MS_EXCEPTION_IF_NULL(relu); in CreateReluV2()
70 CheckCNodeInputSize(relu, kReluInputTensorNum); in CreateReluV2()
73 std::vector<AnfNodePtr> inputs = {NewValueNode(prim), relu->input(1)}; in CreateReluV2()
76 new_node->set_scope(relu->scope()); in CreateReluV2()
78 if (AnfAlgo::IsDynamicShape(relu)) { in CreateReluV2()
81 std::vector<size_t> output_shape = AnfAlgo::GetOutputInferShape(relu, 0); in CreateReluV2()
86 auto shapes = {AnfAlgo::GetOutputInferShape(relu, 0), mask_shape}; in CreateReluV2()
87 auto types = {AnfAlgo::GetOutputInferDataType(relu, 0), kNumberTypeUInt32}; in CreateReluV2()
135 auto relu = GetRelu(relu_grad); in Process() local
[all …]
/third_party/mindspore/tests/st/networks/models/
Dalexnet.py28 self.relu = P.ReLU()
37 x = self.relu(x)
40 x = self.relu(x)
43 x = self.relu(x)
45 x = self.relu(x)
47 x = self.relu(x)
51 x = self.relu(x)
53 x = self.relu(x)
/third_party/mindspore/tests/st/fusion/
Dtest_tbe_reduce_eltwise_fusion.py31 self.relu = P.ReLU()
35 x = self.relu(x)
36 x = self.relu(x)
37 x = self.relu(x)
39 x = self.relu(x)
40 x = self.relu(x)
41 x = self.relu(x)
Dtest_tbe_eltwise_fusion_2.py31 self.relu = P.ReLU()
35 x = self.relu(x)
36 x = self.relu(x)
37 x = self.relu(x)
39 x = self.relu(x)
40 x = self.relu(x)
41 x = self.relu(x)
/third_party/mindspore/tests/st/dynamic_shape/
Dtest_getnext_dynamic_pipeline.py56 self.relu = P.ReLU()
59 x1 = self.relu(x1)
60 x1 = self.relu(x1)
62 x2 = self.relu(x2)
64 x3 = self.relu(x3)
65 x3 = self.relu(x3)
67 x4 = self.relu(x4)
69 x5 = self.relu(x5)
/third_party/mindspore/tests/ut/python/pipeline/parse/
Dtest_operator.py32 self.relu = ReLU()
40 x = self.relu(x)
44 x = self.relu(x)
48 x = self.relu(x)
52 x = self.relu(x)
56 x = self.relu(x)
60 x = self.relu(x)
64 x = self.relu(x)
67 x = self.relu(x)
79 self.relu = ReLU()
[all …]
Dtest_fix_bug.py33 self.relu = nn.ReLU()
38 x = self.relu(x)
48 self.relu = nn.ReLU()
53 x = self.relu(x)
84 self.relu = nn.ReLU()
105 self.relu = nn.ReLU()
113 x = self.relu(x)
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/
Dcommon_func_fp32.h34 size_t relu; member
53 … size_t in_sw_step, size_t in_kh_step, size_t in_kw_step, size_t relu, size_t relu6);
58 … size_t in_kh_step, size_t in_kw_step, size_t kernel_w, size_t relu, size_t relu6);
77 … size_t in_sh_step, size_t in_sw_step, size_t in_kh_step, size_t in_kw_step, size_t relu,
81 … int row_size, int channel, int output_h, int output_w, size_t relu, size_t relu6);
84 … int row_size, int channel, int output_h, int output_w, size_t relu, size_t relu6);
87 int in_kw_step, int channel, size_t relu, size_t relu6);
90 int in_kw_step, int channel, size_t relu, size_t relu6);
93 int in_kw_step, int channel, size_t relu, size_t relu6);
/third_party/mindspore/tests/st/networks/
Dtest_gpu_alexnet.py41 self.relu = nn.ReLU()
50 x = self.relu(x)
53 x = self.relu(x)
56 x = self.relu(x)
58 x = self.relu(x)
60 x = self.relu(x)
64 x = self.relu(x)
66 x = self.relu(x)
/third_party/mindspore/tests/ut/cpp/python_input/gtest_input/pre_activate/
Dinsert_tensor_move_for_hccl_op.py28 relu = P.ReLU() variable
47 res1 = relu(x)
53 res1 = relu(x)
59 res1 = relu(x)
108 x = relu(a)
115 x = relu(a)
129 x = relu(a)
136 x = relu(a)
/third_party/mindspore/tests/st/hook/
Dtest_hook_function.py33 self.relu = nn.ReLU()
40 x = self.relu(x)
47 self.relu = nn.ReLU()
55 x = self.relu(x)
102 self.relu = nn.ReLU()
103 self.relu.register_backward_hook(cell_hook_function)
108 x = self.relu(x)
115 self.relu = nn.ReLU()
116 self.relu.register_backward_hook(cell_hook_function)
122 x = self.relu(x)
/third_party/mindspore/tests/ut/python/pynative_mode/nn/
Dtest_activation.py24 relu = nn.ReLU()
26 output = relu.construct(input_data)
32 relu = nn.get_activation('relu')
35 output = relu.construct(input_data)
41 relu = nn.get_activation('relu')
44 output = relu.construct(input_data)
/third_party/mindspore/tests/st/pynative/parser/
Dtest_parser_tensor_assign.py36 self.relu = ReLU()
40 x = self.relu(x)
58 self.relu = ReLU()
62 x = self.relu(x)
84 self.relu = ReLU()
88 x = self.relu(x)
108 self.relu = ReLU()
113 x = self.relu(x)
/third_party/mindspore/tests/ut/python/utils/
Dtest_initializer_fuzz.py39 self.relu = nn.ReLU()
46 x = self.relu(x)
80 self.relu = nn.ReLU()
85 x = self.max_pool2d(self.relu(self.conv1(x)))
86 x = self.max_pool2d(self.relu(self.conv2(x)))
88 x = self.relu(self.fc1(x))
89 x = self.relu(self.fc2(x))
Dtest_checkparam.py35 self.relu = nn.ReLU()
40 x = self.max_pool2d(self.relu(self.conv1(x)))
41 x = self.max_pool2d(self.relu(self.conv2(x)))
43 x = self.relu(self.fc1(x))
44 x = self.relu(self.fc2(x))
/third_party/mindspore/tests/st/ops/ascend/
Dtest_relu.py29 self.relu = P.ReLU(strategy=None)
33 return self.relu(x)
38 relu = Net()
39 output = relu(Tensor(x))
/third_party/mindspore/tests/st/fl/mobile/src/
Dmodel.py55 self.relu = nn.ReLU()
61 x = self.relu(x)
64 x = self.relu(x)
68 x = self.relu(x)
70 x = self.relu(x)
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/
Ddepthwiseconv_eltwise_fusion_pass.cc42 auto relu = cnode->input(kIndex1); in MatchDepthwiseConvRelu() local
43 MS_EXCEPTION_IF_NULL(relu); in MatchDepthwiseConvRelu()
44 …if (cnode->isa<CNode>() && (IsPrimitiveCNode(relu, prim::kPrimRelu) || IsPrimitiveCNode(relu, prim… in MatchDepthwiseConvRelu()
45 std::unordered_set<AnfNodePtr> record{cnode, relu}; in MatchDepthwiseConvRelu()
/third_party/mindspore/tests/perf_test/
Dlenet.py61 self.relu = nn.ReLU()
67 x = self.relu(x)
70 x = self.relu(x)
74 x = self.relu(x)
76 x = self.relu(x)
/third_party/mindspore/tests/ut/python/model/
Dtest_lenet_core_after_exception.py36 self.relu = nn.ReLU()
41 x = self.max_pool2d(self.relu(self.conv1(x)))
42 x = self.max_pool2d(self.relu(self.conv2(x)))
44 x = self.relu(self.fc1(x))
45 x = self.relu(self.fc2(x))
Dtest_lenet.py38 self.relu = nn.ReLU()
43 x = self.max_pool2d(self.relu(self.conv1(x)))
44 x = self.max_pool2d(self.relu(self.conv2(x)))
46 x = self.relu(self.fc1(x))
47 x = self.relu(self.fc2(x))
/third_party/mindspore/tests/st/ops/ascend/test_tbe_ops/
Dtest_relu.py29 self.relu = P.ReLU()
33 return self.relu(x)
39 relu = Net()
40 output = relu(Tensor(x))
/third_party/mindspore/tests/st/ops/cpu/
Dtest_relu_op.py32 self.relu = P.ReLU()
38 return self.relu(self.x)
45 relu = NetRelu()
46 output = relu()

12345678910