Cargo Features

RTen has no features set by default.

[dependencies]
rten = { version = "0.14.1", features = ["avx512", "mmap", "wasm_api", "random"] }
avx512

Use AVX-512 instructions if available. Requires nightly Rust for AVX-512 intrinsics.

Enables avx512 of rten-simd and rten-vecmath

Affects x86_64::Avx512Kernel

mmap

Enable loading models using memory mapping

Enables memmap2

wasm_api

Generate WebAssembly API using wasm-bindgen.

random

Enable operators that generate random numbers.

Enables fastrand and fastrand-contrib