TensorPilot Frontend for PythonOur purpose is to provide a front-end for program analysis of Python functions. Displays a floating Codelens "Tensor Go" in front of each Python function. This plugin relies on a Python backend to handle a function clicked by the user, and then returns a new function text. Our goal is to analyze the neural network model of the function based on its text, and then map it to another kind of code. Hence the name UseOpen the Python file, click tensor go, and Tensorpilot will send the following function to localhost:7070 port using HTTP request. Users should implement a server by themselves and open port 7070. The server uses the POST message to receive the HTTP request sent. The POST message is in Json format, for example: {'function': <old function body string>}. The server should then return a new replaced string directly in protocol body. License |