Home
last modified time | relevance | path

Searched refs:real_inputs_count (Results 1 – 8 of 8) sorted by relevance

/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
38 self.real_inputs_count = real_inputs_count
44 if self.real_inputs_count is None or self.sens_param is False:
46 real_inputs = inputs[:self.real_inputs_count]
47 sense_param_inputs = inputs[self.real_inputs_count:]
50 if self.real_inputs_count is None or self.sens_param is False:
52 real_inputs = inputs[:self.real_inputs_count]
53 sense_param_inputs = inputs[self.real_inputs_count:]
62 def __init__(self, network, sens_param=True, real_inputs_count=None): argument
64 network=network, real_inputs_count=real_inputs_count)
[all …]
Dtest_multi_grad.py30 def __init__(self, grad, network, wrt_params=False, real_inputs_count=None): argument
36 self.real_inputs_count = real_inputs_count
42 if self.real_inputs_count is None or self.sens_param is False:
44 real_inputs = inputs[:self.real_inputs_count]
45 sense_param_inputs = inputs[self.real_inputs_count:]
48 if self.real_inputs_count is None or self.sens_param is False:
50 real_inputs = inputs[:self.real_inputs_count]
51 sense_param_inputs = inputs[self.real_inputs_count:]
60 def __init__(self, network, sens_param=True, real_inputs_count=None): argument
62 network=network, real_inputs_count=real_inputs_count)
[all …]
/third_party/mindspore/tests/st/pynative/
Dtest_graph_param_transform.py30 def __init__(self, grad, network, wrt_params=False, real_inputs_count=None): argument
36 self.real_inputs_count = real_inputs_count
42 if self.real_inputs_count is None or self.sens_param is False:
44 real_inputs = inputs[:self.real_inputs_count]
45 sense_param_inputs = inputs[self.real_inputs_count:]
48 if self.real_inputs_count is None or self.sens_param is False:
50 real_inputs = inputs[:self.real_inputs_count]
51 sense_param_inputs = inputs[self.real_inputs_count:]
60 def __init__(self, network, sens_param=True, real_inputs_count=None): argument
62 network=network, real_inputs_count=real_inputs_count)
[all …]
Dtest_pynative_layernorm_input_and_argmaxwithvalue.py27 def __init__(self, grad, network, wrt_params=False, real_inputs_count=None): argument
33 self.real_inputs_count = real_inputs_count
39 if self.real_inputs_count is None or self.sens_param is False:
41 real_inputs = inputs[:self.real_inputs_count]
42 sense_param_inputs = inputs[self.real_inputs_count:]
44 if self.real_inputs_count is None or self.sens_param is False:
46 real_inputs = inputs[:self.real_inputs_count]
47 sense_param_inputs = inputs[self.real_inputs_count:]
51 def __init__(self, network, sens_param=True, real_inputs_count=None): argument
53 network=network, wrt_params=True, real_inputs_count=real_inputs_count)
[all …]
Dtest_pynative_hook_grad.py68 def __init__(self, grad, network, wrt_params=False, real_inputs_count=None): argument
74 self.real_inputs_count = real_inputs_count
80 if self.real_inputs_count is None or self.sens_param is False:
82 real_inputs = inputs[:self.real_inputs_count]
83 sense_param_inputs = inputs[self.real_inputs_count:]
85 if self.real_inputs_count is None or self.sens_param is False:
87 real_inputs = inputs[:self.real_inputs_count]
88 sense_param_inputs = inputs[self.real_inputs_count:]
92 def __init__(self, network, sens_param=True, real_inputs_count=None): argument
94 network=network, real_inputs_count=real_inputs_count)
/third_party/mindspore/tests/st/high_grad/
Dtest_highgrad_train.py30 def __init__(self, grad, network, wrt_params=False, real_inputs_count=None): argument
36 self.real_inputs_count = real_inputs_count
41 if self.real_inputs_count is None or self.sens_param is False:
46 real_inputs = inputs[:self.real_inputs_count]
47 sense_param_inputs = inputs[self.real_inputs_count:]
58 def __init__(self, network, sens_param=True, real_inputs_count=None): argument
60 network=network, real_inputs_count=real_inputs_count)
/third_party/mindspore/tests/st/auto_monad/
Dtest_auto_monad_mindtester.py33 def __init__(self, grad, network, wrt_params=False, real_inputs_count=None): argument
39 self.real_inputs_count = real_inputs_count
44 if self.real_inputs_count is None or self.sens_param is False:
49 real_inputs = inputs[:self.real_inputs_count]
50 sense_param_inputs = inputs[self.real_inputs_count:]
61 def __init__(self, network, sens_param=True, real_inputs_count=None): argument
63 network=network, real_inputs_count=real_inputs_count)
71 def __init__(self, network, sens_param=True, real_inputs_count=None): argument
73 network=network, real_inputs_count=real_inputs_count)
81 def __init__(self, network, sens_param=True, real_inputs_count=None): argument
[all …]
Dtest_auto_monad_gpu.py37 def __init__(self, grad, network, wrt_params=False, real_inputs_count=None): argument
43 self.real_inputs_count = real_inputs_count
48 if self.real_inputs_count is None or self.sens_param is False:
53 real_inputs = inputs[:self.real_inputs_count]
54 sense_param_inputs = inputs[self.real_inputs_count:]
65 def __init__(self, network, sens_param=True, real_inputs_count=None): argument
67 network=network, real_inputs_count=real_inputs_count)
75 def __init__(self, network, sens_param=True, real_inputs_count=None): argument
77 network=network, wrt_params=True, real_inputs_count=real_inputs_count)