1. 27 11月, 2018 1 次提交
    • T
      Make NCE_OP more efficient and support SelectedRows (#14469) · 56a4912b
      tangwei12 提交于
      * Fix truncated normal.
      
      * Fix.
      
      * Make nce support more distribution.
      
      * Fix API.spec.
      
      * Fix python API.
      
      * Fix.
      test=develop
      
      * Fix API.spec
      test=develop
      
      * Fix sampler.
      
      * Fix order of arguments in python API.
      test=develop
      
      * NCE add selectedrows support
      
      * NCE update weighted sampling
      
      * fix bugs in nce_op, and assign_value_op optimized
      
      * fix bugs in nce_op, revert assign_value_op
      
      * nce_op optimize
      
      * nce_op optimize
      
      * nce_op optimize
      
      * add selectedRows test later
      
      test=develop
      
      * add selectedRows supported
      
      * add selectedRows supported
      
      test=develop
      
      * add selectedRows supported
      
      * add nce selectedRows supported, test=develop
      
      * add nce selectedRows supported
      
      * add nce selectedRows supported, test=develop
      
      * fix height in nce, test=develop
      
      * add ut
      
      * add ut, test=develop
      
      * make AutoGrownIndex inline
      test=develop
      
      * fix tinny error, test=develop
      56a4912b
  2. 16 11月, 2018 1 次提交
    • W
      Make nce support more distribution. (#13549) · 17226782
      whs 提交于
      * Fix truncated normal.
      
      * Fix.
      
      * Make nce support more distribution.
      
      * Fix API.spec.
      
      * Fix python API.
      
      * Fix.
      test=develop
      
      * Fix API.spec
      test=develop
      
      * Fix sampler.
      
      * Fix order of arguments in python API.
      test=develop
      17226782
  3. 13 11月, 2018 1 次提交
  4. 15 6月, 2018 1 次提交
  5. 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
  6. 19 4月, 2018 1 次提交
  7. 17 4月, 2018 1 次提交
  8. 12 2月, 2018 1 次提交
  9. 10 2月, 2018 2 次提交
  10. 22 1月, 2018 1 次提交
  11. 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
  12. 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
  13. 20 12月, 2017 1 次提交
  14. 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
  15. 29 11月, 2017 1 次提交
  16. 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
  17. 16 11月, 2017 1 次提交
  18. 08 11月, 2017 1 次提交
    • W
      Add nce op · 3d276277
      wanghaoshuang 提交于
      1. Add nce forward and backward kernel for CPU
      3d276277