mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Revert "[BE][Easy] use pathlib.Path
instead of dirname
/ ".."
/ pardir
(#129374)"
This reverts commit 0314c4c101c44d5d89b4fad9d37a012dc6f31128. Reverted https://github.com/pytorch/pytorch/pull/129374 on behalf of https://github.com/huydhn due to Sorry for reverting your change but it causes lots of internal build failures where they fail to find hipify module ([comment](https://github.com/pytorch/pytorch/pull/129374#issuecomment-2192437052))
This commit is contained in:
@ -5,13 +5,12 @@ import zipfile
|
||||
from pathlib import Path
|
||||
from typing import Set
|
||||
|
||||
import torch
|
||||
|
||||
# Use asterisk symbol so developer doesn't need to import here when they add tests for upgraders.
|
||||
from test.jit.fixtures_srcs.fixtures_src import * # noqa: F403
|
||||
|
||||
import torch
|
||||
from torch.jit.mobile import _export_operator_list, _load_for_lite_interpreter
|
||||
|
||||
|
||||
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
Reference in New Issue
Block a user