4220e2c69f73f71e23bcd948df0fa20f37ff5d17,examples/pond-simple.py,,,#,6
Before Change
from tensorflow_encrypted.protocol import Pond, Server
server0 = Server("/job:localhost/replica:0/task:0/device:CPU:0")
server1 = Server("/job:localhost/replica:0/task:0/device:CPU:1")
crypto_producer = Server("/job:localhost/replica:0/task:0/device:CPU:2")
prot = Pond(server0, server1, crypto_producer)
// a = prot.define_constant(np.array([4, 3, 2, 1]).reshape(2,2))
// b = prot.define_constant(np.array([4, 3, 2, 1]).reshape(2,2))
// c = a * b
After Change
import tensorflow_encrypted as tfe
from tensorflow_encrypted.protocol import Pond
config = tfe.LocalConfig(3)
prot = Pond(*config.players)
// a = prot.define_constant(np.array([4, 3, 2, 1]).reshape(2,2))
// b = prot.define_constant(np.array([4, 3, 2, 1]).reshape(2,2))
// c = a * b
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances Project Name: mortendahl/tf-encrypted
Commit Name: 4220e2c69f73f71e23bcd948df0fa20f37ff5d17
Time: 2018-08-14
Author: mortendahlcs@gmail.com
File Name: examples/pond-simple.py
Class Name:
Method Name:
Project Name: mortendahl/tf-encrypted
Commit Name: 4220e2c69f73f71e23bcd948df0fa20f37ff5d17
Time: 2018-08-14
Author: mortendahlcs@gmail.com
File Name: examples/pond.py
Class Name:
Method Name:
Project Name: mortendahl/tf-encrypted
Commit Name: 4220e2c69f73f71e23bcd948df0fa20f37ff5d17
Time: 2018-08-14
Author: mortendahlcs@gmail.com
File Name: tests/conv2d_test.py
Class Name: TestConv2D
Method Name: test_forward