Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Error when test ax.py #159

Open
allensll opened this issue Apr 13, 2019 · 3 comments
Open

Error when test ax.py #159

allensll opened this issue Apr 13, 2019 · 3 comments

Comments

@allensll
Copy link

Test ax.py, and it stop, not wait for a client to connect.

(venv-tf-py3) allensll@allensll:~/nGraph-HE/he-transformer/examples$ NGRAPH_ENABLE_CLIENT=1 NGRAPH_ENCRYPT_DATA=1 NGRAPH_TF_BACKEND=HE_SEAL_CKKS python ax.py
2019-04-13 21:34:33.838920: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3192000000 Hz
2019-04-13 21:34:33.839354: I tensorflow/compiler/xla/service/service.cc:150] XLA service 0x55564b6eaa80 executing computations on platform Host. Devices:
2019-04-13 21:34:33.839399: I tensorflow/compiler/xla/service/service.cc:158]   StreamExecutor device (0): <undefined>, <undefined>
Result:  [[ 2.  6.]
 [12. 20.]]
(venv-tf-py3) allensll@allensll:~/nGraph-HE/he-transformer/examples$ 

Thanks.

@fboemer
Copy link
Collaborator

fboemer commented Apr 15, 2019

I believe TensorFlow simplifies simple expressions automatically. You could try more complex expressions rather than (a+b)*a*b. Maybe try ReLU or MaxPool, or square.

@allensll
Copy link
Author

I believe TensorFlow simplifies simple expressions automatically. You could try more complex expressions rather than (a+b)*a*b. Maybe try ReLU or MaxPool, or square.

I tried the MNIST-MLP and MNIST-Cryptonets, and the same error occurred.

@AlexMV12
Copy link

I have the same problem, it's like
NGRAPH_ENABLE_CLIENT=1
is ignored: ax.py continues as normal, computing the small example without waiting for a client.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants