1. 14 4月, 2023 8 次提交
    • F
      1. modify set_value op, use Scalars to represent attr `values`, instead of a... · dd2a749a
      Feiyu Chan 提交于
      1. modify set_value op, use Scalars to represent attr `values`, instead of a bunch of attributs of various types; (#52408)
      
      2. add program converter and set_value op as an example, which provides the functionality to convert `paddle::framework::ProgramDesc` between old and new formats(the differences are mainly some operators with incompatible updates in the definition);
      3. program version and operator version map now are always saved when serializing `paddle::framework::ProgramDesc` to identify the version;
      3. provide an option `legacy_format=false` in  serialization of `paddle::framework::ProgramDesc`, it decided whether to convert ProgramDesc back to a legacy format, which is compatible for paddle 2.4.2 or earlier versions to load and execute;
      4. deserialization of `paddle::framework::ProgramDesc` is now automatically detecting whether the bytes it receives is in legacy format(contains any of the operators that has been incompatibly updated and have any attribute of type `Scalar`) and convert it to new format. But if you want a faithful deserialization without the automatic conversion, you can use protobuf's deserialization instead. Though it is not recommended, it can be used for the purpose of testing.
      dd2a749a
    • J
      【Prim】Add more infer var type (#52818) · 630d14f5
      Jiabin Yang 提交于
      * add more infer var type
      
      * fix split error
      
      * fix ut
      
      * fix top_k infer vartype
      
      * fix top_k infer vartype
      630d14f5
    • Z
    • D
      add npu to device_guard (#52774) · 64b4aaba
      duanyanhui 提交于
      64b4aaba
    • [Function optimization] support uint16 python op in d2s (#52809) · 6d231b02
      骑马小猫 提交于
      * support uint16 python op in d2s
      
      * convert uint16 -> bfloat16 in docstring
      6d231b02
    • K
      rem cncl (#52434) · 25bd5ed8
      Kim Yann 提交于
      25bd5ed8
    • Y
      [AMP] Unify the static amp codes of fp16 and bf16. (#52694) · dfcba7f4
      Yiqun Liu 提交于
      * Unify the static amp codes of fp16 and bf16.
      
      * Polish apis and add unittest.
      
      * Add operator stats collecting tools for program.
      
      * Add the check of number of bloat16 operators in unittest.
      
      * Add warning for operator not supported for amp.
      
      * Add testing of BF16 O1 and O2.
      dfcba7f4
    • R
      f8d09011
  2. 13 4月, 2023 20 次提交
  3. 12 4月, 2023 12 次提交