Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
dbogunowicz authored Jan 24, 2024
1 parent 807898f commit c45125a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sparsezoo/utils/onnx/external_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ def save_onnx(

if model.ByteSize() > DUMP_EXTERNAL_DATA_THRESHOLD:
external_data_file = external_data_file or EXTERNAL_ONNX_DATA_NAME
_LOGGER.warning(
_LOGGER.debug(
"The ONNX model is too large to be saved as a single protobuf. "
"Saving with external data, with file chunks of maximum size "
f"{DUMP_EXTERNAL_DATA_THRESHOLD / 1e9} GB"
f"{max_external_file_size / 1e9} GB"
)
_check_for_old_external_data(
model_path=model_path, external_data_file=external_data_file
Expand Down

0 comments on commit c45125a

Please sign in to comment.