1. 26 2月, 2020 2 次提交
    • Z
    • H
      Add Basic Function Return Type Analysis (#22747) · 66991218
      Huihuang Zheng 提交于
      1. Considering functions, I have to change the node type from single value to a set. Because python function is allowed to return different types. The set represent all possible types
      
      2. I added scope_name and scope_type for AstVarScope, because in python functions, variable may have different scope. For example:
      
      ```
      a = 3
      def foo(b):
          a = 9
          return a + b
      ```
      
      the `a` in `foo` is different to the `a` out of `foo`. Similar to class field. The scope_name will help me to know the function name when static analysis finds a `return` sentence.
      66991218
  2. 25 2月, 2020 6 次提交
  3. 24 2月, 2020 7 次提交
  4. 23 2月, 2020 1 次提交
  5. 22 2月, 2020 1 次提交
  6. 21 2月, 2020 3 次提交
  7. 20 2月, 2020 3 次提交
    • A
      Support if/else in dygraph_to_static (#22540) · 08b09f64
      Aurelius84 提交于
      * support nested if/else
      
      * support to derivate returns the parameter list automatically
      
      * polish tranform function of slice
      
      * fix modify x.numpy()[i] slice function
      
      * support to transform ast.node into callable function
      
      * fix get_name_ids bug and add more unittest test=develop
      
      * fix requirements.txt test=develop
      
      * remove useless import statement test=develop
      
      * Fixed version compatibility issues in param of function test=develop
      
      * use decorater to test ast_to_func test=develop
      
      * add textwrap.dedent for source_code test=develop
      
      * polish code comment
      
      * fix compatibility with python2 and python3 test=develop
      
      * fix gast version error test=develop
      
      * fix gast repo test=develop
      
      * polish transfer_from_node_type code test=develop
      
      * add nested_if_else unittest test=develop
      
      * split IfElseTransformer test=develop
      
      * specify gast version test=develop
      
      * fix ast_to_func root type test=develop
      08b09f64
    • W
      add fuse_group python unitest (#22532) · 7a4c29e0
      wangchaochaohu 提交于
      * add fuse_group python unintest
      7a4c29e0
    • H
      Add Basic Node Var Type Analysis (#22603) · 14672a63
      Huihuang Zheng 提交于
      1. Move AstNodeWrapper, StaticAnalysisVisitor to a new python file: static_analysis.py
      2. Add basic node var type analysis
      14672a63
  8. 19 2月, 2020 2 次提交
  9. 18 2月, 2020 4 次提交
  10. 17 2月, 2020 6 次提交
  11. 16 2月, 2020 3 次提交
  12. 15 2月, 2020 1 次提交
    • S
      update ops's unittest data type from float32 to float64 and shape over 100 (#22544) · 90ee3666
      Steffy-zxf 提交于
      * update ops's unittest of elementwise_pow, elementwise_max, elementwise_min, scale and sqrt
      1. update elementwise_pow, elementwise_max and scale's unitests with input data type (float32 -> float64)
      2. fix bug that the elementwise_pow doesn't meet threshold requirements with tackling float64 data
      3. remove sqrt from op_accuracy_white_list.py
      4. update the unittests of elementwise_pow, elementwise_max and elementwise_min ops that their input data shape over 100
      5. test=develop
      
      * modify the writing style according suggestions
      test=develop
      90ee3666
  13. 14 2月, 2020 1 次提交