quantize-rs 0.6.0

Neural network quantization toolkit for ONNX models
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "quantize-rs"
version = "0.6.0"
authors = ["Abdul Rahman Kamal <abdulrahmandev141@gmail.com>"]
build = "build.rs"
exclude = [
    "*.onnx",
    "examples/*.onnx",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Neural network quantization toolkit for ONNX models"
homepage = "https://github.com/AR-Kamal/quantize-rs"
documentation = "https://docs.rs/quantize-rs"
readme = "README.md"
keywords = [
    "quantization",
    "neural-network",
    "onnx",
    "ml",
    "optimization",
]
categories = [
    "command-line-utilities",
    "science",
    "compression",
]
license = "MIT"
repository = "https://github.com/AR-Kamal/quantize-rs"

[package.metadata.maturin]
python-source = "python"
module-name = "quantize_rs"

[features]
calibration = [
    "tract-onnx",
    "tract-core",
    "ndarray",
    "ndarray-npy",
]
default = ["calibration"]
python = ["pyo3"]

[lib]
name = "quantize_rs"
path = "src/lib.rs"

[[bin]]
name = "quantize-rs"
path = "src/main.rs"

[[example]]
name = "activation_calibration"
path = "examples/activation_calibration.rs"

[[example]]
name = "basic_quantization"
path = "examples/basic_quantization.rs"

[[example]]
name = "batch_quantize"
path = "examples/batch_quantize.rs"

[[example]]
name = "validate_real_model"
path = "examples/validate_real_model.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[[test]]
name = "property_tests"
path = "tests/property_tests.rs"

[[bench]]
name = "quantization"
path = "benches/quantization.rs"
harness = false

[dependencies.anyhow]
version = "1.0"

[dependencies.clap]
version = "4.4"
features = ["derive"]

[dependencies.colored]
version = "2.0"

[dependencies.glob]
version = "0.3"

[dependencies.ndarray]
version = "0.15"
optional = true

[dependencies.ndarray-npy]
version = "0.8"
optional = true

[dependencies.prost]
version = "0.13"

[dependencies.pyo3]
version = "0.23"
features = ["extension-module"]
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.rayon]
version = "1.8"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_yaml]
version = "0.9"

[dependencies.toml]
version = "0.8"

[dependencies.tract-core]
version = "0.21"
optional = true

[dependencies.tract-onnx]
version = "0.21"
optional = true

[dev-dependencies.approx]
version = "0.5"

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.tempfile]
version = "3"

[build-dependencies.prost-build]
version = "0.13"

[build-dependencies.protox]
version = "0.7"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true