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 extract_scalar_or function to extract scalar value or return a default if value at index is none.
Pull Request resolved: #12357
This diff adds a new function `extract_scalar_or` to the `ComputeGraph` class, which extracts a scalar value from a `ValueRef` index. If the value at the index is `None`, it returns a default value.
ghstack-source-id: 296059970
@exported-using-ghexport
Differential Revision: [D78094858](https://our.internmc.facebook.com/intern/diff/D78094858/)
0 commit comments