Skip to content

Commit

Permalink
remove defective and outdated "shebang" lines
Browse files Browse the repository at this point in the history
A shebang must start with "#!" so all the lines "# /usr/bin/env" did not
do anything. Furthermore they contained misleading Python versions, e.g.
"# /usr/bin/env python3.5" while AIMET now supports only Python 3.8+.

Signed-off-by: Felix Schwarz <[email protected]>
  • Loading branch information
FelixSchwarz committed Oct 10, 2023
1 parent 3a4e6a3 commit 2d4ab6c
Show file tree
Hide file tree
Showing 428 changed files with 11 additions and 428 deletions.
1 change: 0 additions & 1 deletion Docs/keras_code_examples/adaround.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/keras_code_examples/bn_reestimation_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/keras_code_examples/compression_code_examples.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/keras_code_examples/model_preparer_code_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/keras_code_examples/quant_analyzer_code_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/keras_code_examples/quantization.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python2.7
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/onnx_code_examples/adaround.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/onnx_code_examples/cross_layer_equalization.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python2.7
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/onnx_code_examples/quantization.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python2.7
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/tf_code_examples/adaround.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/tf_code_examples/auto_quant.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/tf_code_examples/bn_reestimation_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/tf_code_examples/code_examples.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/tf_code_examples/converting_tf_session_to_keras.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/tf_code_examples/post_training_techniques_examples.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/tf_code_examples/quant_analyzer_code_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/tf_code_examples/quantization.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python2.7
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/tf_code_examples/range_learning.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python2.7
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/tf_code_examples/visualization.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/tf_code_examples/weight_svd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python2.7
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/torch_code_examples/adaround.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/torch_code_examples/auto_quant.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/torch_code_examples/auto_quant_v2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/torch_code_examples/bn_reestimation_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/torch_code_examples/code_examples.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/torch_code_examples/model_preparer_code_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/torch_code_examples/model_validator_code_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/torch_code_examples/quant_analyzer_code_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/torch_code_examples/quantsim_code_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/torch_code_examples/quantsim_config_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/torch_code_examples/visualization_compression.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Docs/torch_code_examples/visualization_quantization.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Examples/onnx/utils/image_net_evaluator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# !/usr/bin/env python
# =============================================================================
# @@-COPYRIGHT-START-@@
#
Expand Down
1 change: 0 additions & 1 deletion Examples/tensorflow/compression/channel_pruning.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Examples/tensorflow/compression/spatial_svd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Examples/tensorflow/compression/spatial_svd_cp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Examples/tensorflow/quantization/adaround.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Examples/tensorflow/quantization/cle_bc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Examples/tensorflow/quantization/qat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Examples/tensorflow/quantization/range_learning.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# !/usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Examples/tensorflow/utils/image_net_data_loader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# !/usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Examples/tensorflow/utils/image_net_evaluator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# !/usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Examples/tensorflow/utils/image_net_trainer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# !/usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Examples/tensorflow/utils/keras/image_net_dataset.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# !/usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Examples/tensorflow/utils/keras/image_net_evaluator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# !/usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Examples/torch/compression/spatial_svd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# !/usr/bin/env python
# =============================================================================
# @@-COPYRIGHT-START-@@
#
Expand Down
1 change: 0 additions & 1 deletion Examples/torch/compression/weight_svd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion Examples/torch/utils/image_net_data_loader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# !/usr/bin/env python
# =============================================================================
# @@-COPYRIGHT-START-@@
#
Expand Down
1 change: 0 additions & 1 deletion Examples/torch/utils/image_net_evaluator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# !/usr/bin/env python
# =============================================================================
# @@-COPYRIGHT-START-@@
#
Expand Down
1 change: 0 additions & 1 deletion Examples/torch/utils/image_net_trainer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# !/usr/bin/env python
# =============================================================================
# @@-COPYRIGHT-START-@@
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion NightlyTests/onnx/test_adaround.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion NightlyTests/onnx/test_cross_layer_equalization.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion NightlyTests/onnx/test_models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion NightlyTests/onnx/test_quantsim.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion NightlyTests/onnx/torch_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion NightlyTests/tensorflow/eager/test_adaround_keras.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion NightlyTests/tensorflow/eager/test_keras_transformer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.8
# =============================================================================
# @@-COPYRIGHT-START-@@
#
Expand Down
1 change: 0 additions & 1 deletion NightlyTests/tensorflow/non_eager/test_adaround.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion NightlyTests/tensorflow/non_eager/test_bias_correction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion NightlyTests/tensorflow/non_eager/test_bn_reestimation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3.5
#!/usr/bin/env python3
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python2.7
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion NightlyTests/tensorflow/non_eager/test_svd_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python2.7
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
1 change: 0 additions & 1 deletion NightlyTests/tensorflow/non_eager/test_winnow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# /usr/bin/env python3.5
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
Expand Down
Loading

0 comments on commit 2d4ab6c

Please sign in to comment.