he-transformer icon indicating copy to clipboard operation
he-transformer copied to clipboard

Error when test ax.py

Open allensll opened this issue 6 years ago • 3 comments

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.

allensll avatar Apr 13 '19 13:04 allensll

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.

fboemer avatar Apr 15 '19 14:04 fboemer

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.

allensll avatar Apr 17 '19 07:04 allensll

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.

AlexMV12 avatar Sep 13 '19 14:09 AlexMV12