Home
last modified time | relevance | path

Searched refs:call_args (Results 1 – 25 of 85) sorted by relevance

1234

/external/tensorflow/tensorflow/python/keras/engine/
Dnode.py55 call_args=None, argument
58 call_args = [] if call_args is None else call_args
63 self.is_input = not call_args and not call_kwargs
71 call_args = nest.map_structure(lambda t: t, call_args)
74 self.call_args = call_args
78 self._flat_arguments = nest.flatten((self.call_args, self.call_kwargs))
81 self.call_args) == 1 and tensor_util.is_tf_type(self.call_args[0]))
157 args, kwargs = nest.pack_sequence_as((self.call_args, self.call_kwargs),
164 args, kwargs = self.call_args, self.call_kwargs
234 return self.call_args[0]
[all …]
Dnode_test.py60 node_a = node_module.Node(layer=dense, call_args=(a,), outputs=a_2)
62 node_b = node_module.Node(layer=dense, call_args=(b,), outputs=b_2)
67 self.assertEqual(node_a.call_args, (a,))
89 node_module.Node(layer=dense, call_args=(a,), outputs=a_2)
91 node_module.Node(layer=dense, call_args=(b,), outputs=b_2)
95 node_module.Node(layer=concat_layer, call_args=([a_2, b_2],),
129 call_args=([a, b], arg_2, arg_3),
136 self.assertEqual(([a, b], arg_2, arg_3), node.call_args)
/external/toolchain-utils/crosperf/
Dexperiment_runner_unittest.py315 self.assertEqual(len(mock_emailer.call_args), 2)
316 self.assertEqual(mock_emailer.call_args[0],
321 self.assertTrue(isinstance(mock_emailer.call_args[1], dict))
322 self.assertEqual(len(mock_emailer.call_args[1]), 2)
323 self.assertTrue('attachments' in mock_emailer.call_args[1].keys())
324 self.assertEqual(mock_emailer.call_args[1]['msg_type'], 'html')
345 self.assertEqual(len(mock_emailer.call_args), 2)
346 self.assertEqual(mock_emailer.call_args[0],
353 self.assertTrue(isinstance(mock_emailer.call_args[1], dict))
354 self.assertEqual(len(mock_emailer.call_args[1]), 2)
[all …]
Dmachine_manager_unittest.py207 image_call_args_str = mock_run_cmd.call_args[0][0]
217 self.assertEqual(mock_run_croscmd.call_args[0][0], 'reboot && exit')
261 cmd_str = mock_cros_runcmd.call_args[0][0]
263 args_dict = mock_cros_runcmd.call_args[1]
771 call_args = mock_run_cmd.call_args_list[0]
772 self.assertEqual(call_args[0][0], 'cat /proc/meminfo')
773 args_dict = call_args[1]
791 call_args = mock_run_cmd.call_args_list[0]
792 self.assertEqual(call_args[0][0], 'cat /proc/cpuinfo')
793 args_dict = call_args[1]
Dgenerate_report_unittest.py137 ctors = [ctor for ctor, _ in mock_run_actions.call_args[0][0]]
150 ctors = [ctor for ctor, _ in mock_run_actions.call_args[0][0]]
/external/tensorflow/tensorflow/python/keras/utils/
Dtf_inspect.py279 call_args = named.copy()
283 remaining_positionals = [arg for arg in argspec.args if arg not in call_args]
284 call_args.update(dict(zip(remaining_positionals, positional)))
288 if arg not in call_args:
289 call_args[arg] = value
292 if k not in call_args:
293 call_args[k] = v
294 return call_args
/external/tensorflow/tensorflow/python/util/
Dtf_inspect.py293 call_args = named.copy()
297 remaining_positionals = [arg for arg in argspec.args if arg not in call_args]
298 call_args.update(dict(zip(remaining_positionals, positional)))
302 if arg not in call_args:
303 call_args[arg] = value
306 if k not in call_args:
307 call_args[k] = v
308 return call_args
Ddeprecation_test.py45 self.assertRegex(mock_warning.call_args[0][1], r"deprecation_test\.py:")
72 self.assertRegex(mock_warning.call_args[0][1], r"deprecation_test\.py:")
238 (args, _) = mock_warning.call_args
280 (args, _) = mock_warning.call_args
306 (args, _) = mock_warning.call_args
332 (args, _) = mock_warning.call_args
377 (args, _) = mock_warning.call_args
407 (args, _) = mock_warning.call_args
437 (args, _) = mock_warning.call_args
492 (args, _) = mock_warning.call_args
[all …]
Dtf_should_use_test.py51 msg = '\n'.join(error.call_args[0])
67 msg = '\n'.join(error.call_args[0])
106 msg = '\n'.join(error.call_args[0])
125 msg = '\n'.join(error.call_args[0])
/external/tensorflow/tensorflow/python/autograph/converters/
Ddirectives.py69 call_args = tf_inspect.getcallargs(function, *args, **kwds)
77 for k in call_args:
79 and call_args[k] not in args
80 and call_args[k] is not directives.UNSPECIFIED):
85 [call_args[k] for k in unexpected_defaults]),
87 return {k: v for k, v in call_args.items() if v is not directives.UNSPECIFIED}
/external/grpc-grpc/test/cpp/microbenchmarks/
Dbm_call_create.cc546 grpc_call_element_args call_args; in BM_IsolatedFilter() local
547 call_args.call_stack = call_stack; in BM_IsolatedFilter()
548 call_args.server_transport_data = nullptr; in BM_IsolatedFilter()
549 call_args.context = nullptr; in BM_IsolatedFilter()
550 call_args.path = method; in BM_IsolatedFilter()
551 call_args.start_time = start_time; in BM_IsolatedFilter()
552 call_args.deadline = deadline; in BM_IsolatedFilter()
554 call_args.arena = gpr_arena_create(kArenaSize); in BM_IsolatedFilter()
558 grpc_call_stack_init(channel_stack, 1, DoNothing, nullptr, &call_args)); in BM_IsolatedFilter()
565 gpr_arena_destroy(call_args.arena); in BM_IsolatedFilter()
[all …]
/external/pdfium/testing/tools/coverage/
Dcoverage_report.py172 call_args = ['ninja']
174 call_args += ['-j', '250']
175 call_args += ['-C', self.build_directory]
176 call_args += self.build_targets
177 return self.call(call_args, dry_run=self.dry_run) == 0
/external/oss-fuzz/infra/cifuzz/
Dclusterfuzz_deployment_test.py80 call_args, _ = mocked_download_and_unpack_zip.call_args
81 self.assertEqual(call_args, (expected_url, expected_corpus_dir))
Dcoverage_test.py54 (url,), _ = mocked_get_json_from_url.call_args
82 (url,), _ = mocked_get_json_from_url.call_args
/external/python/cpython3/Lib/test/
Dtest_script_helper.py50 popen_command = mock_popen.call_args[0][0]
67 popen_command = mock_popen.call_args[0][0]
111 check_call_command = mock_check_call.call_args[0][0]
/external/tensorflow/tensorflow/python/keras/mixed_precision/
Ddevice_compatibility_check_test.py48 self.assertRegex(mock_warn.call_args[0][0], expected_regex)
51 self.assertRegex(mock_info.call_args[0][0], expected_regex)
/external/python/mock/mock/tests/
Dtestmock.py81 self.assertEqual(mock.call_args, None,
242 self.assertEqual(mock.call_args, None, "call_args not reset")
285 self.assertEqual(mock.call_args, ((sentinel.Arg,), {}),
287 self.assertEqual(mock.call_args.args, (sentinel.Arg,),
289 self.assertEqual(mock.call_args.kwargs, {},
300 self.assertEqual(mock.call_args,
322 self.assertEqual(mock.call_args,
324 self.assertEqual(mock.call_args.args, (sentinel.Arg,))
325 self.assertEqual(mock.call_args.kwargs, {"kw": sentinel.Kwarg})
329 self.assertFalse(mock.call_args == "a long sequence")
[all …]
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmock.py62 self.assertEqual(mock.call_args, None,
224 self.assertEqual(mock.call_args, None, "call_args not reset")
267 self.assertEqual(mock.call_args, ((sentinel.Arg,), {}),
269 self.assertEqual(mock.call_args.args, (sentinel.Arg,),
271 self.assertEqual(mock.call_args.kwargs, {},
282 self.assertEqual(mock.call_args,
304 self.assertEqual(mock.call_args,
306 self.assertEqual(mock.call_args.args, (sentinel.Arg,))
307 self.assertEqual(mock.call_args.kwargs, {"kw": sentinel.Kwarg})
311 self.assertFalse(mock.call_args == "a long sequence")
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/ext/filters/client_channel/
Ddynamic_filters.cc42 const grpc_call_element_args call_args = { in Call() local
53 this, &call_args); in Call()
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Ddependency_manager_unittest.py389 self.assertFalse(cs_path_mock.call_args)
411 self.assertFalse(cs_path_mock.call_args)
426 self.assertFalse(cs_path_mock.call_args)
434 self.assertFalse(cs_path_mock.call_args)
455 self.assertFalse(cs_path_mock.call_args)
/external/python/cpython2/Lib/test/
D_mock_backport.py223 funcopy.call_args = None
502 call_args = _delegating_property('call_args') variable in NonCallableMock
531 self.call_args = None
734 call_args = self.call_args
735 if len(call_args) == 3:
736 call_args = call_args[1:]
737 actual_string = self._format_mock_call_signature(*call_args)
777 if self.call_args is None:
785 actual = self._call_matcher(self.call_args)
921 self.call_args = _call
/external/pdfium/third_party/pymock/
Dmock.py318 funcopy.call_args = None
590 call_args = _delegating_property('call_args') variable in NonCallableMock
615 self.call_args = None
816 call_args = self.call_args
817 if len(call_args) == 3:
818 call_args = call_args[1:]
819 actual_string = self._format_mock_call_signature(*call_args)
829 if self.call_args is None:
833 if self.call_args != (args, kwargs):
962 self.call_args = _Call((args, kwargs), two=True)
/external/tensorflow/tensorflow/python/eager/
Dfunction_test.py3696 call_args=lambda: (1,),
3701 call_args=lambda: (1, 2),
3706 call_args=lambda: (1, 2, 3),
3712 call_args=lambda: (1, 2),
3717 call_args=lambda: (1, 2),
3723 call_args=lambda: ({
3732 call_args=lambda: (ragged_factory_ops.constant([[[1]]]),),
3737 call_args=lambda: (ragged_factory_ops.constant([[1.0]]),),
3745 call_args=lambda: (constant_op.constant(1),),
3751 call_args=lambda: (constant_op.constant(1),),
[all …]
/external/python/apitools/apitools/base/py/
Dtransfer_test.py119 received_request = make_request.call_args[0][1]
135 received_request = make_request.call_args[0][1]
163 received_request = make_request.call_args[0][1]
189 received_request = make_request.call_args[0][1]
/external/python/setuptools/setuptools/tests/
Dtest_build_clib.py49 assert [['example.c', 'global.h', 'example.h']] in mock_newer.call_args[0]

1234