/external/chromium-trace/catapult/common/py_utils/py_utils/refactor_util/ |
D | move.py | 104 def _BaseDir(module_path): argument 105 if not os.path.isdir(module_path): 106 module_path = os.path.dirname(module_path) 108 while '__init__.py' in os.listdir(module_path): 109 module_path = os.path.dirname(module_path) 111 return module_path 114 def _ModulePath(module_path): argument 115 if os.path.split(module_path)[1] == '__init__.py': 116 module_path = os.path.dirname(module_path) 117 rel_path = os.path.relpath(module_path, _BaseDir(module_path))
|
/external/rust/android-crates-io/crates/tracing-attributes/tests/ |
D | targets.rs | 14 pub const MODULE_PATH: &str = module_path!(); constant 29 .with_target(module_path!()), in default_targets() 34 .with_target(module_path!()), in default_targets() 39 .with_target(module_path!()), in default_targets() 44 .with_target(my_mod::MODULE_PATH), in default_targets() 49 .with_target(my_mod::MODULE_PATH), in default_targets() 54 .with_target(my_mod::MODULE_PATH), in default_targets()
|
/external/rust/android-crates-io/crates/tracing/src/ |
D | macros.rs | 90 target: module_path!(), 99 target: module_path!(), 118 target: module_path!(), 126 target: module_path!(), 182 target: module_path!(), 205 target: module_path!(), 263 target: module_path!(), 286 target: module_path!(), 344 target: module_path!(), 367 target: module_path!(), [all …]
|
/external/pytorch/torch/ao/quantization/fx/ |
D | qconfig_mapping_utils.py | 129 module_path, module_type = node_name_to_scope[node.name] 131 qconfig_mapping, module_type, module_path, function_qconfig 134 cur_object_type_idx = submodule_to_object_type_to_cur_idx[module_path][ 137 submodule_to_object_type_to_cur_idx[module_path][node.target] += 1 139 qconfig_mapping, module_path, node.target, cur_object_type_idx, qconfig 146 module_path, module_type = node_name_to_scope[node.name] 151 qconfig_mapping, node.target, module_path, global_qconfig 156 qconfig_mapping, module_type, module_path, qconfig 172 module_path, module_type = node_name_to_scope[node.name] 173 # Note: for call_module, the module_path is the current module's name. [all …]
|
/external/bcc/src/lua/bcc/ |
D | sym.lua | 37 local module_path 43 module_path = ffi.string(sym[0].module) 46 symname, module_path}) 50 module_path = ffi.string(sym[0].module) 52 return module_path, new_addr
|
/external/rust/android-crates-io/crates/env_logger/src/fmt/ |
D | mod.rs | 240 module_path: built.format_module_path, in build() 280 module_path: bool, field 373 if !self.module_path { in write_module_path() 377 if let Some(module_path) = record.module_path() { in write_module_path() 378 self.write_header_value(module_path) in write_module_path() 481 .module_path(Some("test::path")) in write_target() 502 module_path: true, in format_with_header() 524 module_path: false, in format_no_header() 546 module_path: true, in format_indent_spaces() 568 module_path: true, in format_indent_zero_spaces() [all …]
|
/external/tensorflow/tensorflow/cc/experimental/libtf/tests/ |
D | runtime_test.cc | 32 const std::string module_path = in TEST_P() local 36 runtime.Load(String(module_path.c_str()))); in TEST_P() 54 const std::string module_path = in TEST_P() local 57 runtime.Load(String(module_path.c_str()))); in TEST_P() 77 const std::string module_path = in TEST_P() local 80 runtime.Load(String(module_path.c_str()))); in TEST_P()
|
/external/rust/android-crates-io/crates/android_logger/src/ |
D | lib.rs | 176 // Temporary storage for null-terminating record.module_path() if it's needed. in log() 182 let module_path = record.module_path().unwrap_or_default(); in log() localVariable 186 } else if module_path.len() < tag_bytes.len() { in log() 187 fill_tag_bytes(&mut tag_bytes, module_path.as_bytes()) in log() 190 _owned_tag = CString::new(module_path.as_bytes()) in log() 191 .expect("record.module_path() shouldn't contain nullbytes"); in log() 205 format_args!("{}: {}", module_path, *record.args()), in log()
|
/external/protobuf/python/docs/ |
D | generate_docs.py | 133 for module_path in SOURCE_DIR.glob("**/*.py"): 135 package_path = module_path.parent.relative_to(PYTHON_DIR) 138 module_name = module_path.stem 141 module_name = package_name + "." + module_path.stem 149 elif any(ignored in module_path.stem for ignored in IGNORED_MODULES): 152 if module_path.name == "__init__.py":
|
/external/cronet/tot/third_party/protobuf/python/docs/ |
D | generate_docs.py | 133 for module_path in SOURCE_DIR.glob("**/*.py"): 135 package_path = module_path.parent.relative_to(PYTHON_DIR) 138 module_name = module_path.stem 141 module_name = package_name + "." + module_path.stem 149 elif any(ignored in module_path.stem for ignored in IGNORED_MODULES): 152 if module_path.name == "__init__.py":
|
/external/cronet/stable/third_party/protobuf/python/docs/ |
D | generate_docs.py | 133 for module_path in SOURCE_DIR.glob("**/*.py"): 135 package_path = module_path.parent.relative_to(PYTHON_DIR) 138 module_name = module_path.stem 141 module_name = package_name + "." + module_path.stem 149 elif any(ignored in module_path.stem for ignored in IGNORED_MODULES): 152 if module_path.name == "__init__.py":
|
/external/pytorch/torch/distributed/_shard/ |
D | api.py | 261 module_path, _, param_name = name.rpartition(".") 264 if module_path.startswith(sharder_path): 272 mod = module.get_submodule(module_path) 292 for module_path, output_spec in plan.output_plan.items(): 294 mod = module.get_submodule(module_path) 298 f"Only `ShardingSpec` is supported as output_plan for '{module_path}'" 304 for module_path in plan.return_local_tensor: 305 mod = module.get_submodule(module_path)
|
/external/pytorch/torch/distributed/tensor/parallel/ |
D | ddp.py | 31 parent_module, module_path, t = item 32 assert hasattr(parent_module, module_path) 33 delattr(parent_module, module_path) 34 setattr(parent_module, module_path, t)
|
/external/chromium-trace/catapult/devil/bin/ |
D | generate_md_docs | 28 module_path = os.path.join(_DEVIL_PATH, k) 33 sys.executable, _MARKDOWN_SCRIPT, module_path, '--module-link', 37 logging.error('Failed to update doc for %s' % module_path)
|
/external/pytorch/benchmarks/instruction_counts/core/ |
D | expand.py | 57 module_path = os.path.join(model_root, f"torchscript_{name}.py") 60 if os.path.exists(module_path): 63 raise ValueError(f"File {module_path} already exists.") 65 with open(module_path, "w") as f: 70 f"torchscript__{name}", module_path 87 os.remove(module_path)
|
/external/chromium-trace/catapult/devil/devil/utils/ |
D | markdown.py | 148 def load_module_from_path(module_path): argument 154 module_path: An absolute path to a python module. 158 module_names = [os.path.splitext(os.path.basename(module_path))[0]] 159 d = os.path.dirname(module_path) 312 parser.add_argument('module_path', type=os.path.realpath) 316 load_module_from_path(args.module_path), module_link=args.module_link)
|
/external/libxml2/ |
D | testModule.c | 26 #define MODULE_PATH "." macro 32 #define MODULE_PATH ".libs" macro 54 (const xmlChar*)MODULE_PATH, in main()
|
/external/cronet/stable/third_party/libxml/src/ |
D | testModule.c | 26 #define MODULE_PATH "." macro 32 #define MODULE_PATH ".libs" macro 54 (const xmlChar*)MODULE_PATH, in main()
|
/external/cronet/tot/third_party/libxml/src/ |
D | testModule.c | 26 #define MODULE_PATH "." macro 32 #define MODULE_PATH ".libs" macro 54 (const xmlChar*)MODULE_PATH, in main()
|
/external/rust/android-crates-io/crates/tracing-subscriber/tests/layer_filters/ |
D | targets.rs | 12 pub(super) const MODULE_PATH: &str = module_path!(); in log_events() constant 22 .with_target(inner::MODULE_PATH, LevelFilter::WARN); in log_events()
|
/external/executorch/exir/ |
D | graph.py | 62 module_path, _, name = qualified_name.rpartition(".") 65 submod: torch.nn.Module = mod.get_submodule(module_path) 67 warnings.warn(f"Failed to fetch module {module_path}!", stacklevel=1)
|
/external/python/cpython3/Lib/test/test_importlib/ |
D | test_pkg_import.py | 33 self.module_path = os.path.join(self.package_dir, 'foo.py') 42 compiled_path = cache_from_source(self.module_path) 45 with open(self.module_path, 'w', encoding='utf-8') as f:
|
/external/pytorch/torch/fx/ |
D | proxy.py | 41 # scope for this would be (module_path="sub", module_type=Sub) 50 # scope for this would be (module_path="", None) 57 def __init__(self, module_path: str, module_type: Any): 59 self.module_path = module_path 79 scope.module_path = current_scope.module_path 88 self._scope.module_path = self._prev_scope.module_path 152 self.scope.module_path,
|
/external/cronet/stable/components/metrics/call_stacks/ |
D | call_stack_profile_builder_unittest.cc | 89 base::FilePath module_path(L"c:\\some\\path\\to\\chrome.exe"); in TEST() local 92 base::FilePath module_path("/some/path/to/chrome"); in TEST() local 98 module1.set_debug_basename(module_path); in TEST() 104 module2.set_debug_basename(module_path); in TEST() 110 module3.set_debug_basename(module_path); in TEST() 296 base::FilePath module_path(L"c:\\some\\path\\to\\chrome.exe"); in TEST() local 299 base::FilePath module_path("/some/path/to/chrome"); in TEST() local 303 module2.set_debug_basename(module_path); in TEST() 348 base::FilePath module_path(L"c:\\some\\path\\to\\chrome.exe"); in TEST() local 351 base::FilePath module_path("/some/path/to/chrome"); in TEST() local [all …]
|
/external/cronet/tot/components/metrics/call_stacks/ |
D | call_stack_profile_builder_unittest.cc | 89 base::FilePath module_path(L"c:\\some\\path\\to\\chrome.exe"); in TEST() local 92 base::FilePath module_path("/some/path/to/chrome"); in TEST() local 98 module1.set_debug_basename(module_path); in TEST() 104 module2.set_debug_basename(module_path); in TEST() 110 module3.set_debug_basename(module_path); in TEST() 296 base::FilePath module_path(L"c:\\some\\path\\to\\chrome.exe"); in TEST() local 299 base::FilePath module_path("/some/path/to/chrome"); in TEST() local 303 module2.set_debug_basename(module_path); in TEST() 348 base::FilePath module_path(L"c:\\some\\path\\to\\chrome.exe"); in TEST() local 351 base::FilePath module_path("/some/path/to/chrome"); in TEST() local [all …]
|