Skip to content

Commit

Permalink
remove unused args
Browse files Browse the repository at this point in the history
  • Loading branch information
FindHao committed Oct 8, 2024
1 parent cc7936c commit d6bfcd1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions torchbenchmark/operator_loader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def load_opbench_by_name_from_loader(args: argparse.Namespace):
raise ValueError(f"{args.op} is not found in the operator loader.")
# args.op is a string, we need to evaluate it to get the actual operator overload
op_eval = eval(args.op)
return dynamically_create_aten_op_class(op_eval, args)
return dynamically_create_aten_op_class(op_eval)


def create_operator_class(op_eval: OpOverload):
Expand Down Expand Up @@ -125,9 +125,7 @@ def inductor(self, input):
return new_class


def dynamically_create_aten_op_class(
op_eval: OpOverload, args: argparse.Namespace
):
def dynamically_create_aten_op_class(op_eval: OpOverload):
"""
To keep same with custom operators, we dynamically create aten operator classes here.
"""
Expand Down

0 comments on commit d6bfcd1

Please sign in to comment.