Home
last modified time | relevance | path

Searched refs:run_name (Results 1 – 24 of 24) sorted by relevance

/external/python/cpython3/Lib/
Drunpy.py196 run_name=None, alter_sys=False): argument
202 if run_name is None:
203 run_name = mod_name
205 return _run_module_code(code, init_globals, run_name, mod_spec)
208 return _run_code(code, {}, init_globals, run_name, mod_spec)
229 def _get_code_from_file(run_name, fname): argument
239 def run_path(path_name, init_globals=None, run_name=None): argument
249 if run_name is None:
250 run_name = "<run_path>"
251 pkg_name = run_name.rpartition(".")[0]
[all …]
/external/python/cpython2/Lib/
Drunpy.py177 run_name=None, alter_sys=False): argument
183 if run_name is None:
184 run_name = mod_name
187 return _run_module_code(code, init_globals, run_name,
191 return _run_code(code, {}, init_globals, run_name,
235 def run_path(path_name, init_globals=None, run_name=None): argument
245 if run_name is None:
246 run_name = "<run_path>"
252 return _run_module_code(code, init_globals, run_name, path_name)
272 with _TempModule(run_name) as temp_module, \
[all …]
/external/python/cpython2/Lib/test/
Dtest_cmd_line_script.py133 zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
134 self._check_script(zip_name, run_name, zip_name, '')
140 zip_name, run_name = make_zip_script(script_dir, 'test_zip', compiled_name)
141 self._check_script(zip_name, run_name, zip_name, '')
146 zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
160 zip_name, run_name = _make_test_zip_pkg(script_dir, 'test_zip', 'test_pkg', 'script')
162 self._check_script(launch_name, run_name, run_name, 'test_pkg')
166 … zip_name, run_name = _make_test_zip_pkg(script_dir, 'test_zip', 'test_pkg', 'script', depth=2)
168 self._check_script(launch_name, run_name, run_name, 'test_pkg.test_pkg')
Dtest_zipimport_support.py82 zip_name, run_name = make_zip_script(d, 'test_zip',
118 zip_name, run_name = make_zip_script(d, 'test_zip',
213 zip_name, run_name = make_zip_script(d, "test_zip",
216 expected = pattern % (run_name, "__main__.Test")
237 zip_name, run_name = make_zip_script(d, "test_zip",
242 self.assertIn(run_name, data)
Dtest_runpy.py231 def _check_relative_imports(self, depth, run_name=None): argument
243 d1 = run_module(mod_name, run_name=run_name) # Read from source
253 d2 = run_module(mod_name, run_name=run_name) # Read from bytecode
Dtest_tools.py439 runpy.run_path(script, run_name="__main__")
/external/python/cpython3/Lib/test/
Dtest_runpy.py126 run_name = expected_ns["__name__"]
128 saved_mod = sys.modules.get(run_name, sentinel)
133 self.assertIs(sys.modules.get(run_name, sentinel), saved_mod)
141 self.assertIs(sys.modules.get(run_name, sentinel), saved_mod)
391 def _check_relative_imports(self, depth, run_name=None): argument
399 if run_name is None:
402 expected_name = run_name
407 d1 = run_module(mod_name, run_name=run_name) # Read from source
421 d2 = run_module(mod_name, run_name=run_name) # Read from bytecode
536 run_name = "And now for something completely different"
[all …]
Dtest_zipimport_support.py84 zip_name, run_name = make_zip_script(d, 'test_zip',
123 zip_name, run_name = make_zip_script(d, 'test_zip',
206 zip_name, run_name = make_zip_script(d, "test_zip",
209 expected = pattern % (run_name, "__main__.Test")
231 zip_name, run_name = make_zip_script(d, "test_zip",
237 self.assertIn(os.path.normcase(run_name.encode('utf-8')), data)
Dtest_cmd_line_script.py266 zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
267 self._check_script(zip_name, run_name, zip_name, zip_name, '',
274 zip_name, run_name = make_zip_script(script_dir, 'test_zip', compiled_name)
275 self._check_script(zip_name, run_name, zip_name, zip_name, '',
281 zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
297 zip_name, run_name = _make_test_zip_pkg(script_dir, 'test_zip', 'test_pkg', 'script')
299 self._check_script(launch_name, run_name, run_name,
304 … zip_name, run_name = _make_test_zip_pkg(script_dir, 'test_zip', 'test_pkg', 'script', depth=2)
306 self._check_script(launch_name, run_name, run_name,
Dtest_multiprocessing_main_handling.py216 zip_name, run_name = make_zip_script(script_dir, 'test_zip', script_name)
225 zip_name, run_name = make_zip_script(script_dir, 'test_zip', compiled_name)
239 zip_name, run_name = _make_test_zip_pkg(script_dir, 'test_zip', 'test_pkg', 'script')
245 … zip_name, run_name = _make_test_zip_pkg(script_dir, 'test_zip', 'test_pkg', 'script', depth=2)
/external/tensorflow/tensorflow/contrib/summary/
Dsummary_ops.py219 run_name=None, argument
251 if run_name is None:
252 run_name = time.strftime("%H:%M:%S", time.localtime(time.time()))
257 run_name = _cleanse_string("run_name", _RUN_NAME_PATTERNS, run_name)
264 run_name=run_name,
Dsummary_test_internal.py43 run_name='run',
Dsummary_test_util.py47 run_name='run',
Dsummary_ops_test.py207 self.create_db_writer(run_name='\0')
/external/tensorflow/tensorflow/contrib/tensorboard/db/
Dloader.cc52 string run_name; in main() local
58 Flag("run_name", &run_name, "The DB run_name value"), in main()
87 TF_CHECK_OK(CreateSummaryDbWriter(db, experiment_name, run_name, user_name, in main()
Dsummary_db_writer.cc406 const string& run_name, const string& user_name) in RunMetadata() argument
409 run_name_{run_name},
415 const string& run_name() { return run_name_; } in run_name() function in tensorflow::__anon9bd2ce1c0111::RunMetadata
977 const string& run_name, const string& user_name) in SummaryDbWriter() argument
982 meta_{&ids_, experiment_name, run_name, user_name},
1087 meta_.user_name(), "/", meta_.experiment_name(), "/", meta_.run_name(), in Write()
1101 meta_.experiment_name(), "/", meta_.run_name(), "/", value->tag(), in MigrateEvent()
1109 meta_.experiment_name(), "/", meta_.run_name(), "/__graph__@", in MigrateEvent()
1241 const string& run_name, const string& user_name, in CreateSummaryDbWriter() argument
1243 *result = new SummaryDbWriter(env, db, experiment_name, run_name, user_name); in CreateSummaryDbWriter()
Dsummary_db_writer.h37 const string& run_name, const string& user_name,
/external/python/cpython3/Doc/library/
Drunpy.rst30 .. function:: run_module(mod_name, init_globals=None, run_name=None, alter_sys=False)
58 ``__name__`` is set to *run_name* if this optional argument is not
64 ``mod_name + '.__main__``, never *run_name*).
96 .. function:: run_path(file_path, init_globals=None, run_name=None)
127 ``__name__`` is set to *run_name* if this optional argument is not
/external/python/cpython2/Doc/library/
Drunpy.rst23 .. function:: run_module(mod_name, init_globals=None, run_name=None, alter_sys=False)
49 ``__name__`` is set to *run_name* if this optional argument is not
84 .. function:: run_path(file_path, init_globals=None, run_name=None)
114 ``__name__`` is set to *run_name* if this optional argument is not
/external/python/cpython3/Lib/multiprocessing/
Dspawn.py248 run_name="__mp_main__",
277 run_name="__mp_main__")
/external/tensorflow/tensorflow/core/kernels/
Dsummary_kernels.cc71 const string run_name = tmp->scalar<string>()(); in Compute() local
80 [db_uri, experiment_name, run_name, user_name, in Compute()
88 db, experiment_name, run_name, user_name, ctx->env(), s)); in Compute()
/external/python/cpython3/Lib/test/test_tools/
Dtest_fixcid.py89 runpy.run_path(script, run_name="__main__")
/external/lisa/tools/scripts/
Dframestats_analysis.py61 run_name = os.path.basename(os.path.normpath(stats_dir))
/external/tensorflow/tensorflow/go/op/
Dwrappers.go186 … *Scope, writer tf.Output, db_uri tf.Output, experiment_name tf.Output, run_name tf.Output, user_n…
193 writer, db_uri, experiment_name, run_name, user_name,