1. Enhances the recognition of tensor object.
Rule 1: The API must be within the supported tensor range.
Rule 2: Excluding external reference object.
2. The modified information should reflect the modification difference.
If the API name does not changed, indicating whether the parameter is modified.
1. More detailed reports are added to the conversion report.
2. The conversion prompt is provided for the 'isinstance' statement in the conversion script.
1. expression is like (out.size(0)), which is the initialization of a tuple, parameter is a function call.
When parsing parameters of the function call, the first'(' and last ')' characters of the tuple must be skip.
2. code duplication: two cases are combined.
Use the AST replaces the importlib/inspect modules to analyze and modify network definition script.
The importlib/inspect must load python script to analyze, but AST analysis is static code analysis and is very secure.