- 10 8月, 2017 1 次提交
-
-
由 Superjom 提交于
-
- 09 8月, 2017 1 次提交
-
-
由 Yan Chunwei 提交于
* add lodtensor * add reshape of lod * add details * rename Elements/Levels * size_t and vector reserve * add details * add const& std::shared_ptr * add lod_tensor_impl.h * remove a shared_ptr
-
- 08 8月, 2017 1 次提交
-
-
由 Yan Chunwei 提交于
* fix some enforce * remove compatible_type to avoid compile error * remove shared_ptr * fix tensor error msg
-
- 03 8月, 2017 2 次提交
- 02 8月, 2017 1 次提交
-
-
由 Yu Yang 提交于
Fix #3171
-
- 31 7月, 2017 2 次提交
- 28 7月, 2017 3 次提交
- 25 7月, 2017 4 次提交
- 21 7月, 2017 1 次提交
-
-
由 fengjiayi 提交于
1. Change PODDeleter's template parameter 'PlaceType' to 'Place'. 2. Limit PODDeleter and Tensor::mutable_data()'s `T` to POD type.
-
- 19 7月, 2017 6 次提交
-
-
由 liaogang 提交于
-
由 qijun 提交于
-
由 fengjiayi 提交于
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
-
由 Yi Wang 提交于
-
由 Yi Wang 提交于
-
由 Yi Wang 提交于
-
- 18 7月, 2017 2 次提交
- 17 7月, 2017 4 次提交
-
-
由 Yu Yang 提交于
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.
-
由 fengjiayi 提交于
-
由 qijun 提交于
-
由 qijun 提交于
-
- 15 7月, 2017 4 次提交
- 14 7月, 2017 7 次提交
-
-
由 fengjiayi 提交于
-
由 fengjiayi 提交于
-
由 fengjiayi 提交于
-
由 fengjiayi 提交于
-
由 fengjiayi 提交于
1. Add template T which indicates data type to `CopyFrom()`, `Slice()` and `ShareData()` functions. This makes `CopyData()` code much clearer. 2. Add `set_dim()`. 3. `product(DDim)` transforms `DDim` to `vector<int>` first and then calculate its product. That might be quite slow. For `product(dims_)` is frequently used in Tensor, we add a mumber variable `numel_` as a cache of the product result. TODO: refactor `product()` to make it more efficient. 4. Unable Tensor::operator= 5. Remove the limit of POD type, because `float16` and `int8` are not POD type.
-
由 fengjiayi 提交于
-
由 qijun 提交于
-
- 12 7月, 2017 1 次提交
-
-
由 fengjiayi 提交于
1. Add `Tensor::CopyFrom`. Current version can only support CPU memory copy. The support of GPU will be provided later by `paddle::memory`. The current implementation of `Tensor::CopyFrom` is a little inefficient: Every time `CopyFrom` is called, tensor will re-allocate its memory. However, if we try to check and reuse `placeholder_`, we have to provide a template parameter for `CopyFrom` to indicate the data type. It seems strange for a simple copy function. 2. Add `Tensor::mutable_data(Place place)`, which directly use member variable `dims_` as its dim parameter. This interface is required by `Op::InferShape`.
-