chxin66
0dc7a3465e
fix const tensor align bug in AlignPermuteVectorForElementWise ( #666 )
...
* fix const tensor align bug in AlignPermuteVectorForElementWise
Signed-off-by: Chen <jack.chen@verisilicon.com>
* fix build issue use android ndk
Type: Bug fix
Signed-off-by: Chen <jack.chen@verisilicon.com>
* Fix inappropriate comments for reduce layoutinfer
Type: Code refine
Signed-off-by: Chen <jack.chen@verisilicon.com>
---------
Signed-off-by: Chen <jack.chen@verisilicon.com>
Co-authored-by: Chen <jack.chen@verisilicon.com>
2023-12-11 16:59:37 +08:00
chxin66
720f0a485a
fix crash when eletwise inputs are different rank ( #665 )
...
Fix crash in AlignPermuteVectorForElmentWise() if inputs tensor have different rank
Type: Bug fix
Signed-off-by: Chen <jack.chen@verisilicon.com>
2023-12-06 17:15:15 +08:00
chxin66
e013cf0a65
fix slope shpae 1 crash issue ( #663 )
...
graph compile will crash when shape is broadcast from 1 to 1,1,1,1
Type: Bug fix
Signed-off-by: Chen <jack.chen@verisilicon.com>
Co-authored-by: Chen <jack.chen@verisilicon.com>
2023-12-05 09:35:10 +08:00
Chen Feiyue
517397949d
Fix the instance norm test input size bug in layout infer test ( #661 )
...
Correct gamma and beta size in InstanceNorm.nhwc case
Type: Bug Fix
Issue: 37103
Signed-off-by: Feiyue Chen <Feiyue.Chen@verisilicon.com>
2023-11-22 09:20:27 +08:00
Chen Feiyue
8267effdfb
Refine RNNCell/HardSwish/Reduce_sum ut ( #660 )
...
Modify tolerance in some of these op unit tests for StreamProcessor
Type: Bug Fix
Issue: 37103
Signed-off-by: Feiyue Chen <Feiyue.Chen@verisilicon.com>
2023-11-21 16:18:22 +08:00
Chen Feiyue
2f018cc088
Code refinement for mean-stddev-normalization fuse ( #632 )
...
1.Added copyright && Added reference or const reference for functions
2.Rewrite function of determing whether there is a common input
3.Use std::remove_if instead of std::find before doing erase
4.Added security check to prevent access to deleted ops
Type: Code Improvement
Signed-off-by: Feiyue Chen <Feiyue.Chen@verisilicon.com>
2023-08-15 13:15:03 +08:00
Chen Feiyue
35e50d7692
Added op fusion for mean_stddev_normalization ( #629 )
...
Added op fusion for mean_stddev_normalization ops such as layernorm and
instance norm
Type: New Feature
Signed-off-by: Feiyue Chen <Feiyue.Chen@verisilicon.com>
2023-08-09 22:10:45 +08:00
chxin66
6a5694e557
fixed prelu layoutinfer bug & added cases ( #628 )
...
Type: bug fix
Signed-off-by: Chen <jack.chen@verisilicon.com>
Co-authored-by: Chen <jack.chen@verisilicon.com>
2023-08-07 13:17:46 +08:00
chxin66
680e8d59cb
Fixed conv2d grouped_conv2d deconv2d layoutinfer bug ( #622 )
...
Signed-off-by: Chen <jack.chen@verisilicon.com>
Co-authored-by: Chen <jack.chen@verisilicon.com>
2023-07-24 17:10:24 +08:00
chxin66
ea8046ec9c
Added roi_align layoutinfer & cases ( #615 )
...
* Added roi_align layoutinfer & cases
Type: New feature
Signed-off-by: Chen <jack.chen@verisilicon.com>
* Update instancenorm op spec .json
Type: bug fix
Signed-off-by: Chen <jack.chen@verisilicon.com>
* Added roi_pool layoutinfer & fixed case bug
Type: new feature
Signed-off-by: Chen <jack.chen@verisilicon.com>
---------
Signed-off-by: Chen <jack.chen@verisilicon.com>
Co-authored-by: Chen <jack.chen@verisilicon.com>
2023-07-08 23:39:56 +08:00
Chen Feiyue
75882d4195
Added new_axis_mask param for stridedslice ( #600 )
...
Add another constructor for stridedslice when new_axis_mask is set
The layout inference need to reconstruct the axis mapping when
new_axis_mask is set(TODO)
Type: New Feature
Signed-off-by: Feiyue Chen <Feiyue.Chen@verisilicon.com>
2023-06-25 09:24:41 +08:00
Chen Feiyue
d823ef6fcb
Remove unused value in op layoutinfer ( #607 )
...
Remove unused value to make sure project build successfully with higher
version compiler such as clang15
Type: Code Improvement
Signed-off-by: Feiyue Chen <Feiyue.Chen@verisilicon.com>
2023-06-25 09:23:09 +08:00
chxin66
26b4e53fe7
fixed reduce layoutinfer bug ( #605 )
...
Type: Bug fixed
Signed-off-by: Chen <jack.chen@verisilicon.com>
Co-authored-by: Chen <jack.chen@verisilicon.com>
2023-06-19 21:56:08 +08:00
chxin66
a64a0f7379
Added a case for resize_bilinear layoutinfer ( #595 )
...
Signed-off-by: Chen <jack.chen@verisilicon.com>
Co-authored-by: Chen <jack.chen@verisilicon.com>
2023-06-02 07:52:06 +08:00
chxin66
ea8adc456a
fixed instance norm bug & add its layoutinfer ( #593 )
...
Type: Bug fix
Signed-off-by: Chen <jack.chen@verisilicon.com>
Co-authored-by: Chen <jack.chen@verisilicon.com>
2023-05-31 12:55:42 +08:00
chxin66
4f92e58155
optimization for tiny_yolov4 ( #591 )
...
Type: code improvment
Signed-off-by: Chen <jack.chen@verisilicon.com>
Co-authored-by: Chen <jack.chen@verisilicon.com>
2023-05-23 14:28:47 +08:00
Chen Feiyue
3c5ee7a46e
Refine prelu layout inference ( #577 )
...
In the past we reverse all inputs to default order pv and caused
unnecessary transpose operation.
In this commit only const slope will be handled and do transpose if necessary.
Type: Code Improvement
Signed-off-by: Feiyue Chen <Feiyue.Chen@verisilicon.com>
2023-04-25 11:25:55 +08:00
chxin66
f1fd2246ae
Support tensor cache while create tensor ( #574 )
...
Support tensor cache while create tensor
Tensor can be shared between different operations, if tensor have
identical data and quantization parameter, they should share same
low-level tensor object to save memory.
In tim-vx, introduce a tensor cache which key is md5sum and value is
low-level tensor object. If up-coming tensor have same md5sum, the
cached tensor object reused for tensor creation.
Type: New feature
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
Co-authored-by: Chen Xin <jack.chen@verisilicon.com>
2023-04-19 21:31:25 +08:00
chxin66
c2755b90ea
Fixed l2normalization layout infer bug ( #570 )
...
And added a case
Type: Bug fix
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
Co-authored-by: Chen Xin <jack.chen@verisilicon.com>
2023-03-27 15:00:25 +08:00
Zhouheng Zheng
e49f67b840
Remove tensor GetDataRef api ( #569 )
...
Co-authored-by: zhouheng.zheng <zhouheng.zheng@ouotlook.com>
2023-03-23 21:35:30 +08:00
zhouheng.zheng
958b26e499
Fix mirror pad param mismatch
2023-03-21 09:20:00 +08:00
Chen Xin
e71d537042
Fixed deconv2d layout infer bug
...
Type: Bug fix
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
2023-02-20 13:06:24 +08:00
Chen Xin
5e7f5cecea
Fixed grouped_conv2d layout infer & Added cases
...
added cases for conv2d/grouped_conv2d
Type: Bug fixed
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
2023-01-20 15:28:21 +08:00
Tang
d778dfb82d
update copyright information
2023-01-20 12:49:48 +08:00
Huanyu.Cai
9ab00a57a6
Fixed Invalid read of size 8 reported by Valgrind
2023-01-11 21:31:31 +08:00
Chen Xin
58d36ab943
Added reduce_all layoutinfer & reduce cases
...
Type: New feature
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
2023-01-09 09:30:44 +08:00
Chen Xin
c1f8a959af
Fixed bug for pad_v2
...
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
2022-12-30 10:19:03 +08:00
Chen Xin
0e211c8efd
Fixed (groupd)conv2d layout infer bug
...
And added a weight_as_input case to test
Type: Bug Fix
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
2022-12-16 15:20:56 +08:00
Chen Xin
7582b57edc
Added pad_v2 & pad_v2 layout infer
...
And added 4 rank case
Type: Added new op
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
2022-12-16 15:03:58 +08:00
Feiyue Chen
c231c54a66
Fixed BidirectionalSequenceRnn bugs
...
Added layout inference for BidirectionalRnn
Fixed wrong datatype and wrong output order of internal about backward rnn
Corrected golden in BidirectionalRnn&BidirectionalRnnExt unit test
Modified copyright and log message
Type: Bug Fix
Signed-off-by: Feiyue Chen <Feiyue.Chen@verisilicon.com>
2022-11-28 09:45:50 +08:00
Feiyue Chen
05a1c561af
Added layout_inference for UnidirectionalRnn
...
Added layout_inference so that can support tflite cases
Modified copyright of code
Modified case name and value name in UnidirectionalRnn unittest
Type: Code Improvement
Signed-off-by: Feiyue Chen <Feiyue.Chen@verisilicon.com>
2022-11-23 20:58:00 +08:00
Chen Xin
9fe7b955e5
Fixed average pool layout infer
...
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
2022-11-16 13:34:31 +08:00
Chen Xin
535c9da867
Fixed bug when input's index is not 0
...
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
2022-09-28 16:48:16 +08:00
Chen Xin
4c6299e7fd
Added two reduce layout infer unittest
...
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
2022-09-28 09:37:38 +08:00
Chen Xin
72f2c5b69e
Supported composed layout infer & added unit test
...
Fixed fc layout infer in rnncell layout infer
2022-09-26 14:29:46 +08:00
Chen Xin
9b13b6f677
Replace name direct_map_op with builtin_op
...
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
2022-09-19 10:21:19 +08:00
chxin66
cfe8c808bd
Added broadcast layout infernece ( #438 )
...
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
Co-authored-by: Chen Xin <jack.chen@verisilicon.com>
2022-07-27 12:52:48 +08:00
chxin66
9f331ed5ec
Added batch dims in gather ( #435 )
...
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
Co-authored-by: Chen Xin <jack.chen@verisilicon.com>
2022-07-19 12:33:09 +08:00
chxin66
f52cb852d6
Fixed transpose layout inference bug ( #430 )
...
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
Co-authored-by: Chen Xin <jack.chen@verisilicon.com>
2022-07-11 09:55:48 +08:00
chxin66
e047fce59f
Disable cases which offloaded to SW path( #422 )
...
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
2022-07-04 15:37:06 +08:00
chxin66
3e8d5e3493
Added grouped conv2d layout inference ( #419 )
...
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
Co-authored-by: Chen Xin <jack.chen@verisilicon.com>
2022-06-28 14:52:26 +08:00
chxin66
44cc6f9f09
lstm layout inference & Added unidirectional lstm layout inference ( #392 )
...
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
Co-authored-by: Chen Xin <jack.chen@verisilicon.com>
2022-05-29 22:40:43 +08:00
Sven
4f2991c853
Fixed no-output if transpose is last op and can be optimized ( #395 )
...
* Fixed no-output if transpose is last op and can be optimized
If transpose can be erased by layout inference, replace it as a
reshape - input and output have same shape - expect low-level
optimization erase the reshape
Signed-off-by: xiang.zhang <xiang.zhang@verisilicon.com>
2022-05-13 16:59:25 +08:00
chxin66
11572140d2
Fixed layout inference bug for stack ( #375 )
...
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
2022-05-05 17:18:09 +08:00
chxin66
5c4800ab33
Fixed pad layout inference bug & added one stridedslice case ( #370 )
...
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
Co-authored-by: Chen Xin <jack.chen@verisilicon.com>
2022-04-20 21:44:43 +08:00
chxin66
eb21143987
Support specifying pad_mode in pad ( #355 )
...
https://github.com/VeriSilicon/TIM-VX/issues/307
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
Co-authored-by: Chen Xin <jack.chen@verisilicon.com>
2022-04-14 19:55:47 +08:00
chxin66
93f20429ea
Fixed layout inference bug for stride_slice ( #329 )
...
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
2022-04-13 10:12:37 +08:00
chxin66
1ca89d2ffa
Add layout inference & layout test for stack ( #337 )
...
* Added layout inference & layout test for stack
Signed-off-by: Chen Xin <jack.chen@verisilicon.com>
2022-04-06 13:01:41 +08:00
liyuenan
fe31a47bf9
enable no bias in FC layout inference ( #294 )
...
Signed-off-by: yuenan.li <yuenan.li@verisilicon.com>
Co-authored-by: yuenan.li <yuenan.li@verisilicon.com>
2022-02-21 19:09:38 +08:00
liyuenan
e2180a6341
Support that op's all inputs are constant ( #264 )
...
Signed-off-by: yuenan.li <yuenan.li@verisilicon.com>
Co-authored-by: yuenan.li <yuenan.li@verisilicon.com>
2022-01-14 12:34:38 +08:00