Home
last modified time | relevance | path

Searched refs:wrt_params (Results 1 – 10 of 10) sorted by relevance

/third_party/mindspore/tests/mindspore_test_framework/utils/
Dbprop_util.py30 def __init__(self, func, wrt_params, params, grad_op, sens): argument
33 self.wrt_params = wrt_params
35 if self.wrt_params and params:
45 if self.wrt_params:
82 wrt_params = False
84 wrt_params = True
88 grad_op = GradOperation(get_all=wrt_inputs, get_by_list=wrt_params, sens_param=with_sens_param)
89 grad = Bprop(func, wrt_params, params, grad_op, grads_wrt_outputs)
/third_party/mindspore/tests/st/high_grad/
Dtest_highgrad_train.py30 def __init__(self, grad, network, wrt_params=False, real_inputs_count=None): argument
35 self.wrt_params = wrt_params
37 if self.wrt_params:
42 if self.wrt_params:
48 if self.wrt_params:
/third_party/mindspore/tests/ut/python/pynative_mode/
Dtest_graph_param_cases.py32 def __init__(self, grad, network, wrt_params=False, real_inputs_count=None): argument
37 self.wrt_params = wrt_params
39 if self.wrt_params:
43 if self.wrt_params:
Dtest_multi_grad.py30 def __init__(self, grad, network, wrt_params=False, real_inputs_count=None): argument
35 self.wrt_params = wrt_params
37 if self.wrt_params:
41 if self.wrt_params:
/third_party/mindspore/tests/st/pynative/
Dtest_graph_param_transform.py30 def __init__(self, grad, network, wrt_params=False, real_inputs_count=None): argument
35 self.wrt_params = wrt_params
37 if self.wrt_params:
41 if self.wrt_params:
Dtest_pynative_layernorm_input_and_argmaxwithvalue.py27 def __init__(self, grad, network, wrt_params=False, real_inputs_count=None): argument
32 self.wrt_params = wrt_params
34 if self.wrt_params:
38 if self.wrt_params:
53 network=network, wrt_params=True, real_inputs_count=real_inputs_count)
Dtest_pynative_hook_grad.py68 def __init__(self, grad, network, wrt_params=False, real_inputs_count=None): argument
73 self.wrt_params = wrt_params
75 if self.wrt_params:
79 if self.wrt_params:
/third_party/mindspore/tests/st/auto_monad/
Dtest_auto_monad_gpu.py37 def __init__(self, grad, network, wrt_params=False, real_inputs_count=None): argument
42 self.wrt_params = wrt_params
44 if self.wrt_params:
49 if self.wrt_params:
55 if self.wrt_params:
77 network=network, wrt_params=True, real_inputs_count=real_inputs_count)
Dtest_auto_monad_mindtester.py33 def __init__(self, grad, network, wrt_params=False, real_inputs_count=None): argument
38 self.wrt_params = wrt_params
40 if self.wrt_params:
45 if self.wrt_params:
51 if self.wrt_params:
83 network=network, wrt_params=True, real_inputs_count=real_inputs_count)
/third_party/mindspore/tests/ut/python/parameter_feature/
Dtest_var_grad.py77 def __init__(self, func, wrt_params, params, grad_op, sens=None): argument
80 self.wrt_params = wrt_params
82 if self.wrt_params and params:
93 if self.wrt_params: