Tensorflow security Rust/C++ interop

Do you think that Tensorflow could plan to introduce in 2021 Rust in the codebase like in other Google projects (Chromium, Android, Linux Kernel etc.) or do you think that we will have some specific issues for our library?

E.g. For Rust/C++ interop in Chromium see:

https://www.chromium.org/Home/chromium-security/memory-safety/rust-and-c-interoperability

/cc @mihaimaruseac

1 Like

See also GitHub - google/autocxx: Tool for safe ergonomic Rust/C++ interop driven from existing C++ headers

1 Like

Another related link: How CrowdStrike Combines TensorFlow and Rust for Performance

It would be nice to have parts of TF written in Rust instead of C++ for better safety, but I am unsure this is possible at the moment, unfortunately. We will need a large refactoring and modularization to allow this to happen.

I think it could be interesting, as a prototipe, if we could consume the new WIP TF runtime c++ API (e.g. with autoccx) to write the simple kernel example in Rust:

1 Like

It could be really nice to have an analysis like this one for TF

1 Like