Make with_c_api a no-op if the C API is already enabled.
authorSkye Wanderman-Milne <skyewm@google.com>
Wed, 21 Feb 2018 22:07:48 +0000 (14:07 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 21 Feb 2018 22:11:34 +0000 (14:11 -0800)
commit6c8879296135ddcc5e94c1f0561168846a703fcb
tree6549b11389bfbe26661b5fadb79f2738e58a6c98
parent469daa466cf2796cbb37490b0da1fa1b36860c88
Make with_c_api a no-op if the C API is already enabled.

This will help transition to turning the C API on by default by
preventing new tests from breaking.

PiperOrigin-RevId: 186516976
tensorflow/python/framework/test_util.py