Instructions to use CatSnowdrop/universal_onnxruntime with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TensorRT
How to use CatSnowdrop/universal_onnxruntime with TensorRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download onnxruntime/quantization/operators/argmax.py from CatSnowdrop/universal_onnxruntime: direct link, hf CLI and curl.
- Browser
- Download file 571 Bytes
-
https://huggingface.co/CatSnowdrop/universal_onnxruntime/resolve/main/onnxruntime/quantization/operators/argmax.py
- Command line
-
hf download hf://CatSnowdrop/universal_onnxruntime/onnxruntime/quantization/operators/argmax.py
-
curl -L -o argmax.py https://huggingface.co/CatSnowdrop/universal_onnxruntime/resolve/main/onnxruntime/quantization/operators/argmax.py
571 Bytes
| from .base_operator import QuantOperatorBase | |
| # Use the quantized tensor as input without DQ. | |
| class QArgMax(QuantOperatorBase): | |
| def __init__(self, onnx_quantizer, onnx_node): | |
| super().__init__(onnx_quantizer, onnx_node) | |
| def quantize(self): | |
| node = self.node | |
| quantized_input_value = self.quantizer.find_quantized_value(node.input[0]) | |
| if quantized_input_value is None: | |
| self.quantizer.new_nodes += [node] | |
| return | |
| node.input[0] = quantized_input_value.q_name | |
| self.quantizer.new_nodes += [node] | |