1. 15 11月, 2018 1 次提交
    • S
      add mkldnn prop_kind phase for inference-only case to pooling and activations (#14278) · 8a1eeec5
      Sylwester Fraczek 提交于
      * add is_test to pooling and activations
      
      add prop_kind support for layers activation. conv and pooling
      
      add a pass that sets is_test to true
      
      add transpiler version of is_test pass
      
      test=develop
      
      * patch test and pass
      
      test=develop
      
      * add pass to analyzer.h
      
      test=develop
      
      * add is_test attr description & pass only on mkldnn
      
      in:
      activation_op.cc
      batch_norm_op.cc
      conv_op.cc
      dropout_op.cc
      lrn_op.cc
      pool_op.cc
      sequence_pool_op.cc
      softmax_op.cc
      
      * fix is_test handling for activation pool and conv
      
      * change description of is_test for all layers again
      
      * remove GetAttr(use_mkldnn) from pass
      
      * rename correct_mkldnn_test_phase to is_test
      
      and remove dependency on MKLDNN
      test=develop
      
      * review fix magic number
      
      * two if(..)s into one
      
      * Check is_test once and pass mkldnn forward prop kind
      
      * dereference shared_ptr with * (without get())
      
      test=develop
      
      * add is_test_pass back
      
      test=develop
      8a1eeec5
  2. 29 10月, 2018 1 次提交
    • J
      Rebase of seqpool-max optimization · 458b16f4
      Jacek Czaja 提交于
      test=develop
      
      - Added rough profiling
      
      - Profiled maxpool itself
      
      - First draft of max seqpool optimization (is_test added)
      
      - Added unit tests to seqpool
      
      - Cosmetic fixes
      
      - Fix to UT of Seq pool
      
      Disabled grad checking for sequence max pool when is_test is set to True
      
      -Cosmetic fix to comment
      
      test=develop
      
      - Fix to GPU build
      
      test=develop
      
      - yet another GPU fix for sequence max pool
      
      - Fix to comment
      
      test=develop
      
      - Change to API of sequence_pool
      
      test=develop
      
      - Yet another API spec change
      
      test=develop
      458b16f4
  3. 10 10月, 2018 1 次提交
    • C
      Set the right shape of selected_rows (#13723) · e1761709
      chengduo 提交于
      * set the right shape of selected_rows
      test=develop
      
      * enhance check
      
      * fix activation_op
      
      * remove cast
      
      * use ShareDimInfo replace SetDim and ShareLod
      
      * use ShareDimAndLod
      test=develop
      
      * follow comment
      
      test=develop
      
      * check whether the input has lod
      test=develop
      
      * Split ShareDimAndLod
      
      test=develop
      
      * checkout clip.py
      test=develop
      e1761709
  4. 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
  5. 14 4月, 2018 1 次提交
  6. 12 2月, 2018 1 次提交
  7. 10 2月, 2018 2 次提交
  8. 09 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 2 次提交
  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. 07 12月, 2017 1 次提交
  14. 04 12月, 2017 1 次提交
    • Y
      While op forward for sentimental analysis (#6140) · d5e32794
      Yu Yang 提交于
      * Add DataFeeder
      
      A v2 API like data feeder for book demos.
      We can feed data directly from reader.
      
      * Fix CI
      
      * Add an unittest for while/rnn op forward
      
      * Add unittest for raw while op backward
      
      * Fix CI
      d5e32794
  15. 08 11月, 2017 1 次提交
    • Y
      Polish OpWithKernel · bbdac7f7
      Yu Yang 提交于
      * Chage `IndicateDataType` to `GetKernelType`. Make it easier to
        understand.
      * Change `OpKernelKey` to `OpKernelType`
      * Make operator developers can customize which kernel the operator will
        use in runtime.
      bbdac7f7
  16. 05 11月, 2017 1 次提交
    • K
      Fixing documentation for operators (#5373) · 2ac5d7d0
      kavyasrinet 提交于
      * Adding documentation for seq_expand
      
      * Adding documentation for seq_concat_op
      
      * Adding documentation for sequence_conv
      
      * Adding sequence_pool
      
      * Fixing review comment
      
      * Adding sequence_softmax
      
      * Updating doc for sigmoid_cross_entropy_with_logits
      2ac5d7d0
  17. 03 11月, 2017 3 次提交
  18. 01 11月, 2017 1 次提交
  19. 17 10月, 2017 2 次提交
  20. 16 10月, 2017 1 次提交
  21. 10 10月, 2017 1 次提交
  22. 07 10月, 2017 1 次提交
  23. 27 9月, 2017 1 次提交
    • Q
      Refactoring InferShape (#3946) · 9a9d50a6
      Qiao Longfei 提交于
      * init Infershape
      
      * add static InferShape interface
      
      * refactor add-op infershape
      
      * add AttrReader
      
      * add all maker's infershape
      
      * add all InferShape
      
      * add python infer api
      
      * add VarDesc interface
      
      * add python VarDesc and OpDesc interface
      
      * update python code
      
      * use infershape function to do shape inference
      
      * clean code
      
      * do not use pointer
      
      * refine code of op_proto_maker
      
      * add get_dims to VarDesc
      
      * refine the code
      
      * remove the dependency from operator to op registry
      
      * remove OpProtoAndCheckerMaker from operator
      
      * restore complete_add_op
      
      * add shape_infer_impl.h
      
      * code optimization
      
      * remove const return value
      
      * add fake BlockDesc class
      
      * optimize code
      
      * remove infer function in op_info
      
      * move InferShapeContextImpl to operator.h
      
      * optimize the interface of InferShapeContextBase
      
      * add temperary interface of new infershape
      
      * change add_op, clip_op, conv2d_op and activation_op
      
      * change all operators InferShape
      
      * fix SetDim
      
      * update cos_sim_op
      
      * update crop_op
      
      * update lookup_table_op
      
      * allocate tensor when call GetDim in InferShapeContext
      
      * update modified_huber_loss_op
      
      * update rowwise_add_op
      
      * update mean_op
      
      * update sequence_avg_pool_op
      
      * typo
      
      * remove old InferShape interface
      
      * can compile
      
      * fix or unit test
      
      * clean code
      
      * clean code
      
      * remove const before InferShapeContext
      
      * change InferenceContextBase to pointer
      
      * rename RunTime to Runtime, code clean
      9a9d50a6
  24. 22 9月, 2017 1 次提交
  25. 19 9月, 2017 1 次提交
  26. 15 9月, 2017 2 次提交
  27. 14 9月, 2017 1 次提交
  28. 13 9月, 2017 1 次提交