pytorch / serve

Serve, optimize and scale PyTorch models in production
https://pytorch.org/serve/
Apache License 2.0
4.22k stars 863 forks source link

Create export path if not present #3331

Closed mreso closed 1 month ago

mreso commented 2 months ago

Description

This PR alters the model archiver to create the export_path if it does not exist printing a warning to notify user in case of typo.

Fixes #(issue)

Type of change

Please delete options that are not relevant.

Feature/Issue validation/testing

Please describe the Unit or Integration tests that you ran to verify your changes and relevant result summary. Provide instructions so it can be reproduced. Please also list any relevant details for your test configuration.

Checklist: