The slice_like operator takes two inputs: 1. Data tensor to be sliced. 2. Tensor, from which shape will be used to slice input 1.
In many object detection networks, input 1 is a constant and the shape of input 2 is known statically. To perform this operation only the shape of input 2 is needed. However, the FoldConstant pass doesn't know this and will see that since input 2 is not a constant, the operation will not be constant folded. To fix this, I want to add a pass to simplify slice_like to strided_slice when the necessary shapes of input 2 are available statically. Any thoughts? --- [Visit Topic](https://discuss.tvm.ai/t/slice-like-cant-be-constant-folded/6206/1) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/112f98dada34dd87b30ac58a0fc7c7aa3a43918fec73b36480a08638ba349ab6).