[package]
edition = "2021"
rust-version = "1.77"
name = "torsh-quantization"
version = "0.1.2"
authors = ["COOLJAPAN OU (Team KitaSan)"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Model quantization for ToRSh neural networks"
homepage = "https://github.com/cool-japan/torsh/"
documentation = "https://docs.rs/torsh-quantization"
readme = "README.md"
keywords = [
"deep-learning",
"quantization",
"model-compression",
"machine-learning",
"inference",
]
categories = [
"science",
"algorithms",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/torsh/"
[features]
default = ["std"]
experimental = []
std = []
[lib]
name = "torsh_quantization"
path = "src/lib.rs"
[[example]]
name = "advanced_schemes"
path = "examples/advanced_schemes.rs"
[[example]]
name = "auto_config_demo"
path = "examples/auto_config_demo.rs"
[[example]]
name = "basic_quantization"
path = "examples/basic_quantization.rs"
[[example]]
name = "batch_processing"
path = "examples/batch_processing.rs"
[[test]]
name = "property_based_tests"
path = "tests/property_based_tests.rs"
[dependencies.num_cpus]
version = "1.17"
[dependencies.scirs2-core]
version = "0.4.2"
features = [
"simd",
"parallel",
"memory_management",
"serialization",
"oxicode",
"oxiblas-blas",
"oxiblas-lapack",
"oxiblas-ndarray",
"validation",
"types",
"random",
"random",
"simd",
"benchmarking",
"parallel",
]
[dependencies.serde]
version = "1.0"
features = [
"derive",
"derive",
]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.torsh-core]
version = "0.1.2"
features = ["serialize"]
[dependencies.torsh-tensor]
version = "0.1.2"
features = ["std"]
[dev-dependencies.approx]
version = "0.5"
[dev-dependencies.proptest]
version = "1.11"
[dev-dependencies.quickcheck]
version = "1.1"
[dev-dependencies.tempfile]
version = "3.27"
[lints.clippy]
expect_used = "allow"
large_stack_arrays = "warn"
large_types_passed_by_value = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "allow"
similar_names = "allow"
too_many_lines = "allow"
unwrap_used = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "allow"
priority = -1
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "allow"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "deny"
priority = -1
[lints.rust]
dead_code = "warn"
unreachable_code = "warn"
unsafe_code = "allow"
unused_imports = "warn"
unused_variables = "warn"