File size: 337 Bytes
d474b05 |
1 2 3 4 5 6 7 8 9 10 11 12 |
#!/bin/sh
# Loop through all .onnx files in the current directory
for model in *.onnx; do
echo "Sanitizing model: $model"
# Perform sanitization using polygraphy
polygraphy surgeon sanitize "$model" --fold-constants --output "$model"
echo "Sanitization complete for: $model"
done
echo "All models have been sanitized."
|