You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tvm.apache.org by ccj159 via Apache TVM Discuss <no...@discuss.tvm.ai> on 2020/09/11 05:38:01 UTC

[Apache TVM Discuss] [Development] Can `slice` from relay support empty result?


@heliqi @lsy643   I encountered a similar problem, did you solve it ?

this error:  
```shell 
strided_slice(%307, meta[relay.Constant][0], meta[relay.Constant][1], meta[relay.Constant][2], begin=[0, 3, 0, 0], end=[1, 0, 1, 512], strides=[1, 1, 1, 1]) 
an internal invariant was violated while typechecking your program [12:17:52]  
/root/worker/tvm/src/relay/op/tensor/transform.cc:2074: 
Check failed: begin_v <= end_v (3 vs. 0) : strided_slice get invalid slice at axis 1 
```





---
[Visit Topic](https://discuss.tvm.apache.org/t/can-slice-from-relay-support-empty-result/5889/8) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/28aaadd9cad660bddd04d006d9a3a00002c67792d1b9b4df6e9f104e4cc21255).

[Apache TVM Discuss] [Development] Can `slice` from relay support empty result?

Posted by wwwwcu via Apache TVM Discuss <no...@discuss.tvm.ai>.

Hi, have you solve the problem? Could you give me some advice about the following error:
```
Check failed: begin_v <= end_v (3 vs. 0) : strided_slice get invalid slice at axis 1 
```





---
[Visit Topic](https://discuss.tvm.apache.org/t/can-slice-from-relay-support-empty-result/5889/12) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/9c945c4351a28db6b2c771e0f2847e5080b1400a0174493da81bd1c733325cdc).

[Apache TVM Discuss] [Development] Can `slice` from relay support empty result?

Posted by ccj159 via Apache TVM Discuss <no...@discuss.tvm.ai>.

Test model is  MobileNetV3,  use TF to load saved model to test, it works right.

For tf.strided_slice(input_, begin, end, strides=None, ....) , if begin > end, it will return empty list []  instead of raising an error.





---
[Visit Topic](https://discuss.tvm.apache.org/t/can-slice-from-relay-support-empty-result/5889/10) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/119a7b964e72689f9127f6a6a2ef3fd7022d78c31ea9d30c345da43fa1656ead).

[Apache TVM Discuss] [Development] Can `slice` from relay support empty result?

Posted by wwwwcu via Apache TVM Discuss <no...@discuss.tvm.ai>.

Hi, 

I got the exactly error when I running TF SSD-ResNet34 model download from https://github.com/mlperf/inference/tree/master/vision/classification_and_detection

I use ./incubator-tvm/tests/python/frontend/tensorflow/test_forward.py  test_forward_ssd() to do the test.

I just modify model_path, shape, in_node and out_node
```
model_path = './tf_ssd_resnet34_22.1/resnet34_tf.22.1.pb' 
data = np.random.uniform(0.0, 255.0, size=(1, 3, 1200, 1200)).astype('float32')
in_node = "image"
out_node = ['detection_bboxes', "detection_scores", "detection_classes"]
```





---
[Visit Topic](https://discuss.tvm.apache.org/t/can-slice-from-relay-support-empty-result/5889/11) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/f099b22e1b94bfcb7d6190789b1e470c1efec738bf4b0bd78af2d35852b58bf8).

[Apache TVM Discuss] [Development] Can `slice` from relay support empty result?

Posted by Yao Wang via Apache TVM Discuss <no...@discuss.tvm.ai>.

What is the sematics of begin=3 and end=0 in the original framework? This relay node is illegal since it generates negative slice.





---
[Visit Topic](https://discuss.tvm.apache.org/t/can-slice-from-relay-support-empty-result/5889/9) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/a489e917afb4a1a0fccf0efa02cc5f0243a452904b1b943941b0cbf37034ae94).