Yu Yang
efc2464f6c
Feature/save op ( #5090 )
...
* Init
* Stash
* Polish SaveLoadOp
* Fix CI
* Polish code
* Save GPU Tensor
* Stash
* Fix CI
8 years ago
Yu Yang
c532b96741
Remove template parameter for Tensor methods ( #4937 )
...
* Remove template parameter for Tensor methods
* Also check the type is correct when data()
* Simplize holder_
* Fix accuracy_op
* Register Code
8 years ago
QI JUN
2603cb7e86
Unify CUDA stream in Tensor CopyFrom interface ( #4692 )
...
* init
* unify CopyFrom interface
* fix gpu build error
* fix bug in tensor_py.h
* refine code comments and add TODO list
* fix conflicts in FeedOp and FetchOp
8 years ago
Abhinav Arora
383faaf719
Adding implementation for copying a vector to a tensor ( #4635 )
...
* Adding implementation for copying a vector to tensor
* Changing Tensor test to access gpu memory indirectly
8 years ago
Yi Wang
4558807c48
Use PADDLE_WITH_CUDA instead of PADDLE_WITH_GPU
8 years ago
Yu Yang
84500f9487
Change `PADDLE_ONLY_CPU` to `PADDLE_WITH_GPU`
...
By shell command
```bash
sed -i 's#ifdef PADDLE_ONLY_CPU#ifndef PADDLE_WITH_GPU#g' `find ./paddle/ -name '*.h' -o -name '*.cc' -o -name '*.cpp' -o -name '*.c' -o -name '*.cu'`
sed -i 's#ifndef PADDLE_ONLY_CPU#ifdef PADDLE_WITH_GPU#g' `find ./paddle/ -name '*.h' -o -name '*.cc' -o -name '*.cpp' -o -name '*.c' -o -name '*.cu'`
```
8 years ago
Yu Yang
a0ce05df1e
Remove `numel` field in tensor
...
* It is duplicated with `dim_`. We can use `dim_` to calculate `numel`
everytime. It does not cost too much.
* `numel` is not initialized by constructor. Also, `numel` is hard to
synchronize with `dim_`.
So just remove it.
8 years ago
hedaoyuan
7bf1e76fdc
Merge branch 'develop' of https://github.com/baidu/Paddle into conv_op
8 years ago
hedaoyuan
5860150d96
Fix Tensor::Slice with dims[0] == 1.
8 years ago
zchen0211
aa90ef9c80
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into develop
8 years ago
qingqing01
dbe0598745
update to develop branch and resolve conflicts.
8 years ago
qingqing01
ad64ca5da2
Call Tensor::numel() everywhere.
8 years ago
qingqing01
a2a69f2a54
Add function to get element count from tensor.
8 years ago
Zhuoyuan
2c8e795f1b
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into develop
8 years ago
fengjiayi
823bdd670f
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into dev_add_axis
8 years ago
fengjiayi
f2a66ffabb
Follow comments
8 years ago
qijun
11163dfc7a
make dim int to int64_t
8 years ago
Zhuoyuan
adfef243d2
tensor element size support
8 years ago
fengjiayi
d71396bf87
Add global function `flatten_to_2d()`
8 years ago
fengjiayi
e76fa85cc8
WIP
8 years ago
qijun
3bafa42b1a
fix tensor copyfrom bug
8 years ago
Superjom
dbf4035d0a
add a error message to tensor
8 years ago
Superjom
b1a8a9f61a
tensor slight improve
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
Yi Wang
8162ecd284
Move paddle/framework/detail/tensor-inl.h into framework/tensor_impl.h
8 years ago