Huihuang Zheng
c5c273c13e
[Dy2stat] Fix Using Tuple for Transpose in Dy2stat ( #28574 )
...
PaddleSeg uses tuple as parameter of transpose in dygraph code:
https://github.com/PaddlePaddle/PaddleSeg/blob/release/v0.7.0/dygraph/paddleseg/models/danet.py#L152
However, in dy2stat, static code doesn't support the perm as a tuple. This PR fixed it.
4 years ago
Jack Zhou
63203c4abc
enhance reduce op which can reduce tensor with arbitrary rank
...
enhance reduce op which can reduce tensor with arbitrary rank
5 years ago
danleifeng
222a5137b3
Add new tensor in API2.0: max,min,t,eye,log1p ( #23228 )
...
add new tensor: max,min,t,eye,log1p; test=develop
5 years ago
zhaoyuchen2018
54970444ce
Improve transpose performance with tile sm copy, test=develop ( #22311 )
...
* Refine code, fix select tile error,test=develop
* Refine element type and some comments, test=develop
* Refine comments and gpu utils, test=develop
* Remove some useless condition
* Refine floor and ceil, test=develop
* refine for loop. test=develop
Signed-off-by: zhaoyuchen <zhaoyuchen01@baidu.com>
5 years ago
juncaipeng
bf9c5de752
Update test precision from fp32 to fp64 ( #21848 )
5 years ago
zhupengyang
4c987a6003
fix input shape of op tests ( #21682 )
...
* fix input shape of op tests for elementwise_sub,
gather, pad2d, transpose, softmax, scale,
elementwise_max, hierarchical_sigmoid, reshape2,
sign, squeeze, reduce_sum, sum, squeeze2,
unsqueeze, unsqueeze2, cast, reverse
test=develop
* fix cast, elementwise_mul, gather, scale, sign,
softmax, transpose
test=develop
5 years ago
Zhang Ting
548efcd2e4
Fix unit tests to avoid check_grad checking failures ( #21554 )
...
* fix python API tests that do not need to inherit OpTest, test=develop
* fix fp16 cases that will only be enabled in GPU mode, test=develop
* remove TestSoftmaxFP16Op from test cases of softmax_mkldnn_op, test=develop
* fix tests so that the cases are only created in GPU mode, test=develop
5 years ago
Yuan Shuai
172e91c008
Refine error message of transpose_op ( #20437 )
...
* Refine error message of transpose.
* Fix transpose, multiplex, unsqueeze, unstack. test=develop, test=document_preview, test=document_fix
5 years ago
Jacek Czaja
d05094eec3
- Added transpose/transpose2 MKLDNN grad ops
...
test=develop
6 years ago
Jacek Czaja
aa6e9c30be
[MKL-DNN ]Added transpose/transpose2 Op ( #14872 )
...
* - Added transpose MKLDNN Op
- Few basic UT works
- Added 1D transpose
- implementing generic mem desc for MKLDNN transpose
- Modified trnaspose op to support more dimensional data eg. 5,6..10
- Added is_test attribute to transpose op
test=develop
* - Added support for MKLDNN::memory::format::any for Transpose MKLDNN op
test=develop
* - Additional transpose mkldnn op correction to mkldnn layout
test=develop
* Cosmetic fixes
test=develop
* - Removed const_cast to obey coding standard
test=develop
6 years ago
chengduo
d402234ba8
Feature/op_fuse_pass ( #12440 )
...
* Add Preface
* Add demo code
* Save file
* Refine code
* seems can work
* use elementwise strategy
* Use ElementwiseComputeEx
* Add comments
* extract functions from operator
* Refine code
* Follow comment
* code refine
* add op_fuse pass
* add backward
* code refine
* use TopologySortOperations
* follow comments
* refine IsFusible
* code enhance
* fix op_fusion_pass
* refine code
* refine fuse_elemwise_act_op
* adjust the input and output
* refine logic
* add intermediate_edge
* disable inplace
* follow comments
* refine logic
* follow comments
* Remove the removable IntermediateOut
* change strategy
* code refine
* enable fuse backward
* code refine
* code refine
* rename unit test
* follow comments
7 years ago
chengduo
886852557f
Refine reshape_grad and transpose_grad ( #13074 )
...
* Add intermediate
* fix flatten/squeeze/unsqueeze
* Considering compatibility issues, we could not fix the origin op
* follow comment
* reset the shape of XShape
7 years ago
minqiyang
99d3f08920
Add print_function for all python files
7 years ago
minqiyang
9fc13fde18
Remove python3 relative import of unittest
7 years ago
minqiyang
35e6abd7bb
Change iter_parameters back and port unittests code to Python3
7 years ago
Luo Tao
b11956a0b5
move Fluid API code out of V2 API code
7 years ago