Fix //tensorflow/core:ops_sparse_ops_test
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
parent
74784ac463
commit
e64bfb83dc
@ -133,6 +133,13 @@ TEST(SparseOpsTest, SparseToDense_ShapeFn) {
|
||||
|
||||
TEST(SparseOpsTest, SparseReduceSum_ShapeFn) {
|
||||
ShapeInferenceTestOp op("SparseReduceSum");
|
||||
TF_ASSERT_OK(NodeDefBuilder("test", "SparseReduceSum")
|
||||
.Input({"input_indices", 0, DT_INT64})
|
||||
.Input({"input_values", 1, DT_INT64})
|
||||
.Input({"input_shape", 2, DT_INT64})
|
||||
.Input({"reduction_axes", 3, DT_INT32})
|
||||
.Attr("keep_dims", false)
|
||||
.Finalize(&op.node_def));
|
||||
|
||||
// Shape fn always yields unknown.
|
||||
INFER_OK(op, "?;?;?;?", "?");
|
||||
|
Loading…
x
Reference in New Issue
Block a user