1. 28 2月, 2020 1 次提交
    • L
      fix dygraph_to_static_ouput and add a new decorator. (#22785) · 68a92e46
      liym27 提交于
      * change dygraph_to_static_output to dygraph_to_static_graph. test=develop
      
      * Remove duplicate code. test=develop
      
      * Follow comments from Liujie. test=develop
      
      * change dygraph_to_static_output to dygraph_to_static_graph. test=develop
      68a92e46
  2. 27 2月, 2020 1 次提交
  3. 26 2月, 2020 1 次提交
    • 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
  4. 24 2月, 2020 2 次提交
    • A
      Add IsControlFlowIfVisitor in ast_transformer (#22709) · dab5e5d8
      Aurelius84 提交于
      * add is_control_flow_if  test=develop
      dab5e5d8
    • L
      support dygraph basic api transformed to static api (#22678) · 68c76793
      liym27 提交于
      * support dygraph to static graph for simple case.
      
      * add test for dygraph API recognition. test=develop
      
      * support basic to_variable api. test=develop
      
      * update dict: dygraph_class_to_static_api
      
      * add all tests of dygraph api. test=develop
      
      * use gast/astor instead of ast/codegen for the compatibility of PY2 and PY3. test=develop
      
      * add arg 'num_flatten_dims' for fc ast node. test=develop
      
      * Modify names of class by Camel-Case.
      68c76793
  5. 23 2月, 2020 1 次提交
  6. 20 2月, 2020 3 次提交
    • L
      unexpose tracer, test=develop (#22661) · d39d8bee
      Leo Chen 提交于
      d39d8bee
    • 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
    • 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
  7. 19 2月, 2020 1 次提交
  8. 18 2月, 2020 1 次提交
  9. 17 2月, 2020 1 次提交
  10. 16 2月, 2020 1 次提交
  11. 15 2月, 2020 1 次提交
  12. 13 2月, 2020 2 次提交
  13. 10 2月, 2020 1 次提交
  14. 21 1月, 2020 1 次提交
  15. 17 1月, 2020 2 次提交
  16. 15 1月, 2020 2 次提交
  17. 09 1月, 2020 4 次提交
    • S
      named_sublayers and named_parameters (#21868) · 83037e55
      songyouwei 提交于
      * use snake_cased Layer name
      
      * add named_parameters and named_sublayers api
      
      * add include_sublayers param, add unittest
      test=develop
      
      * fix named unittests
      test=develop
      
      * fix unittest
      test=develop
      
      * add api docs
      test=develop
      
      * arg fix
      test=develop
      
      * reserve rnn_impl name_scope for static graph
      test=develop
      
      * fix load static param
      test=develop
      
      * fix load static param
      test=develop
      83037e55
    • Z
      add clear_gradients for Optimizer and add clear_gradients api description (#21948) · 7d10edc5
      zhongpu 提交于
      * add clear_gradients for Optimizer, add api description, test=develop
      
      * fix optest for optimizer's clear_gradient interface, test=develop
      
      * add sample code, test=develop
      
      * polish sample code, test=develop
      7d10edc5
    • L
      update layers used in transformer dygraph model, test=develop (#22051) · 51cb918a
      Leo Chen 提交于
      * update layers, test=develop
      
      * update layers for resnet, test=develop
      
      * fix is_test attr, test=develop
      
      * update cycle_gan, test=develop
      
      * update reinforcement_learning, test=develop
      
      * update ocr, test=develop
      
      * fix bug, test=develop
      51cb918a
    • S
      update PRelu arg (#21946) · 1ae3f47f
      songyouwei 提交于
      * update PRelu arg
      test=develop
      
      * fix unittests
      test=develop
      
      * fix element mode alpha shape
      test=develop
      
      * split channel_or_input_shape arg
      test=develop
      
      * fix unittest
      test=develop
      1ae3f47f
  18. 08 1月, 2020 2 次提交
  19. 07 1月, 2020 1 次提交
    • H
      Support dygraph structuerd name (#21930) · 2f49cf70
      hong 提交于
      * support dygraph structured name; test=develop
      
      * add load static param unitest and fix save load; test=develop
      
      * fix varBase import error; test=develop
      
      * fix unitest error; test=develop
      
      * add comment for parameter; test=develop
      
      * fix uni test error; test=develop
      
      * change parallel se-resnet; test=develop
      
      * fix dygraph se resnext parallel test; test=develop
      
      * remove useless code; test=develop
      
      * remove useless code; test=develop
      2f49cf70
  20. 06 1月, 2020 1 次提交
  21. 02 1月, 2020 1 次提交
    • S
      move private weight fields to public ones (#21982) · 56414c7d
      songyouwei 提交于
      * move private weight properties to public ones
      test=develop
      
      * revert changes to FC
      test=develop
      
      * fix unittest
      test=develop
      
      * fix unittest
      test=develop
      
      * fix coverage
      test=develop
      
      * fix merged dev
      test=develop
      
      * bug fix
      test=develop
      56414c7d
  22. 31 12月, 2019 2 次提交
  23. 27 12月, 2019 2 次提交
    • L
      ba51043f
    • Z
      remove params in Tracer object (in dygraph) (#20815) · dca07583
      zhongpu 提交于
      * remove params in Tracer object, test=develop
      
      * Repair failed optest, test=develop
      
      * remove build_once & name_scope (Conv2D)
      test=develop
      
      * fix unittest
      test=develop
      
      * Conv2DTranspose
      
      * Conv3D & Conv3DTranspose
      test=develop
      
      * Pool2D & BatchNorm
      
      * Embedding
      
      * LayerNorm
      
      * GRUUnit & NCE
      
      * PRelu
      
      * BilinearTensorProduct
      
      * GroupNorm & SpectralNorm
      
      * TreeConv
      test=develop
      
      * fix LayerNorm in transformer unnittest
      test=develop
      
      * disable LayerNorm or BatchNorm in multicard
      test=develop
      
      * refine Layer.create_parameter api
      test=develop
      
      * refine LayerNorm, remove begin_norm_axis param, add normed shape check
      test=develop
      
      * LayerNorm bug fix
      test=develop
      
      * fix optest,test=develop
      
      * fix optest, test=develop
      
      * fix optest for pass parameter_list when constructing an Optimizer class instance, test=develop
      
      * polish code for better code style, test=develop
      
      * fix se_resnext optest, test=develop
      
      * polish code for better code style, test=develop
      Co-authored-by: Nsongyouwei <youwei0314@gmail.com>
      dca07583
  24. 25 12月, 2019 1 次提交
    • S
      Add ParameterList (#21056) · cff7a498
      songyouwei 提交于
      * add ParameterList container
      
      * add unittest
      test=develop
      
      * fix container, rebase remove build_once
      test=develop
      
      * add parameters None check
      test=develop
      
      * update Sequential unittest
      test=develop
      
      * use Linear in Sequential sample code
      test=develop
      
      * fix Sequential arg type doc
      test=develop
      cff7a498
  25. 24 12月, 2019 1 次提交
  26. 19 12月, 2019 2 次提交
  27. 18 12月, 2019 1 次提交