Skip to content

Commit

Permalink
Fix names
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomlago committed Oct 14, 2024
1 parent 8fba690 commit 28b10cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def parse_type(v, default_type):
return default_type(v)


def validate(args):
def validate_args(args):
if args.learned_round:
assert args.target_backend == "layerwise", "Currently, learned round is only supported with target-backend=layerwise"

Expand Down Expand Up @@ -285,7 +285,7 @@ def generate_ref_input(args, device, dtype):

def main():
args = parser.parse_args()
validate(args)
validate_args(args)
dtype = getattr(torch, args.dtype)

random.seed(SEED)
Expand Down

0 comments on commit 28b10cc

Please sign in to comment.