Commit fa867b0e authored by Yong Tang's avatar Yong Tang
Browse files

Fix sparse_placeholder error when int is passed in shape argument



This fix tries to address the issue raised in #6749 where and error
```
ValueError: Tensor conversion requested dtype int64 for Tensor with dtype int32: 'Tensor("Const:0", shape=(2,), dtype=int32)'
```
is thrown out in case int is passed in the shape argument.

This fix fixes the issue and adds test cases for it.

This fix fixes #6749.

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent 7049f8c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment