Home
last modified time | relevance | path

Searched refs:import_alias (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/tools/compatibility/
Dast_edits.py631 for import_alias in node.names:
632 all_import_components = six.ensure_str(import_alias.name).split(".")
642 import_alias.name, import_rename_spec):
647 import_alias.name[len(import_component):])
654 new_asname = import_alias.asname
655 if not new_asname and "." not in import_alias.name:
656 new_asname = import_alias.name
664 full_import = (import_alias.name, import_alias.asname)
691 (new_line_node, import_alias.name))
697 new_aliases.append(import_alias) # no change needed
[all …]
Dtf_upgrade_v2.py84 for import_alias in node.names:
86 if (import_alias.name == "tensorflow.compat.v1" and
87 import_alias.asname == "tf"):
88 import_alias.name = "tensorflow"
/external/python/cpython2/Python/
Dast.c2562 alias_ty import_alias = alias_for_import_name(c, CHILD(n, i), 1); in ast_for_import_stmt() local
2563 if (!import_alias) in ast_for_import_stmt()
2565 asdl_seq_SET(aliases, i / 2, import_alias); in ast_for_import_stmt()
2622 alias_ty import_alias = alias_for_import_name(c, n, 1); in ast_for_import_stmt() local
2623 if (!import_alias) in ast_for_import_stmt()
2625 asdl_seq_SET(aliases, 0, import_alias); in ast_for_import_stmt()
2629 alias_ty import_alias = alias_for_import_name(c, CHILD(n, i), 1); in ast_for_import_stmt() local
2630 if (!import_alias) in ast_for_import_stmt()
2632 asdl_seq_SET(aliases, i / 2, import_alias); in ast_for_import_stmt()
/external/python/cpython3/Python/
Dast.c3607 alias_ty import_alias = alias_for_import_name(c, CHILD(n, i), 1); in ast_for_import_stmt() local
3608 if (!import_alias) in ast_for_import_stmt()
3610 asdl_seq_SET(aliases, i / 2, import_alias); in ast_for_import_stmt()
3675 alias_ty import_alias = alias_for_import_name(c, n, 1); in ast_for_import_stmt() local
3676 if (!import_alias) in ast_for_import_stmt()
3678 asdl_seq_SET(aliases, 0, import_alias); in ast_for_import_stmt()
3682 alias_ty import_alias = alias_for_import_name(c, CHILD(n, i), 1); in ast_for_import_stmt() local
3683 if (!import_alias) in ast_for_import_stmt()
3685 asdl_seq_SET(aliases, i / 2, import_alias); in ast_for_import_stmt()