Skip to content

Commit a3bc38a

Browse files
Jieying Luocopybara-github
authored andcommitted
Remove the check for PJRT C API version in GetCompiledMemoryStats.
PiperOrigin-RevId: 658130638
1 parent 8a5332d commit a3bc38a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

xla/pjrt/c/pjrt_c_api_helpers.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -994,13 +994,6 @@ absl::Span<PJRT_DeviceDescription* const> DeviceDescriptions(
994994

995995
absl::StatusOr<xla::CompiledMemoryStats> GetCompiledMemoryStats(
996996
const PJRT_Api* api, PJRT_Executable* executable) {
997-
// TODO(jieying): To be removed after 03/2024.
998-
if (api->pjrt_api_version.major_version == 0 &&
999-
api->pjrt_api_version.minor_version < 40) {
1000-
return absl::UnimplementedError(
1001-
"GetCompiledMemoryStats requires a plugin with PJRT C API version >= "
1002-
"0.40");
1003-
}
1004997
PJRT_Executable_GetCompiledMemoryStats_Args args;
1005998
args.struct_size = PJRT_Executable_GetCompiledMemoryStats_Args_STRUCT_SIZE;
1006999
args.extension_start = nullptr;

0 commit comments

Comments
 (0)