示例#1
0
文件: add.py 项目: xiaojiqing/Rosetta
#!/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")
示例#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")
示例#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()
示例#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()
示例#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()
示例#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()
示例#7
0
文件: mul.py 项目: xiaojiqing/Rosetta
#!/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")
示例#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()
示例#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")