7272af90d4f5916f61f8bc5660e5605e730bbd78,examples/securenn/network_a.py,,,#,177
Before Change
// compute prediction
w0, b0, w1, b1, w2, b2 = params
layer0 = x
layer1 = tfe.relu((tfe.matmul(layer0, w0) + b0))
layer2 = tfe.relu((tfe.matmul(layer1, w1) + b1))
logits = tfe.matmul(layer2, w2) + b2
// send prediction output back to client
prediction_op = tfe.define_output(
"prediction-client", [logits, y], prediction_client.receive_output)
After Change
print("Training")
sess.run(cache_updater, tag="training")
print("Set trained weights")
model.set_weights(params, sess)
for _ in range(5):
print("Predicting")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: mortendahl/tf-encrypted
Commit Name: 7272af90d4f5916f61f8bc5660e5605e730bbd78
Time: 2019-07-16
Author: suriyaku@gmail.com
File Name: examples/securenn/network_a.py
Class Name:
Method Name:
Project Name: analysiscenter/batchflow
Commit Name: f02b56207713275c749ff7c0d337c49bd3dffe53
Time: 2017-10-24
Author: rhudor@gmail.com
File Name: examples/simple_but_ugly/tf_models.py
Class Name: MyModel
Method Name: _build
Project Name: mortendahl/tf-encrypted
Commit Name: f54c2b1361fb86f55a36064158c6baa658ffffb9
Time: 2019-06-26
Author: suriyaku@gmail.com
File Name: examples/mnist/run.py
Class Name:
Method Name: