MNN/source/core
gdh1995 1eaa7a632b fix Reduce may crash if it follows Reshape
When converting a caffe model, `ReductionTransform` thinks
there're always 4 dims in the input of a `Reduction` layer.

However, when forwarding `OpCommonUtils::computeReduceDims`
had an assumption that dim numbers wouldn't exceed
`inputs[0]->dimensions()`.

So, MNN would write unexpected addresses and then crash,
if a Reduction op follows a Reshape / InnerProduct op,
since both ops may output a tensor of 2 dimensions.

_Comment_: I know `TransformInnerProduct` often converts caffe's
InnerProduct into 1x1 Convolution, but Reshape can also cause a
tensor has only 2 dimensions, so this still deserves a fix.
2020-12-19 02:42:07 +08:00
..
AutoStorage.h beta 0.1.0 2019-04-19 20:50:09 +08:00
AutoTime.cpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
Backend.cpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
Backend.hpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
BackendRegister.cpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
BufferAllocator.cpp Synchronize internal master to Github 2020-12-15 14:12:35 +08:00
BufferAllocator.hpp Synchronize internal master to Github 2020-12-15 14:12:35 +08:00
Command.hpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
Concurrency.h Github release 1.1.0 2020-11-05 16:49:17 +08:00
ConvolutionCommon.cpp [MNN:Sync] Sync internal gitlab 2020-11-25 19:03:07 +08:00
ConvolutionCommon.hpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
DirectedAcyclicGraph.hpp Improved performance in DirectedAcyclicGraph. Using `find` instead of `foreach` in std::unordered_map. 2020-07-30 18:43:32 +03:00
Execution.cpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
Execution.hpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
FileLoader.cpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
FileLoader.hpp Update 2019-12-27 22:16:57 +08:00
Interpreter.cpp Corrected typo in getSessionInfo Interpreter method name. 2020-11-06 09:40:23 +01:00
MNNMemoryUtils.cpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
MNNMemoryUtils.h [PATCH 22/28] [MNN:Speed] 8x8 Gemm and cache prefetch optimize 2020-03-31 11:12:40 +08:00
Macro.h Update 2019-12-27 22:16:57 +08:00
NonCopyable.hpp beta 0.1.0 2019-04-19 20:50:09 +08:00
OpCommonUtils.cpp fix Reduce may crash if it follows Reshape 2020-12-19 02:42:07 +08:00
OpCommonUtils.hpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
Pipeline.cpp Synchronize internal master to Github 2020-12-15 14:12:35 +08:00
Pipeline.hpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
RuntimeFactory.cpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
RuntimeFactory.hpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
Schedule.cpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
Schedule.hpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
Session.cpp [PATCH 51/78] [MNN:Refractor] Solve compile warning in Session 2020-11-25 18:57:54 +08:00
Session.hpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
Tensor.cpp Synchronize internal master to Github 2020-12-15 14:12:35 +08:00
TensorUtils.cpp Synchronize internal master to Github 2020-12-15 14:12:35 +08:00
TensorUtils.hpp Synchronize internal master to Github 2020-12-15 14:12:35 +08:00
WrapExecution.cpp Github release 1.1.0 2020-11-05 16:49:17 +08:00
WrapExecution.hpp Github release 1.1.0 2020-11-05 16:49:17 +08:00