7272af90d4f5916f61f8bc5660e5605e730bbd78,examples/securenn/network_a.py,,,#,177
Before Change
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(
After Change
with tfe.protocol.SecureNN():
batch_size = PredictionClient.BATCH_SIZE
flat_dim = ModelTrainer.IN_N
batch_input_shape = [batch_size, flat_dim]
// compute prediction
model = tfe.keras.Sequential()
model.add(tfe.keras.layers.Dense(ModelTrainer.HIDDEN_N,
batch_input_shape=batch_input_shape))
model.add(tfe.keras.layers.Activation("relu"))
model.add(tfe.keras.layers.Dense(ModelTrainer.HIDDEN_N))
model.add(tfe.keras.layers.Activation("relu"))
model.add(tfe.keras.layers.Dense(ModelTrainer.OUT_N))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: mortendahl/tf-encrypted
Commit Name: f54c2b1361fb86f55a36064158c6baa658ffffb9
Time: 2019-06-26
Author: suriyaku@gmail.com
File Name: examples/mnist/run.py
Class Name:
Method Name:
Project Name: uTensor/uTensor
Commit Name: 0209a849ef4d520367c2fa880e5605d03106d22d
Time: 2020-06-16
Author: michael.bartling15@gmail.com
File Name: python/test_scripts/gen_fc.py
Class Name:
Method Name: gen_test