dangqingqing
49aa2c042c
Implement GPU kernel for cross entropy operator.
8 years ago
fengjiayi
3e6e5c9286
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into refactor_registry_macro
8 years ago
fengjiayi
7a31d72d6b
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into refactor_registry_macro
8 years ago
Yu Yang
11c35605fc
Remove empty constructor for operator
8 years ago
Yu Yang
0b1052fca5
Get `DEFINE_OPERATOR_CTOR` Back to code
8 years ago
fengjiayi
2ea2fbea1b
Merge REGISTER_OP and REGISTER_GRADIENT_OP
8 years ago
Yi Wang
65bd7c77e4
Update
8 years ago
fengjiayi
f784741d4a
Refine macro
8 years ago
Yi Wang
9544068543
Resovle conflicts manually
8 years ago
dongzhihong
22f03c3981
"fix clang format"
8 years ago
dzhwinter
91e8aadaef
Merge branch 'develop' into type_alias
8 years ago
Qiao Longfei
e31a469ee0
add gradient test framework ( #3226 )
...
* init grad op checker
* can run
* add GradeChecker class
* use get_numeric_gradient
* refine code
* add softmax and cross entropy auto grad test
* use close to judge op_grad and numeric_grad
* add cpu and gpu compare
* add comments
* add support_gpu
* fix allclose
* fix name error and symplify code
* optimize gradient checker
* add test_cross_entropy_op
* update gradient_checker.py
* optimize code
* use random.uniform instead of random.random
* fix type bug
* optimize check_grad
* put SupportGPU into OperatorBase
* typo
8 years ago
dongzhihong
b32fcf2854
merge origin/develop
8 years ago
Yu Yang
7e830116a7
Try make pass
8 years ago
Yan Chunwei
2af35002f7
fix some enforce ( #3301 )
...
* fix some enforce
* remove compatible_type to avoid compile error
* remove shared_ptr
* fix tensor error msg
8 years ago
dongzhihong
9e25988f73
"net op alias"
8 years ago
Yan Chunwei
c72253127f
crossentropy grad op ( #3186 )
...
* init cross entropy graident
* add crossentropy grad op
* remove details
* fix static compile
8 years ago
Yi Wang
9620df4464
Reformat paddle/operators/* strictly following Google Style Guide
8 years ago
Qiao Longfei
61ebacbcd3
use operator context and infer context ( #3024 )
...
* use operator context
* optimize code
* update net infershape
* update InferShape
* disable override InferShape(scope) in OperatorBase
* change InferShapeImpl to InferShape
* add template to OperatorContext Input/Output
* merge Input InputVar, Output OutputVar
* change Inputs to MultiInput
* fix conflict
* fix MultiInput bugs and add unit test
* rename KernelContext to ExecutionContext
* clean code
* change InferShape to protected
* fix template bug
* refine code
* use InputVar instead of Input<Variable>
* typo
* optimize code
8 years ago
Yu Yang
efc119b43b
Add type_alias to import framework into ops
...
Make implement an operator less noisy.
8 years ago
fengjiayi
06358129a2
Fix compile error
8 years ago
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