❓ [Question] function torch._ops.aten.aten::_to_copy
not currently supported with dynamic input shape
#3060
Labels
question
Further information is requested
❓ Question
I'm trying to compile a model with dynamic input shape but told that the
function torch._ops.aten.aten::_to_copy
is not currently supported:the code caused this error is as follow:
pi = self.positional_encoder.pos_encoding[pi.long()]
where the
self.positional_encoder
is an instance of a customized implementation of the transformer position encoder:What you have already tried
The complete model is complicated so I have tried to implement a minimal reproducible example, but the compilation of a single
PositionalEncoding
model succeed. I also tried adding more context code but it still succeed. I'm unable to get a minimal reproducible example now.I found this error only occurs with dynamic input shape. Compiling model with fixed input shape works well.
Besides, I noticed that #2161 had added the
_to_copy
converter, so I'm confused why it told me_to_copy
is not supported, or maybe I misunderstand something?Environment
conda
,pip
,libtorch
, source): pipThe text was updated successfully, but these errors were encountered: