Skip to content

Commit

Permalink
set_attrs_type_key added
Browse files Browse the repository at this point in the history
  • Loading branch information
siju-samuel committed Oct 21, 2018
1 parent cea5add commit 15b6a24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/relay/op/tensor/transform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,7 @@ Examples::
.set_num_inputs(1)
.add_argument("data", "Tensor", "The input tensor.")
.set_support_level(4)
.set_attrs_type_key("relay.attrs.StridedSliceAttrs")
.add_type_rel("StridedSlice", StridedSliceRel);

} // namespace relay
Expand Down
3 changes: 1 addition & 2 deletions tests/python/relay/test_op_level4.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def verify_strided_slice(data, begin, end, stride, output):
assert "end=" in z.astext()
if stride:
assert "stride=" in z.astext()
print(zz.checked_type)
assert zz.checked_type == relay.ty.TensorType(output, "float32")

def test_strided_slice():
Expand All @@ -105,4 +104,4 @@ def test_strided_slice():
test_where()
test_arg_reduce()
test_multibox_prior()
test_strided_slice()
test_strided_slice()

0 comments on commit 15b6a24

Please sign in to comment.