def test_private_input_op(name): in1 = rtt.PrivateInput(tf.Variable([1, 2]), data_owner=0) in2 = rtt.PrivateInput(tf.Variable([2, 3]), data_owner=1) ret = rtt.SecureReveal(tf.multiply(in1, in2)) # expect [2,6] result = create_run_session(ret) print("private_input and result: ", result, ", expect: [2,6]") print("test_private_input ok.")
def decode_p1(line): fields = tf.string_split([line], ',').values fields = rtt.PrivateInput(fields, data_owner=1) return fields