burn/burn-tch/Cargo.toml

37 lines
1.1 KiB
TOML
Raw Normal View History

2022-11-16 10:06:40 +08:00
[package]
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
categories = ["science"]
2022-11-16 10:06:40 +08:00
description = "Tch backend for burn"
edition = "2021"
2022-11-16 10:06:40 +08:00
keywords = ["deep-learning", "machine-learning", "data"]
license = "MIT/Apache-2.0"
name = "burn-tch"
readme = "README.md"
repository = "https://github.com/burn-rs/burn/tree/main/burn-tch"
version = "0.5.0"
2022-11-16 10:06:40 +08:00
[features]
doc = ["tch/doc-only"]
[dependencies]
burn-tensor = {path = "../burn-tensor"}
half = {workspace = true}
lazy_static = {workspace = true}
rand = {workspace = true, features = ["std"]}
[target.'cfg(not(target_arch = "aarch64"))'.dependencies]
tch = {version = "0.10.3"}
# Temporary workaround for https://github.com/burn-rs/burn/issues/180
# Remove this and build.rs once tch-rs upgrades to Torch 2.0 at least
[target.'cfg(target_arch = "aarch64")'.dependencies]
tch = {version = "0.10.3", default-features = false} # Disables torch downloading
2022-11-16 10:06:40 +08:00
[dev-dependencies]
burn-autodiff = {path = "../burn-autodiff", default-features = false, features = [
"export_tests",
]}
burn-tensor = {path = "../burn-tensor", default-features = false, features = [
"export_tests",
]}