1. 28 3月, 2023 1 次提交
    • F
      Add basic functionalities to support Scalar & Scalars in op attr (#51984) · 2e9fd5e4
      Feiyu Chan 提交于
      Add basic functionalities to support Scalar & Scalars in operator attribute.
      
      1. extend allowed types in operator's attribute type, add `paddle::experimental::Scalar`, add corresponding protobuf Message types;
      2. Scalar enhancement, add formatting, equality;
      3. add code to handle Scalar & Scalars in opmaker, conversion from  paddle operator to phi kernel, opdesc construction and manipulation,  tensorrt converter, tracer, operator construction, etc;
      4. bind `paddle::experimental::Scalar` to python, as `libpaddle.Scalar`;
      5. add functionality to canonicalize attribute map according to OpProto(if the op the attribute map used for has an OpProto);
      6. add code to manipulate Scalar proto message via protobuffer python API;
      
      Add unittests.
      
      1. add test cases for formatting, equality for Scalars, and WrapAsScalars;
      2. add test cases for 'casting' between different morphs of attributes;
      3. add test cases for extracting scalar & scalars from attribute;
      4. add test cases for CanonicalizeScalarAttrs(and fix a bug in type index offset);
      5. fix gmock's library filename on windows platform.
      6. clean code: use canonicalize_attrs instead of inlining the function;
      7. add test cases for libpaddle.Scalar in python code.
      8. add test cases for `make_scalar_proto`, which manipulate proto message `Scalar` via protobuffer python API.
      2e9fd5e4
  2. 24 2月, 2023 1 次提交
  3. 25 8月, 2022 1 次提交
  4. 10 8月, 2022 1 次提交
  5. 04 7月, 2022 1 次提交
  6. 28 6月, 2022 1 次提交
    • R
      Remove boost::variant (#43100) · b3cf28f8
      Ruibiao Chen 提交于
      * boost::variant -> paddle::variant
      
      * boost::variant.apply_visit -> paddle::visit
      
      * Update pybind_boost_hraders.h
      
      * Fix CINN compilation errors
      
      * Revert FetchResultType
      b3cf28f8
  7. 05 6月, 2022 1 次提交
  8. 19 5月, 2022 1 次提交
  9. 20 2月, 2022 1 次提交
  10. 25 1月, 2022 1 次提交
  11. 08 4月, 2018 1 次提交
  12. 12 2月, 2018 1 次提交
  13. 10 2月, 2018 2 次提交
  14. 26 12月, 2017 1 次提交
  15. 25 7月, 2017 1 次提交
  16. 17 7月, 2017 2 次提交
  17. 11 7月, 2017 2 次提交
  18. 06 7月, 2017 2 次提交
  19. 05 7月, 2017 1 次提交
  20. 04 7月, 2017 4 次提交
  21. 03 7月, 2017 1 次提交
  22. 28 6月, 2017 2 次提交