incubator-teaclave-sgx-sdk icon indicating copy to clipboard operation
incubator-teaclave-sgx-sdk copied to clipboard

Possibility to implement tensorflow/keras in sgx

Open laocaoshilaocao opened this issue 3 years ago • 2 comments

Hi, i want to deploy one deep learning algorithm which uses tensorflow/keras a lot inside SGX. I tried fortanixEDP before with tensorflow C binding API like https://github.com/tensorflow/rust, but it seems really hard to use because tensorflow is based on C and there is no libc in fortanix target. Is that possible to use such C binding API by sgx-sdk for example tensorflow? I mean actually i don't quite understand why the tensorflow works in raw rust but not in SGX. Hope to hear from you.

laocaoshilaocao avatar Mar 31 '21 14:03 laocaoshilaocao

thanks for the pointer! i've been watching on tf's sgx support for quite a while. as of today i still believe libtensorflow-sys is the core problem. 2 years ago i looked into tf-lite and iirc my conclusion was that tf-lite could be ported with minimal changes. but i haven't got time for that since then ...

if you want to run full functional tf, another option is to use libOS, such as graphene. I know a couple of companies including Intel are trying to do so.

dingelish avatar Mar 31 '21 17:03 dingelish

Thanks for your reply. Maybe it is better for me to rewrite the tf method i need in my project. If in the future sgx-sdk can support tf (no matter what version it is ), i believe that would be a great help for many developments.

laocaoshilaocao avatar Apr 01 '21 06:04 laocaoshilaocao