Qiao Longfei
2685765905
add cross-entropy-op ( #2965 )
...
* add cross-entropy-op
* add infershape and compute
* implement Infershape and compute of onehotcrossentropy op
8 years ago
xzl
e8d171bbd2
add check for groups and inputChannels
8 years ago
xzl
cfd4c05e2e
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into mobilenet_gpu
8 years ago
Yi Wang
75b53179a2
Merge pull request #2882 from gangliao/cpu_mem
...
Update Memory ReadMe Doc
8 years ago
xzl
d5b0c57d7e
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into mobilenet_gpu
8 years ago
xzl
248149f448
add depthwiseconv test and fix the little bug of the convOpTest
8 years ago
QI JUN
155f727c21
Merge pull request #2978 from QiJune/fix_bug_EigenVector
...
fix bug in EigenVector::Flatten method
8 years ago
fengjiayi
9418717f80
Fix compile errors
8 years ago
fengjiayi
f41fcd43d0
Merge branch 'backward' of https://github.com/dzhwinter/Paddle into backward
8 years ago
fengjiayi
99a5904c75
Merge branch 'backward_dev' into backward
8 years ago
dongzhihong
088e2200c4
"remove unused fake fc op"
8 years ago
xzl
5b07d4e009
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into mobilenet_gpu
8 years ago
tensor-tang
577bb4e346
rename mkllite to mklml
8 years ago
qijun
586365e0ad
using alias to simplify code
8 years ago
liaogang
b3115fb01c
Add SetDeviceId in memcpy
8 years ago
qijun
407b0efc79
fix bug in EigenVector::Flatten method
8 years ago
fengjiayi
b635af71d8
Fix some compile error
8 years ago
fengjiayi
8a5ee462a5
Fix some compile errors
8 years ago
wanghaoshuang
7c09999d57
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into fix_croplayer
8 years ago
wanghaoshuang
4409255c27
fix code format
8 years ago
dongzhihong
6f0539246c
Merge remote-tracking branch 'origin/develop' into backward2
8 years ago
dongzhihong
81a352aff7
"test fc without gradient"
8 years ago
xzl
4d6be9741c
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into mobilenet_gpu
8 years ago
liaogang
0897d18a0a
Fix string.h for memcpy
8 years ago
dongzhihong
14424f314c
"use built-in operator"
8 years ago
liaogang
00500eeb7d
Add stdlib.h for memcpy
8 years ago
liaogang
ca89bfada3
Fix paddle enforce special cases
8 years ago
qijun
f46961e223
Merge remote-tracking branch 'baidu/develop' into implement_basic_OpKernel
8 years ago
liaogang
98f0171c94
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into error
8 years ago
fengjiayi
e192d0fd01
Refactor the implementation of gradient Op creating
8 years ago
dongzhihong
4876f35858
"make plainNet shared"
8 years ago
xzl
bd54eb9834
tiny modify the test
8 years ago
qiaolongfei
e4984f13e9
fix tensor usage in sgd-op
8 years ago
liaogang
527c85970b
Fix H2D and D2H order
8 years ago
qijun
a6347daa05
fix clang compile warning
8 years ago
liaogang
5e8a4f16c7
Fix conflcts
8 years ago
liaogang
ee112915e3
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into error
8 years ago
qijun
3014662d4a
Merge branch 'implement_basic_OpKernel' of https://github.com/QiJune/Paddle into implement_basic_OpKernel
8 years ago
Qiao Longfei
e3b27d1998
Add sgd op ( #2950 )
...
* a simplest SGD op
8 years ago
qijun
736d078cbf
replace Tensor::tensor to EigenTensor::From
8 years ago
liaogang
aae53d836b
Merge conflicts
8 years ago
liaogang
b05886414b
Add cuda memcpy in gpu_info
8 years ago
liaogang
e53a48b46a
Add memcpy
8 years ago
xzl
1f516fa0ef
modify format, and modify the layer grad test, op test
8 years ago
qijun
8ad9006dd5
Merge remote-tracking branch 'baidu/develop' into implement_basic_OpKernel
8 years ago
QI JUN
d81084939b
Merge pull request #2953 from wangkuiyi/tensor_type_to_eigen
...
Refactorize Tensor to Eigen convesion
8 years ago
liaogang
2d2ee47bda
FIX: fix string
8 years ago
qijun
d6d057b4e8
change EQ to NEAR for float value
8 years ago
xzl
81998868f0
fuse interface of depthwise to expandconv
8 years ago
whs
2e2a674892
Merge pull request #2490 from wanghaoshuang/crop_layer
...
add crop layer
8 years ago
dongzhihong
73f4779808
Merge remote-tracking branch 'origin/develop' into backward2
8 years ago
Yu Yang
0380bfb3cf
Expose Net to Python
...
* Expose PlainNet to Python, make python can add_op, complete_add_op
* Provide a low level api to manipulate Net
* Unittest for Net::DebugString
8 years ago
qijun
57c27b4e00
make EigenTensor default unaligned and follow comments
8 years ago
liaogang
97c2a9a969
Fix: compiler error under gpu
8 years ago
fengjiayi
55d301722f
Simplify Tensor implimentation
...
ATTENTION: some interfaces changed:
1. void Tensor::set_dims(const DDim& dims) ==> void Tensor::Resize(const DDim& dims).
2. void Tensor::ShareDataFrom(const Tensor& src) ==> void Tensor::ShareDataWith(const Tensor& src)
3. DDim Tensor::dims() const ==> const DDim& Tensor::dims() const
8 years ago
qijun
14cfb8c262
fix gpu build error
8 years ago
liaogang
fab896c5a0
Remove using namespace
8 years ago
fengjiayi
3dc70ff282
Merge branch 'backward' of https://github.com/dzhwinter/Paddle into backward
8 years ago
Yu Yang
e8304bd92a
Merge pull request #2945 from reyoung/feature/grouped_ops
...
Skeleton Of fully connected operator
8 years ago
dongzhihong
8bc4892106
"fix comment "
8 years ago
qijun
cff8762f26
add more uinttest for EigenTensor
8 years ago
liaogang
941eccac83
Follow comments
8 years ago
fengjiayi
94a6b1fa43
rename a macro
8 years ago
dongzhihong
cb95587feb
"ignore some gradient of specific op"
8 years ago
xzl
21ab0eb8e1
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into mobilenet_gpu
8 years ago
xzl
f7390d115c
delete useless .h header in DepthwiseConvOpGpu.cu
8 years ago
wanghaoshuang
60a788933b
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into crop_layer
8 years ago
qijun
d9fa6159b7
add Flatten method to EigenVector
8 years ago
wanghaoshuang
3e7819c276
1. Reading image shape from input data instead of image_config
...
2. Add crop layer unitest
3. Fix bugs
8 years ago
fengjiayi
bf4da3d97a
Refactor Rigistry::CreateGradOp()
...
We put forward Op's inputs, outputs and output gradients into Grad
Op's inputs, and put forward Op's input gradients into Grad Op's output.
So Grad Op's `in_out_idx`, `input_format` and 'output format' need to be
rebuilt during Op creating.
8 years ago
liaogang
028f3dc4e5
Add memcpy
8 years ago
Yu Yang
0a0b4caaa7
Change Operator::create use py::bytes not std::string
8 years ago
Yu Yang
b90780c3a8
Merge pull request #2939 from reyoung/feature/refine_tensor_hpp
...
Tensor should use PADDLE_ONLY_CPU macro
8 years ago
xzl
d50c71f3e2
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into mobilenet_gpu
8 years ago
xzl
66520af9ca
accelerate inputbackward(delete 'if' in this func) of depthwise conv
8 years ago
Yi Wang
1981eaf922
Fix Tensor::data interface
8 years ago
Yi Wang
2538e20787
Fix wrong inclusion path
8 years ago
Yi Wang
00ed564307
Update
8 years ago
Yi Wang
cb1d1f167c
Add unit test
8 years ago
Yi Wang
642d3c4687
Refactorize Tensor to Eigen convesion
8 years ago
emailweixu
84a0d6d898
Merge pull request #2572 from skylian/error_clipping
...
Enable error clipping for fc layer
8 years ago
helinwang
a818afcc6c
Merge pull request #2887 from helinwang/fix_pre_commit
...
fix travis check style for Go
8 years ago
xzl
dbb658805e
modity the format
8 years ago
fengjiayi
e786746f6f
Merge branch 'backward' of https://github.com/dzhwinter/Paddle into backward
8 years ago
dongzhihong
855cae603c
move unused file
8 years ago
fengjiayi
7f1533f251
test collaborating
8 years ago
xzl
44927bf70a
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into mobilenet_gpu
8 years ago
xzl
11588b3670
support inputchannels != outputchannels of depthwiseconv
8 years ago
xzl
02e04b4441
fuse the conv and depthwise conv together
8 years ago
dongzhihong
8b80cf8989
"add net op testing"
8 years ago
dongzhihong
9890b23c82
fix confilct
8 years ago
dongzhihong
816b4c8ab0
"add backward Op"
8 years ago
qijun
b6c075527c
implement some basic OpKernel
8 years ago
Yu Yang
d3373c5b85
Skeleton Of fully connected operator
...
* Fc operator is a grouped operator, which combined by may internal
operators.
* InferShape & Run a FC operator in Python.
8 years ago
Yu Yang
ad728419d6
Merge pull request #2912 from reyoung/feature/better_network_debug_str
...
Override Net::DebugString to invoke inner ops_
8 years ago
Yu Yang
107b3395b4
Merge branch 'develop' into feature/better_network_debug_str
8 years ago
QI JUN
3208914b56
Merge pull request #2805 from QiJune/tensor_to_EigenTensor
...
Add method converting Tensor to Eigen TensorMap
8 years ago
Yu Yang
fb48cb120d
Merge pull request #2936 from reyoung/feature/create_op_in_cpp_params
...
Make CreateOp in Plain C++ params
8 years ago
Yu Yang
9b964b535b
Tensor should use PADDLE_ONLY_CPU macro
...
* Not use __CUDACC__ macro, because malloc in GPU memory do not have to
used in .cu file.
* Also, `PADDLE_ENFORCE` logic is wrong.
8 years ago
tensor-tang
89a4158038
enable MKLDNN library and MKL small package
8 years ago
Yu Yang
8539222a1a
Merge branch 'develop' into feature/is_in_gpu
8 years ago
Yu Yang
1dc53a289f
Use friend not to expose tensor's `type/place`
8 years ago
Yu Yang
f6a51d9b4e
Make CreateOp in Plain C++ params
8 years ago
QI JUN
d344f6702c
Merge branch 'develop' into tensor_to_EigenTensor
8 years ago
Yu Yang
875946fff4
Merge pull request #2935 from reyoung/feature/create_op_use_cpp_params
...
Change `in_out_idxs_` to shared_ptr
8 years ago
Helin Wang
22be2b2bb8
fix travis check style
8 years ago
helinwang
2db1b68d7c
Merge pull request #2885 from helinwang/handle_err
...
Add gometalinter errcheck to pre-commit-hook, fix all Go unchecked errors.
8 years ago
Yu Yang
c1219a530c
Change `in_out_idxs_` to shared_ptr
...
* `in_out_idxs_` shares between all operator instance in same type
of operator.
8 years ago
Yu Yang
1ac0bffaf7
Override Net::DebugString to invoke inner ops_
...
Net::DebugString() print what it is and invokes inner operators
DebugString() with a prefix '\t'.
8 years ago
Yu Yang
e00aae5386
Fix Merge Bugs
...
* There is a merge conflict when merge PR #2914
* Develop and PR #2914 both add `DDim::size` method, but did not
triger git merge conflict while merge.
8 years ago
Qiao Longfei
051676a7e4
support multiple template parameter in KernelType for REGISTER_OP_XPU_KERNEL ( #2932 )
8 years ago
Yu Yang
861b66d4e3
Merge pull request #2914 from reyoung/feature/add_some_skeletons_of_ops
...
Add skeletons of `mul`, `rowwise_add`, `sigmoid`, `softmax` ops
8 years ago
Yu Yang
a89c7ffa94
Make Tensor <--> Numpy interactive in tensor.h
...
* Follow review comments to seperate Tensor Numpy interactive methods in
tensor.h.
* Simplify logic for `CastToPyBufferImpl`, make it as one struct and in
details namespace.
* Remove `Scope` expose in Python, since it currently is useless.
* Remove some debug functions.
8 years ago
qijun
4d49f1d892
merge baidu/develop
8 years ago
hedaoyuan
f146b03b44
Merge pull request #2824 from hedaoyuan/fix_nnpack
...
Fix some link errors about NNPACK.
8 years ago
Helin Wang
37624b30ff
Fix Go pre-commit
8 years ago
Yu Yang
bde90be71b
Read/Write a Tensor Python
...
Basically following
http://pybind11.readthedocs.io/en/stable/advanced/pycpp/numpy.html
* Use buffer protocol to return a view of Tensor. It can be cast to
numpy array in Python.
* Set a numpy array to a tensor.
8 years ago
Yu Yang
122e83e36c
Fix unittest
8 years ago
fengjiayi
78fa5e307d
Add DDim::size()
8 years ago
fengjiayi
78bd815e85
refine conditional compilation and remove `numel_`
8 years ago
Yu Yang
73a9f0f25d
Merge develop
8 years ago
fengjiayi
1cd14f661b
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into dev_enable_tensor_test
8 years ago
Yu Yang
ad8fa77cce
Merge branch 'develop' into feature/add_some_skeletons_of_ops
8 years ago
Yu Yang
5847b96a61
Follow comments, correct implement `DDim::size()`
...
* Also fix unit test
8 years ago
qijun
87189665d9
merge baidu/develop
8 years ago
qijun
2a03e3808d
set correct place for output tensor
8 years ago
Yu Yang
0e77b31a02
Merge branch 'develop' into feature/op_creation_methods
8 years ago
Yan Chunwei
a0caf23430
Op varient inputs ( #2901 )
...
* add inputs
* add ut for multiple inputs
* fix AddToLayer
* op_desc -> op_proto
* CreateArgumentOffsetMap -> CreateInOutOffsetMap
* move CreateInOutOffsetMap from OperatorBase to op registry
* arg_idxs_ -> in_out_idxs_
8 years ago
Yu Yang
1ed237c11e
Add skeletons of `mul`, `rowwise_add`, `sigmoid`, `softmax` ops
...
* Implement InferShape and register them, give a stub Kernel method
by LOG(INFO)
8 years ago
qijun
6dc567a52e
merge baidu/develop
8 years ago
qijun
5017b15468
refactor tensor mutable_data
8 years ago
Yu Yang
a4eaf2d3ba
Merge pull request #2897 from reyoung/feature/op_library
...
CMake `op_library` function
8 years ago
Yiqun Liu
0ddbdbb14c
Merge pull request #2874 from Xreki/update_android_dockerfile
...
Update the dockerfile to build cross-compiling image for Android.
8 years ago
fengjiayi
a33e9da9c9
Merge pull request #2900 from Canpio/dev_ddim_update
...
Refactor DDim's product() and add slice_ddim()
8 years ago
Yu Yang
38310f9349
Refine CMake dependencies graph
8 years ago
Yu Yang
acc8025e48
Merge branch 'develop' into feature/op_library
8 years ago
Yu Yang
3bb1f98b65
Merge branch 'develop' into feature/op_library
8 years ago
Qiao Longfei
80a26a6308
check duplicate of ProtoAndCheckerMaker ( #2903 )
8 years ago
Liu Yiqun
8a3e735307
Delete the blank line at the end of script file build_android.sh.
8 years ago
Liu Yiqun
ac8c8bd5fb
Merge branch 'develop' into update_android_dockerfile
8 years ago
Yan Chunwei
cdec563449
Add enforce switch for convient develop ( #2850 )
...
* add NDEBUG switch to PADDLE_ENFORCE
8 years ago
Yu Yang
c5bc126762
Follow comment, rename to `GenerateTempVariableName`
8 years ago
Yu Yang
68f6ac011c
Merge branch 'develop' into feature/op_creation_methods
8 years ago
fengjiayi
778a1a9f87
add a comment for
8 years ago
qijun
65dbeb6a24
fix gpu build error
8 years ago
qingqing01
1032ef1893
Merge pull request #2907 from juliecbd/to_meet_cpplint
...
Change to meet cpplint style
8 years ago
qijun
9e3a9eb233
merge baidu/develop
8 years ago
武毅
23b8346072
Fault tolerant distributed training, just work version, with etcd ( #2849 )
...
* using etcd as fault tolerant training
* update
* workable version, ft not tested
* small fix
* update
* remove TODO
8 years ago
qijun
d649dbf442
implement add_op kernel
8 years ago
jc
a8c427e0d4
Change to meet cpplint style
8 years ago