Skip to content

Commit

Permalink
[fix] Compiling error cause TF2.13 didn't define MAYBE_ADD_SOURCE_LOC…
Browse files Browse the repository at this point in the history
…ATION macro.
  • Loading branch information
MoFHeka authored and rhdong committed Mar 25, 2024
1 parent ca4b266 commit c4e171c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ This code is for compatibility.*/
} // namespace recommenders_addons
} // namespace tensorflow

#ifndef MAYBE_ADD_SOURCE_LOCATION
#define MAYBE_ADD_SOURCE_LOCATION(status) \
{}
#endif // MAYBE_ADD_SOURCE_LOCATION

// For propagating errors when calling a function but not return status.
#if TF_VERSION_INTEGER >= 2130
#define TFRA_LOG_IF_ERROR(...) \
Expand Down

0 comments on commit c4e171c

Please sign in to comment.