nihuini
cf853bd3ce
convert onnx gru rnn graph
5 years ago
Guoxia Wang
13d0bfcfd0
fix onnx2ncnn adaptive pool conversion bug, remove no used weights node ( #2570 )
5 years ago
nihuini
8790de3507
better onnx lstm fusion
5 years ago
nihuini
9b949d65b3
fuse onnx lstm, codeformat exclude pybind11, fix #2562
5 years ago
Guoxia Wang
609f63c57e
support PyTorch AdaptiveAvgPool2d and AdaptiveMaxPool2d ( #2546 )
* support pytorch adaptive pool
* support onnx2ncnn adaptive pool convert
* support ncnnoptimize adaptive pool param write
* fix adaptive pool out_shape order
* fix adaptive pool out_shape order, H and W can be either a int
add test case, set support_vulkan = false Pooling_vulkan::create_pipeline
* review adaptive pool
* fix typo
* add adaptive pool forward in pooling_x86.cpp pooling_arm.cpp
fix out_w, out_h id naming convention
* fix typo
* don't support packing, bf16, int8, image for adaptive pool
* Restyled by clang-format
* Restyled by astyle
* Restyled by clang-format
* Restyled by astyle
Co-authored-by: Restyled.io <commits@restyled.io>
5 years ago
nihui
54c0a13b9f
build shared library ( #2525 )
* build shared lib and enable lto
* reserved for layer and option
* allocator pimpl
* datareader pimpl
* paramdict pimpl, disable copy assign for allocator and datareader
* modelbin pimpl
* net extractor pimpl
* gpu pimple
* disable copy assign vulkandevice, code format
* command pimpl, dummy image readonly
* pipeline pipelinecache pimpl, export platform class
* code format, export simple family
* update ci
* disable lto on android armv7, merge webassembly ci
* link libgcc, fix macos dylib version
* pipeline pimpl, gpu info pimpl
* destroy gpu info after vulkan device
* ignore msvc stl class warning
* fix ncnn_paramdict_get_float return type
* fix vktransfer upload fp16 without flatten, add command test
5 years ago
nihuini
fbf0ffda53
pixelshuffle nhwc mode, convert onnx DepthToSpace mode DCR, convert mlir tf.DepthToSpace
5 years ago
nihuini
b35b06be6d
reorg nhwc mode, code format
5 years ago
nihuini
417b6874f8
fix onnx2ncnn printf format error
5 years ago
nihuini
aa695831f1
rewrite most mlir2ncnn node_reference and binary weight logic, convert tf.SpaceToDepth
5 years ago
nihuini
1963672332
rewrite most onnx2ncnn node_reference and binary weight logic
5 years ago
nihui
343bc3b7dc
single blob consumer ( #2493 )
5 years ago
nihui
0f7b3b4461
aborted is not error, use skipped instead
5 years ago
nihuini
cc773ec8e5
adapt mlir api changes
5 years ago
nihuini
5d40a42e2f
shorter blob name
5 years ago
nihuini
38b6387bc5
ncnnoptimize and ncnn2mem now accepts weight-less custom layer
5 years ago
Zhuo Zhang
62cdc14200
fix onnx2ncnn.cpp shadowed variables warning ( #2443 )
5 years ago
Zhuo Zhang
f3ac7d6261
fix mxnet2ncnn.cpp shadowed variable warning ( #2442 )
5 years ago
nihuini
75c1f09b5d
do not count onnx constant node twice, fix #2425
5 years ago
nihuini
b7440cad2d
reserve onnx gemm memorydata, mention #2427
5 years ago
ncnnnnn
375c4abb6c
remove vs w4305 w4477 ( #2422 )
5 years ago
Zhuo Zhang
eb48cf1b98
fix tools/darknet/darknet2ncnn.cpp sign-compare warning ( #2396 )
5 years ago
Zhuo Zhang
0de350ad3e
fix tools/onnx/onnx2ncnn.cpp sign-compare warning ( #2395 )
5 years ago
Zhuo Zhang
d5d69e32a8
fix tools/mxnet/mxnet2ncnn.cpp sign-compare warning ( #2394 )
5 years ago
Zhuo Zhang
d8866eba56
fix tools/ncnnoptimize.cpp sign-compare warning ( #2393 )
5 years ago
nihuini
14ba698034
onnx matmul can have input from memorydata
5 years ago
nihuini
a260a19619
fuse onnx expand before broadcasting binaryop
5 years ago
ncnnnnn
79ae0028c9
try onnx2ncnn add softplus ( #2361 )
5 years ago
nihui
ba364791e8
reshape x86 pack4
5 years ago
nihui
60df2740a7
fix potential int64 overflow in int array conversion
5 years ago
nihui
60b6cc32ef
replace_reduction_with_global_pooling replace_prelu_with_leaky_relu
5 years ago
nihuini
c5b8e2957e
convert onnx channel pad
5 years ago
Leo
cab255f107
Fix compile failure when NCNN_PIXEL off ( #2260 )
* fix compiling failure on cxx14
* fix compile failure when NCNN_PIXEL off
* do not export pixel api when NCNN_PIXEL off
* disable squeezenet test when NCNN_PIXEL off
* do not build ncnn2table and examples when NCNN_PIXEL off
* make cmakedefine header independent
* restore platform.h.in
Co-authored-by: nihui <shuizhuyuanluo@126.com>
Co-authored-by: nihuini <nihuini@tencent.com>
5 years ago
nihuini
7836a143ec
print input and output blob names, print estimated runtime memory footprint
5 years ago
maxfy1992
a106baa3b8
add interp param align_corner ( #2236 )
* add interp param align_corner
add check support_vulkan after create_pipeline for tests
* code style
Co-authored-by: yangfengmax <yangfengmax@didichuxing.com>
5 years ago
nihuini
b3bbc1b8e9
update tensorflow dialect, adpat mlir api changes
5 years ago
Martin Han
c110e5ca6d
Add docs for keras2ncnn tools ( #2286 )
* Add readme for keras2ncnn
* Add supported model variants
* Fix supported model variants
5 years ago
nihuini
88d1efc9b1
convert onnx MatMul to Gemm
5 years ago
ncnnnnn
c44a521dbc
removewarn onnx2ncnn vs2017 c4267 ( #2271 )
5 years ago
ncnnnnn
21974d8218
removewarn ncnnmerge C4267 ( #2269 )
* fix vs2017 nmake warning C4267: 'initializing': conversion from 'size_t' to 'int'
* removewarn vs2017 nmake warning C4267: '+=': conversion from 'size_t' to 'int', possible loss of data
Co-authored-by: sf <sf@sf.sf>
5 years ago
nihuini
a742979fea
do not fuse mlir scalar mul-add pattern
5 years ago
nihuini
d0e6b256f9
drop obsoleted aarch64 auto conv mode, print mac after ncnnoptimize shape inference
5 years ago
nihuini
ac47a05488
fix onnx groupnorm conversion, ncnnoptimize support groupnorm, fix #2142
5 years ago
nihuini
0a533dcaac
mlir2ncnn fuse keras batchnorm, handle instancenorm affine in ncnnoptimize
5 years ago
nihui
a00beac906
ncnnmerge for merging multiple models into one
5 years ago
nihuini
245e31ebca
adapt mlir api changes
5 years ago
Zhuo Zhang
3f739a4e6e
fix onnx2ncnn.cpp integer multiply may overflow ( #2214 )
5 years ago
Zhuo Zhang
cf31fda387
fix darknet2ncnn.cpp warnings ( #2209 )
* fix darknet2ncnn.cpp warnings
* revoke extra warning check
5 years ago
Evgeny Proydakov
4973773b35
Fixed compile warnings for gcc linux build. [-Wunused-result] ( #2199 )
5 years ago
fawdlstty
1d1cb29869
Fixed compile warning due to default cast ( #2201 )
5 years ago