You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ET-VK] Adding get or create int function to read int value.
Pull Request resolved: #12357
This diff adds a new function `get_or_create_int` to the `ComputeGraph` class, which allows reading an integer value from a `ValueRef` index. The function returns the extracted integer value if the value at the index is an integer, otherwise it throws an error. Additionally, an overload of the function is added to return a default value if the value at the index is `None`.
ghstack-source-id: 295655467
@exported-using-ghexport
Differential Revision: [D78094858](https://our.internmc.facebook.com/intern/diff/D78094858/)
0 commit comments