lengths array must be sorted in decreasing order when enforce_sorted is True You can pass enforce_sorted=False to pack_padded_sequence andor pack_sequence to sidestep this requirement if you do not ne
This message is informing the user that if they set the enforce_sorted parameter to True when using the pack_padded_sequence or pack_sequence functions, then the lengths array must be sorted in decreasing order. However, if the user does not need to export their model to ONNX format, they can set enforce_sorted to False to avoid this requirement.
原文地址: https://www.cveoy.top/t/topic/cROV 著作权归作者所有。请勿转载和采集!