TensorLayerX icon indicating copy to clipboard operation
TensorLayerX copied to clipboard

tlx.split的pytorch版本实现错误

Open zqwang-cn opened this issue 3 years ago • 1 comments

New Issue Checklist

Issue Description

tlx.split的pytorch版本实现错误。tlx.split的第2个参数num_or_size_splits类型为int时,表示需要拆分成的tensor数量;但是在torch.split中第2个参数的意义为拆分出的每个tensor中在该维度上的长度。因此需要在调用前将该参数进行转换。

zqwang-cn avatar Oct 10 '22 02:10 zqwang-cn

已修复 #26

hanjr92 avatar Oct 10 '22 09:10 hanjr92