- 11 7月, 2017 2 次提交
-
-
由 fengjiayi 提交于
-
由 fengjiayi 提交于
1. Add member variable 'DDim dims_' and a getter function 'dims()'. 'dims' is supposed to hold tensor's shape during Op::InferShape. 2. Remove 'mutable_data' which use default Place. User must specify a explicit Place when call 'mutable_data'. 3. A PlaceHolder may be shared by more than one tensor, and some of them may be the others' slices. So we add a new member variable 'offset_' for Tensor, which is used to show the byte offset between PlaceHolder::ptr_ and where tensor's data really begins. 4. Add functions 'ShareDataFrom' and 'Slice' for Tensor. TODO: Tensor needs a 'CopyFrom' function.
-
- 03 7月, 2017 6 次提交
- 28 6月, 2017 2 次提交
- 27 6月, 2017 1 次提交
-
-
由 Yi Wang 提交于
-