Skip to content

Commit

Permalink
Bring down_cast function to ::tsl namespace
Browse files Browse the repository at this point in the history
We don't want to use tensorflow namespace inside xla/tsl

PiperOrigin-RevId: 697061565
  • Loading branch information
ezhulenev authored and Google-ML-Automation committed Nov 16, 2024
1 parent 3f407ff commit 72f6cca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions third_party/tsl/tsl/platform/default/casts.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,8 @@ inline To down_cast(From& f) {

} // namespace tensorflow

namespace tsl {
using ::tensorflow::down_cast;
}

#endif // TENSORFLOW_TSL_PLATFORM_DEFAULT_CASTS_H_

0 comments on commit 72f6cca

Please sign in to comment.