Act on deprecations in Accelerate no_trainer examples (#24053)

Act on deprecation
This commit is contained in:
Zachary Mueller
2023-06-06 13:04:38 -04:00
committed by GitHub
parent ff4c0fc7d2
commit 072188d638
12 changed files with 14 additions and 12 deletions

View File

@@ -316,7 +316,7 @@ def main():
# If we're using tracking, we also need to initialize it here and it will by default pick up all supported trackers
# in the environment
accelerator = (
Accelerator(log_with=args.report_to, logging_dir=args.output_dir) if args.with_tracking else Accelerator()
Accelerator(log_with=args.report_to, project_dir=args.output_dir) if args.with_tracking else Accelerator()
)
# Make one log on every process with the configuration for debugging.