1. 13 11月, 2018 1 次提交
  2. 15 6月, 2018 1 次提交
  3. 08 5月, 2018 1 次提交
    • Y
      Clean OpProtoAndCheckerMaker · 0e78cb69
      Yu Yang 提交于
      Do not use ctor
      
      * Reduce line of codes.
      * We can use virtual function for Maker now.
      * The implementation does not care what maker holds, it is easier to
      refactor later.
      0e78cb69
  4. 19 4月, 2018 1 次提交
  5. 17 4月, 2018 1 次提交
  6. 12 2月, 2018 1 次提交
  7. 10 2月, 2018 2 次提交
  8. 22 1月, 2018 1 次提交
  9. 08 1月, 2018 1 次提交
    • Q
      cpu gpu transform function (#7191) · 0f353ab4
      Qiao Longfei 提交于
      * add rename guard
      
      * add device_data_transform
      
      * add device_data_transform_test
      
      * modify GetExpectedKernelType
      
      * update operator.run
      
      * support test test_label_semantic_roles
      
      * optimize code
      
      * optimize code
      
      * rename GetActualKernelType to GetExpectedKernelType
      
      * fix chunk_eval_op and device_data_transform_test
      
      * add is_same_place to place
      
      * optimize code, refine rename_guard
      
      * refine rename guard, add GetKernelTypeForVar
      
      * optimize code
      
      * add some log
      
      * rename guard
      
      * use sub scope to create var
      
      * fix compile
      
      * add IsInitialized for Tensor
      
      * add VarIsTensor
      
      * fix op_registry_test
      
      * test
      
      * tmp disable priority
      
      * restore switch_kernel.md
      
      * code clean
      0f353ab4
  10. 25 12月, 2017 1 次提交
    • Q
      Impl kernel hint (#6883) · af0c4c45
      Qiao Longfei 提交于
      * init kernel hint
      
      * fix typo
      
      * rm unused code
      
      * add include in op_kernel.h
      
      * restore op_kernel since it will be moved to op_kernel_type
      
      * change force_cpu to use_cpu
      
      * fix compilation
      af0c4c45
  11. 20 12月, 2017 1 次提交
  12. 12 12月, 2017 1 次提交
    • Q
      Refine device context (#6433) · 61ec0b95
      QI JUN 提交于
      There are mainly following fixes:
      
      - take `DeviceContext` as the template parameter of math functors and OpKernel instead of `Place`
      - remove `eigen_device` interface in base class  `DeviceContext`
      - remove `GetEigenDevice` interface in `ExecutionContext` and base class `DeviceContext`
      - remove unused `platform::EigenDeviceConverter`
      - rename `REGISTER_OP_GPU_KERNEL` to `REGISTER_OP_CUDA_KERNEL`
      - rename `USE_GPU_ONLY_OP` to `USE_CUDA_ONLY_OP`
      61ec0b95
  13. 29 11月, 2017 1 次提交
  14. 28 11月, 2017 1 次提交
    • W
      Refine code and comments · ea7359c6
      wanghaoshuang 提交于
      1. Remove checking for num_neg_samples.
      2. Fix dims of Output(Cost) and Input(Bias).
      3. Renamed num_sampled_classes to num_neg_samples.
      4. Add TODO for add more distribution sampler.
      5. Init grad_data of bias by zero.
      6. Refine comments.
      7. Register a kernel for type double.
      ea7359c6
  15. 16 11月, 2017 1 次提交
  16. 08 11月, 2017 1 次提交
    • W
      Add nce op · 3d276277
      wanghaoshuang 提交于
      1. Add nce forward and backward kernel for CPU
      3d276277