Unverified Commit 986ac03e authored by Michael Benayoun's avatar Michael Benayoun Committed by GitHub
Browse files

changed modeling_fx_utils.py to utils/fx.py for clarity (#12326)


Co-authored-by: default avatarMichael Benayoun <michael@huggingface.co>
parent 941b4442
...@@ -11,7 +11,7 @@ from torch.fx.node import Argument ...@@ -11,7 +11,7 @@ from torch.fx.node import Argument
from transformers.file_utils import TORCH_FX_REQUIRED_VERSION, importlib_metadata, is_torch_fx_available from transformers.file_utils import TORCH_FX_REQUIRED_VERSION, importlib_metadata, is_torch_fx_available
from . import ( from .. import (
MODEL_FOR_CAUSAL_LM_MAPPING, MODEL_FOR_CAUSAL_LM_MAPPING,
MODEL_FOR_IMAGE_CLASSIFICATION_MAPPING, MODEL_FOR_IMAGE_CLASSIFICATION_MAPPING,
MODEL_FOR_MASKED_LM_MAPPING, MODEL_FOR_MASKED_LM_MAPPING,
...@@ -26,7 +26,7 @@ from . import ( ...@@ -26,7 +26,7 @@ from . import (
PreTrainedModel, PreTrainedModel,
logging, logging,
) )
from .models.auto import get_values from ..models.auto import get_values
logger = logging.get_logger(__name__) logger = logging.get_logger(__name__)
......
...@@ -67,7 +67,7 @@ if is_torch_available(): ...@@ -67,7 +67,7 @@ if is_torch_available():
) )
if is_torch_fx_available(): if is_torch_fx_available():
from transformers.modeling_fx_utils import symbolic_trace from transformers.utils.fx import symbolic_trace
def _config_zero_init(config): def _config_zero_init(config):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment