[package]
edition = "2021"
rust-version = "1.85"
name = "g-tensor"
version = "0.1.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CPU-first tensor and ML library for Apple Silicon"
readme = "README.md"
keywords = [
"tensor",
"autodiff",
"machine-learning",
"apple-silicon",
]
categories = [
"science",
"mathematics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/9nunya/G"
[features]
cpu = []
cpu-accelerate = ["g-cpu/accelerate"]
default = ["cpu"]
gpu = [
"dep:g-apple",
"g-ad/gpu",
]
[lib]
name = "g"
path = "src/lib.rs"
[[example]]
name = "adamw_sine"
path = "examples/adamw_sine.rs"
[[example]]
name = "attention_toy"
path = "examples/attention_toy.rs"
[[example]]
name = "autoencoder"
path = "examples/autoencoder.rs"
[[example]]
name = "bandit"
path = "examples/bandit.rs"
[[example]]
name = "classify_blobs"
path = "examples/classify_blobs.rs"
[[example]]
name = "dqn_gridworld"
path = "examples/dqn_gridworld.rs"
[[example]]
name = "fused_debug"
path = "examples/fused_debug.rs"
[[example]]
name = "fused_debug2"
path = "examples/fused_debug2.rs"
[[example]]
name = "gpu_bench"
path = "examples/gpu_bench.rs"
[[example]]
name = "mlp"
path = "examples/mlp.rs"
[[example]]
name = "pc_local"
path = "examples/pc_local.rs"
[[example]]
name = "pc_train"
path = "examples/pc_train.rs"
[[example]]
name = "ppo_cartpole"
path = "examples/ppo_cartpole.rs"
[[example]]
name = "reinforce_cartpole"
path = "examples/reinforce_cartpole.rs"
[[test]]
name = "act_gradcheck"
path = "tests/act_gradcheck.rs"
[[test]]
name = "fused_block_gradcheck"
path = "tests/fused_block_gradcheck.rs"
[[test]]
name = "fused_gradcheck"
path = "tests/fused_gradcheck.rs"
[[test]]
name = "gpu_batched"
path = "tests/gpu_batched.rs"
[[test]]
name = "gpu_gemm"
path = "tests/gpu_gemm.rs"
[[test]]
name = "gpu_igpu_probe"
path = "tests/gpu_igpu_probe.rs"
[[test]]
name = "gradcheck"
path = "tests/gradcheck.rs"
[[test]]
name = "ops_suite"
path = "tests/ops_suite.rs"
[[test]]
name = "scan_gradcheck"
path = "tests/scan_gradcheck.rs"
[[test]]
name = "w1_pc"
path = "tests/w1_pc.rs"
[[test]]
name = "w5_train"
path = "tests/w5_train.rs"
[dependencies.g-ad]
version = "0.1.0"
[dependencies.g-apple]
version = "0.1.0"
optional = true
[dependencies.g-core]
version = "0.1.0"
[dependencies.g-cpu]
version = "0.1.0"
[dependencies.g-nn]
version = "0.1.0"