# 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 believe there's an error in this file please file an
# issue against the rust-lang/cargo repository. If you're
# editing this file be aware that the upstream Cargo.toml
# will likely look very different (and much more reasonable)

[package]
edition = "2018"
name = "tch"
version = "0.3.1"
authors = ["Laurent Mazare <lmazare@gmail.com>"]
description = "Rust wrappers for the PyTorch C++ api (libtorch)."
readme = "README.md"
keywords = ["pytorch", "deep-learning", "machine-learning"]
categories = ["science"]
license = "MIT/Apache-2.0"
repository = "https://github.com/LaurentMazare/tch-rs"
[package.metadata.docs.rs]
features = ["doc-only"]

[[example]]
name = "reinforcement-learning"
required-features = ["python"]
[dependencies.cpython]
version = "0.2.0"
optional = true

[dependencies.half]
version = "1.6"

[dependencies.lazy_static]
version = "1.3.0"

[dependencies.libc]
version = "0.2.0"

[dependencies.ndarray]
version = "0.13"

[dependencies.rand]
version = "0.7"

[dependencies.thiserror]
version = "1"

[dependencies.torch-sys]
version = "0.3.1"

[dependencies.zip]
version = "0.5"
[dev-dependencies.anyhow]
version = "1"

[features]
cuda-tests = []
doc-only = ["torch-sys/doc-only"]
python = ["cpython"]
