1. 19 7月, 2017 3 次提交
  2. 18 7月, 2017 1 次提交
  3. 17 7月, 2017 4 次提交
  4. 15 7月, 2017 2 次提交
  5. 14 7月, 2017 7 次提交
  6. 12 7月, 2017 2 次提交
    • F
      Add Tensor::CopyFrom and Tensor::mutable_data(Place place) · 69d99d48
      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`.
      69d99d48
    • F
      fix some syntax problems · 2dccab87
      fengjiayi 提交于
      2dccab87
  7. 11 7月, 2017 4 次提交
    • F
      add more test · 0665dc97
      fengjiayi 提交于
      0665dc97
    • F
      Add several interfaces for Tensor class · ca39515e
      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.
      ca39515e
    • Q
      fix build error · a5eb1d8f
      qijun 提交于
      a5eb1d8f
    • Q
      add simple add_op_functor · 95851116
      qijun 提交于
      95851116
  8. 10 7月, 2017 1 次提交
    • Q
      init · 1a968b4f
      qijun 提交于
      1a968b4f
  9. 03 7月, 2017 6 次提交
  10. 28 6月, 2017 2 次提交
  11. 27 6月, 2017 1 次提交