nihui
2f34e7f806
fix pnnx build on msvc, pnnx ci update torch and onnxruntime ( #6208 )
* pin opencv version
10 months ago
nihui
171b9d1bba
use spdx license header, copyright Tencent ( #6152 )
10 months ago
nihui
5cd76533cc
pnnx generate test_inference with valid input shapes anyway ( #6095 )
11 months ago
nihui
ff11080db6
pnnx convert onnx MaxPool auto_pad same, torch reshape_as ( #6089 )
11 months ago
nihui
c5c4cdfd88
pnnx ppocrv5 onnx update, eliminate squeeze-unsqueeze pair, convert onnx shape+slice, fix param list match ( #6081 )
* fix memory leak
* fuse conv+bias early
1 year ago
nihui
c001f5ee6c
pnnx set windows codepage utf8 ( #6080 )
1 year ago
nihui
abb7de9a66
pnnx transformers update part2 ( #6072 )
* pnnx update batch 1 mask attention, add more clip test
* fuse same qkv input
* skip onnx clip sdpa
* maintain cache
1 year ago
nihui
d9d9cc403d
pnnx torch logical ops test ( #6069 )
1 year ago
nihui
5f056b8fee
pnnx transformers update, part1 ( #6054 )
* local cache
* skip transformer test on torch<2.1
* zip pnnx
* bool8 to bool
* initialize xlnet weights
* onnx einsum
* onnx reducelogsumexp
* skip tensor as scalar attribute
* skip longformer
1 year ago
nihui
62ddee3873
limit pnnx onnxruntime threads by OMP_THREAD_LIMIT env ( #6049 )
1 year ago
nihui
1d9c78c526
update pnnx ci ( #6048 )
1 year ago
nihui
d04d4a0297
pnnx ncnn adjust dynamic slice axes for dropping batch index ( #6032 )
1 year ago
nihui
b8602a6587
pnnx test_inference with torch.no_grad() ( #6028 )
1 year ago
nihui
65b3530be1
fix pnnx ncnn resolve reshape batch index ( #6021 )
* handle batch index with dynamic reshape
1 year ago
nihui
76ce92073e
update pnnx ci with torch 2.7 ( #6018 )
1 year ago
nihui
19abe7b637
pnnx fix instancenorm num features ( #6017 )
1 year ago
nihui
76f48c8fcb
pnnx pass level1 wrapper enabling faster build ( #6014 )
1 year ago
nihui
4cfcc70c06
pnnx ncnn handle batch index changes from squeeze and unsqueeze ( #6012 )
1 year ago
nihui
0e9390c5ba
fix pnnx fuse static conv bias shape mismatch ( #6010 )
1 year ago
nihui
3d16b657bc
pnnx fuse wav2vec style mha ( #6004 )
1 year ago
nihui
0be3a34ff9
pnnx ncnn handle optional sdpa scale param ( #6000 )
1 year ago
nihui
8363040cb4
pnnx ncnn gelu fast mode, fix interp 2d resize ( #5999 )
1 year ago
nihui
ef0b0e631c
interp output size expression ( #5994 )
1 year ago
nihui
39c055d7f2
crop axes starts ends expression ( #5976 )
* skip dynamic tensor index
* handle clone oom
1 year ago
nihui
4e34da40f1
pnnx convert onnx reducel1 reducel2, add onnx norm test ( #5988 )
1 year ago
nihui
3b3b7a94a1
pnnx convert onnx globalavgpool, add onnx adaptive avg/max pool test ( #5987 )
1 year ago
nihui
1d95a9cb41
update pnnx ci with torch 2.6 ( #5972 )
1 year ago
nihui
109e473007
let cmake know the project is aware of new version and stop throwing warnings ( #5848 )
1 year ago
nihui
f3651ce5b8
pnnx convert onnx depth2space, add pixelshuffle pixelunshuffle test ( #5967 )
1 year ago
nihui
524001bf54
pnnx convert onnx conv with asymmatric pads ( #5965 )
* pnnx convert onnx conv with asymmatric pads
* pad + conv1d and conv3d
* onnx conv auto_pad
1 year ago
shacon wang
701f53794d
add read npy for ncnn2table ( #5930 )
* add read npy for ncnn2table
* optimize npy to mat to avoid non-contiguous memory data
* add create the calibration table from npy
* add catch exception
1 year ago
nihui
07267f2618
softmax 4d test and vulkan, softmax unified elempack optimization for x86 arm riscv ( #5931 )
1 year ago
佰阅
7c7ff84044
fix pnnx2ncnn i64 to i32 ( #5881 )
1 year ago
nihui
6396a732ef
reshape shape expression, drop reshape permute, test reshape oom ( #5918 )
1 year ago
nihui
67dd7a7bd5
pnnx eval typed expression, optimize type conversion ( #5921 )
1 year ago
nihui
9afeb17cd4
ncnn2int8 use fp16 weight type by default ( #5907 )
1 year ago
nihui
5ea7681e70
tnn2pnnx ( #5898 )
1 year ago
nihui
0b71133d0e
pnnx fix macos and windows build, add quick test ci ( #5838 )
1 year ago
nihui
78aca5d30b
pnnx fix onnx clip conversion, add onnx clamp test, always reserve onnx split outputs, convert onnx mod ( #5834 )
1 year ago
張小凡
24908b7c87
pnnx rename _export() to export() ( #5831 )
1 year ago
nihui
57fac4a36b
pnnx match onnx zeros ones ( #5832 )
1 year ago
nihui
ad6d84e747
pnnx build silent warnings from torch header ( #5828 )
1 year ago
nihui
4b0d2dea24
pnnx auto inputshape from traced inputs ( #5825 )
1 year ago
nihui
a12baae13b
pnnx ncnn convert select to crop and squeeze ( #5826 )
1 year ago
nihui
1172b04355
pnnx pass level2 priority ( #5791 )
* constantlist is constant
* f pad value none
* skip ncnn istft center=False test for old torch
* fix fuse pad conv1d
1 year ago
nihui
0734b657d9
spectrogram and inverse spectrogram ( #5779 )
* only supports hann, hamming and all-one window
* inverse spectrogram does not support length parameter
* spectrogram always returns torch.view_as_real(out) as ncnn does not support complex typed mat yet
* inverse spectrogram always accepts torch.view_as_complex(in) as ncnn does not support complex typed mat yet
1 year ago
Joson
c043612e91
disable pnnx debug model ( #5784 )
1 year ago
nihui
e71fdf8e51
pnnx write implicit int conversion in python script ( #5767 )
1 year ago
nihui
6077adc6bc
pnnx do not fold tensor with dynamic shape, use fp32 module by default ( #5755 )
1 year ago
nihui
c1f9e959f5
pnnx torch 2.5 ( #5748 )
1 year ago