Scs4onnx

Latest version: v1.0.18

Safety actively analyzes 622015 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

1.0.18

- Add short form parameter

$ scs4onnx -h

usage:
scs4onnx [-h]
[-m {shrink,npy}]
[-fo FORCED_EXTRACTION_OP_NAMES]
[-fc FORCED_EXTRACTION_CONSTANT_NAMES]
[-d]
[-n]
input_onnx_file_path output_onnx_file_path


positional arguments:
input_onnx_file_path
Input onnx file path.

output_onnx_file_path
Output onnx file path.

optional arguments:
-h, --help
show this help message and exit

-m {shrink,npy}, --mode {shrink,npy}
Constant Value Compression Mode.
shrink: Share constant values inside the model as much as possible.
The model size is slightly larger because
some shared constant values remain inside the model,
but performance is maximized.
npy: Outputs constant values used repeatedly in the model to an
external file .npy. Instead of the smallest model body size,
the file loading overhead is greater.
Default: shrink

-fo FORCED_EXTRACTION_OP_NAMES [FORCED_EXTRACTION_OP_NAMES ...], --forced_extraction_op_names FORCED_EXTRACTION_OP_NAMES [FORCED_EXTRACTION_OP_NAMES ...]
Extracts the constant value of the specified OP name to .npy
regardless of the mode specified.
Cannot be used with --forced_extraction_constant_names at the same time.
e.g. --forced_extraction_op_names aaa bbb ccc

-fc FORCED_EXTRACTION_CONSTANT_NAMES [FORCED_EXTRACTION_CONSTANT_NAMES ...], --forced_extraction_constant_names FORCED_EXTRACTION_CONSTANT_NAMES [FORCED_EXTRACTION_CONSTANT_NAMES ...]
Extracts the constant value of the specified Constant name to .npy
regardless of the mode specified.
Cannot be used with --forced_extraction_op_names at the same time.
e.g. --forced_extraction_constant_names aaa bbb ccc

-d, --disable_auto_downcast
Disables automatic downcast processing from Float64 to Float32 and INT64
to INT32. Try enabling it and re-running it if you encounter type-related
errors.

-n, --non_verbose
Do not show all information logs. Only error logs are displayed.

1.0.17

- Security update
- README update

1.0.16

- Eliminated comma delimiters in input parameters
- `--forced_extraction_op_names`
- `--forced_extraction_constant_names`

1.0.15

- Slightly modified README

1.0.14

- README update

1.0.13

- Improvement to avoid unnecessary process execution

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.