Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add string versions of argument funcs in jit Node (#45464)
Summary: Pull Request resolved: #45464 Usage of Symbols to find arguments requires one to generate a nonsense symbol for inputs which don't already have one. The intention of symbols appears to be something of an internalized string, but the namespace component doesn't apply to an argument. In order to access the arguments by name without adding new symbols, versions of those functions with std::string input was added. These can be proved valid based on the existing codepath. Additionally, a hasNamedInput convenience function was added to remove the necessity of a try/catch block in user code. The primary motivation is to be able to easily handle the variable number of arguments in glow, so that the arange op may be implemented. Reviewed By: eellison Differential Revision: D23972315 fbshipit-source-id: 3e0b41910cf07e916186f1506281fb221725a91b
- Loading branch information