TensorFlux Version Status

The package provides an interface to TensorFlow.

Documentation

Example

```rust use tensorflux::{Definition, Input, Options, Output, Session, Tensor};

let mut session = Session::new(Options::new().unwrap()).unwrap(); session.extend(&Definition::load(GRAPH_PATH).unwrap()).unwrap(); // c = a * b

let a = Tensor::new(vec![1f32, 2.0, 3.0], vec![3]).unwrap(); let b = Tensor::new(vec![4f32, 5.0, 6.0], vec![3]).unwrap();

let inputs = vec![Input::new("a", a), Input::new("b", b)]; let outputs = vec![Output::new("c")];

let mut results = session.run(inputs, outputs, vec![]).unwrap();

let c: Tensor = results.pop().unwrap().into().unwrap();

assert_eq!(&c[..], &[1.0 * 4.0, 2.0 * 5.0, 3.0 * 6.0]); ```

Requirements

Configuration

Contribution

Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.