Oneflow-Inc / models

Models and examples built with OneFlow
Apache License 2.0
94 stars 37 forks source link

Tensor.view bugfix #402

Closed rejoicesyc closed 1 year ago

rejoicesyc commented 1 year ago

修复了tensor.view()的如下报错

RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.