Skip to content

Commit

Permalink
Rename *2chakra_converter to *_converter
Browse files Browse the repository at this point in the history
  • Loading branch information
TaekyungHeo committed May 9, 2024
1 parent 2a8640f commit 38919e5
Show file tree
Hide file tree
Showing 5 changed files with 1,135 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/converter/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import traceback
from logging import FileHandler

from .pytorch2chakra_converter import PyTorch2ChakraConverter
from .text2chakra_converter import Text2ChakraConverter
from .pytorch_converter import PyTorchConverter
from .text_converter import TextConverter


def get_logger(log_filename: str) -> logging.Logger:
Expand Down Expand Up @@ -52,12 +52,12 @@ def main() -> None:

try:
if args.input_type == "Text":
converter = Text2ChakraConverter(
converter = TextConverter(
args.input_filename, args.output_filename, args.num_npus, args.num_passes, logger
)
converter.convert()
elif args.input_type == "PyTorch":
converter = PyTorch2ChakraConverter(args.input_filename, args.output_filename, logger)
converter = PyTorchConverter(args.input_filename, args.output_filename, logger)
converter.convert()
else:
logger.error(f"{args.input_type} unsupported")
Expand Down
2 changes: 1 addition & 1 deletion src/converter/pytorch2chakra_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from .pytorch_node import PyTorchNode, PyTorchNodeType


class PyTorch2ChakraConverter:
class PyTorchConverter:
"""
Converter class for transforming PyTorch execution traces into Chakra format.
Expand Down
Loading

0 comments on commit 38919e5

Please sign in to comment.