a magic hinting trick for paddle Tensor
in IDE. Please enjoy the main.py
to get more details.
- enhance the type hinting for Paddle Tensor in Dev & Runtime mode
- add stub file for IDE to detect members of Tensor
- define the tensor.pyi to define the members of
Tensor
, which is not sensitive how theTensor
is implemented. - use
TYPE_CHECKING
to detect theDEV
orRuntime
mode.
- @wj-Mcat - Jingjing WU (吴京京)
- Code © 2022 https://github.com/wj-Mcat
- Code released under the Apache-2.0 License
- Docs released under Creative Commons