1. 30 3月, 2023 3 次提交
  2. 29 3月, 2023 26 次提交
  3. 28 3月, 2023 11 次提交
    • 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
    • Z
      [inference] Remove log about fluid and fix uninitialization warning (#51558) · e91a7896
      Zhang Jun 提交于
      * Remove log about fluid
      * Remove useless forward declarations
      * Fix uninitialization warning (trt onehot)
      e91a7896
    • C
      support auto generate for kldiv_loss (#51886) · cdba7e36
      cyberslack_lee 提交于
      cdba7e36
    • support auto generate for cumprod (#52047) · a2d3c335
      张春乔 提交于
      * mv cumprod
      
      * add attrs
      
      * Update backward.yaml
      
      * Update backward.yaml
      a2d3c335
    • W
      Del old dygraph optest7 (#51999) · 6d0fa6f2
      wanghuancoder 提交于
      * delete old dygraph op test
      6d0fa6f2
    • X
      【prim】change layernorm_grad rules (#51879) · 789aac8a
      xiaoguoguo626807 提交于
      * support layer_norm prim and cinn test
      
      * enable cinn test
      
      * fix merge conflict
      
      * polish input for check_output_with_place
      
      * fix merge conflict
      
      * add more test case
      
      * fix merge conflict
      
      * polish test case
      
      * polish op_test
      
      * change ln_g rules
      
      * modify scale is none case
      
      * modify scale is none case
      
      * add public_python_api for check prim
      
      * modify setoutputgrad and fp64bug
      
      * add todo & delete log
      
      * delete Single***varname
      
      * delete get varname
      
      * modify FP64 bug
      
      * delete op test
      
      * recover
      
      * fix conflict
      
      ---------
      Co-authored-by: NWeilong Wu <veyron_wu@163.com>
      789aac8a
    • L
      add support to set chunk size of auto_growth_allocator (#52204) · b3efc923
      Leo Chen 提交于
      * add flag to set chunk size
      
      * use the flag
      
      * add vlog
      
      * add ut
      
      * rename ut
      b3efc923
    • S
      Add overflow check in memory efficient attention implementation (#52191) · ecff3864
      sneaxiy 提交于
      * add overflow check in memory efficient attention
      
      * fix ci compile error
      
      * fix ci compile error
      ecff3864
    • H
      fix int8 support for full kernel (#52194) · c145fd1e
      houj04 提交于
      * fix int8 support for full kernel
      
      * fix ut.
      c145fd1e
    • C
      support auto generate for huber_loss (#51951) · 2ba4515e
      cyberslack_lee 提交于
      * fix huber_loss
      
      * fix
      
      * fix ops.yaml add intermediate
      
      * fix
      
      * fix test
      2ba4515e
    • R
      support auto generate static for one_hot_v2 (#52134) · b6af72eb
      RedContritio 提交于
      * support auto generate static for one_hot_v2
      
      * format
      b6af72eb