Skip to content

Commit c317afd

Browse files
yongtangrmlarsen
authored andcommitted
Enable test case for float64 with conv1d (tensorflow#19179)
The float64 for conv2d support has been added to tensorflow in e3468b5. (Thanks brianwa84!) Since conv1d implementation invokes conv2d, the float64 support for conv1d is supported now as well. This fix adds the test case for float64 support of conv1d and removes the TODO. This fix fixes 19175. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
1 parent f8b74d6 commit c317afd

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎tensorflow/python/kernel_tests/conv1d_test.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ class Conv1DTest(test.TestCase):
3131

3232
def testBasic(self):
3333
"""Test that argument passing to conv1d is handled properly."""
34-
# TODO(yongtang): dtypes.float64 can only be enabled once conv2d support
35-
# dtypes.float64, as conv1d implicitly calls conv2d after expand_dims.
36-
for dtype in [dtypes.float16, dtypes.float32]:
34+
for dtype in [dtypes.float16, dtypes.float32, dtypes.float64]:
3735
x = constant_op.constant([1, 2, 3, 4], dtype=dtype)
3836
x = array_ops.expand_dims(x, 0) # Add batch dimension
3937
x = array_ops.expand_dims(x, 2) # And depth dimension

0 commit comments

Comments
 (0)