Global function, op_support_gpu (#4980)
parent
d2f3c8bb7a
commit
86437a8dda
@ -0,0 +1,11 @@
|
||||
import unittest
|
||||
import paddle.v2.framework.core as core
|
||||
|
||||
|
||||
class TestOpSupportGPU(unittest.TestCase):
|
||||
def test_case(self):
|
||||
self.assertEqual(core.is_compile_gpu(), core.op_support_gpu("sum"))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
Loading…
Reference in new issue