capeprivacy / tf-trusted

tf-trusted allows you to run TensorFlow models in secure enclaves

Home Page:https://capeprivacy.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failure to run model inside SGX enclave

Jumpst3r opened this issue · comments

I've succeeded in installing all of the required parts but when I try to run a model (either in sim or on an enclave) I get

2020-07-23 15:14:19.438040: F bazel-out/k8-fastbuild/genfiles/external/local_config_tf/include/tensorflow/core/lib/core/refcount.h:90] Check failed: ref_.load() == 0 (1 vs. 0)

As far as I'm aware this tends to happen when adding new custom ops without the -DNDEBUG flag, as referenced here:

tensorflow/tensorflow#17316

Do you have an idea on how to fix this ? I'm unsure on where to add the flag

Thanks!

This actually did the trick, thanks! Tell me if you want me to submit a PR.

Yes please, I believe we've struggled with this issue in the past as well!