Esempio 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")
Esempio 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")
Esempio 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()
Esempio 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()
Esempio 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()
Esempio 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()
Esempio 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")
Esempio 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()
Esempio 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")