7272af90d4f5916f61f8bc5660e5605e730bbd78,examples/securenn/network_a.py,,,#,177

Before Change


      "prediction-client", [logits, y], prediction_client.receive_output)

  with tfe.Session() as sess:
    print("Init")
    sess.run(tf.global_variables_initializer(), tag="init")

    print("Training")
    sess.run(cache_updater, tag="training")

After Change


    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"))
Italian Trulli
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: CyberZHG/keras-bert
Commit Name: 05896d40da5307b85cd7f82c5981586f528996af
Time: 2018-10-25
Author: CyberZHG@gmail.com
File Name: tests/layers/test_masked.py
Class Name: TestMasked
Method Name: test_fit


Project Name: NVIDIA/OpenSeq2Seq
Commit Name: f791b89909d8ac69cac38610a4b1ed31d219920d
Time: 2018-08-01
Author: chipn@nvidia.com
File Name: test.py
Class Name:
Method Name: