Exemple #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")
Exemple #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")
Exemple #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()
Exemple #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()
Exemple #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()
Exemple #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()
Exemple #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")
Exemple #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()
Exemple #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")