Skip to content

Commit 35b5486

Browse files
authored
feat: add is_addressable for pjrt devices (#978)
1 parent 058a222 commit 35b5486

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deps/ReactantExtra/API.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2384,3 +2384,7 @@ extern "C" void ifrt_hlo_module_cost_analysis_properties(
23842384
}
23852385

23862386
#pragma endregion
2387+
2388+
extern "C" bool pjrt_device_is_addressable(PjRtDevice *device) {
2389+
return device->IsAddressable();
2390+
}

0 commit comments

Comments
 (0)