Exemplo n.º 1
0
#!/usr/bin/python

from internal.test_cases import binary_op_test
import latticex.rosetta as rtt
import tensorflow as tf

binary_op_test(tf.add, "tf.add")
binary_op_test(rtt.SecureAdd, "rtt.SecureAdd")
Exemplo n.º 2
0
#!/usr/bin/python

from internal.test_cases import binary_op_test
import latticex.rosetta as rtt
import tensorflow as tf

binary_op_test(tf.subtract, "tf.subtract")
binary_op_test(rtt.SecureSub, "rtt.SecureSub")
Exemplo n.º 3
0
#!/usr/bin/python

from internal.test_cases import binary_op_test
import latticex.rosetta as cb
import tensorflow as tf

binary_op_test(tf.multiply, "tf.multiply")
binary_op_test(cb.SecureMul, "cb.SecureMul")
cb.deactivate()
Exemplo n.º 4
0
#!/usr/bin/python

from internal.test_cases import binary_op_test
import latticex.rosetta as cb
import tensorflow as tf

binary_op_test(tf.add, "tf.add")
binary_op_test(cb.SecureAdd, "cb.SecureAdd")
cb.deactivate()
Exemplo n.º 5
0
#!/usr/bin/python

from internal.test_cases import binary_op_test
import latticex.rosetta as cb
import tensorflow as tf

binary_op_test(tf.subtract, "tf.subtract")
binary_op_test(cb.SecureSub, "cb.SecureSub")
cb.deactivate()
Exemplo n.º 6
0
#!/usr/bin/python

from internal.test_cases import binary_op_test
import latticex.rosetta as cb
import tensorflow as tf

binary_op_test(tf.truediv, "tf.truediv")
binary_op_test(cb.SecureTruediv, "cb.SecureTruediv")
cb.deactivate()
Exemplo n.º 7
0
#!/usr/bin/python

from internal.test_cases import binary_op_test
import latticex.rosetta as rtt
import tensorflow as tf

binary_op_test(tf.multiply, "tf.multiply")
binary_op_test(rtt.SecureMul, "rtt.SecureMul")
Exemplo n.º 8
0
#!/usr/bin/python
from internal.test_cases import binary_op_test
import latticex.rosetta as cb
import tensorflow as tf

binary_op_test(tf.div, "tf.div")
# binary_op_test(cb.SecureDiv, "cb.SecureDiv")
cb.deactivate()
Exemplo n.º 9
0
#!/usr/bin/python

from internal.test_cases import binary_op_test
import latticex.rosetta as rtt
import tensorflow as tf

binary_op_test(tf.truediv, "tf.truediv")
binary_op_test(rtt.SecureTruediv, "rtt.SecureTruediv")