1. 15 7月, 2017 4 次提交
  2. 14 7月, 2017 16 次提交
  3. 13 7月, 2017 9 次提交
  4. 12 7月, 2017 11 次提交
    • Q
      test OpKernel (#2820) · be441f7d
      Qiao Longfei 提交于
      Add unit test for OpKernel
      be441f7d
    • Q
      add memory header file · 70d937c5
      qijun 提交于
      70d937c5
    • 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
    • Q
      follow comments · be2c1a3b
      qijun 提交于
      be2c1a3b
    • Q
      follow comments · a07deac9
      qijun 提交于
      a07deac9
    • Q
      follow comments · 85806e75
      qijun 提交于
      85806e75
    • Q
      fix gpu build error · 8ee50a35
      qijun 提交于
      8ee50a35
    • L
      fix pybind compile question · e0ea87c9
      Luo Tao 提交于
      e0ea87c9
    • Q
      follow comments · 4d336d90
      qijun 提交于
      4d336d90
    • Y
      Add OperatorWithKernel class · 0ff81920
      Yu Yang 提交于
      * User can register OpKernel to its Ops. The OpKernelMap saved in
        OperatorWithKernel. Each Op which inherits OperatorWithKernel will
        use `OpKernel::Compute` instead of Run.
      0ff81920
    • Q
      refine device_context · ef5f9deb
      qijun 提交于
      ef5f9deb