Revert "[BE] enable UFMT for torch/nn/functional.py (#128592)"

This reverts commit f6e6e55fa7d883a89ba99584f8632c260519ba73.

Reverted https://github.com/pytorch/pytorch/pull/128592 on behalf of https://github.com/fbgheith due to breaking internal builds ([comment](https://github.com/pytorch/pytorch/pull/128592#issuecomment-2181783936))
This commit is contained in:
PyTorch MergeBot
2024-06-21 00:44:16 +00:00
parent 9c929f6ce9
commit cc8193c707
18 changed files with 494 additions and 1362 deletions

View File

@ -215,12 +215,7 @@ def _validate_not_a_forked_repo(repo_owner, repo_name, ref):
def _get_cache_or_reload(
github,
force_reload,
trust_repo,
calling_fn,
verbose=True,
skip_validation=False,
github, force_reload, trust_repo, calling_fn, verbose=True, skip_validation=False
):
# Setup hub_dir to save downloaded files
hub_dir = get_dir()
@ -299,11 +294,7 @@ def _get_cache_or_reload(
def _check_repo_is_trusted(
repo_owner,
repo_name,
owner_name_branch,
trust_repo,
calling_fn="load",
repo_owner, repo_name, owner_name_branch, trust_repo, calling_fn="load"
):
hub_dir = get_dir()
filepath = os.path.join(hub_dir, "trusted_list")
@ -420,11 +411,7 @@ def set_dir(d):
def list(
github,
force_reload=False,
skip_validation=False,
trust_repo=None,
verbose=True,
github, force_reload=False, skip_validation=False, trust_repo=None, verbose=True
):
r"""
List all callable entrypoints available in the repo specified by ``github``.
@ -677,10 +664,7 @@ def _load_local(hubconf_dir, model, *args, **kwargs):
def download_url_to_file(
url: str,
dst: str,
hash_prefix: Optional[str] = None,
progress: bool = True,
url: str, dst: str, hash_prefix: Optional[str] = None, progress: bool = True
) -> None:
r"""Download object at the given URL to a local path.