Commit 344febd
committed
Update base for Update on "[ET-VK] Adding get or create int function to read int value."
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`.
Differential Revision: [D78094858](https://our.internmc.facebook.com/intern/diff/D78094858/)
[ghstack-poisoned]1 parent e8c538f commit 344febd
File tree
0 file changed
+0
-0
lines changed0 file changed
+0
-0
lines changed
0 commit comments