| 43 | // etc). It does not guarantee any atomicity or barriers. |
| 44 | template <typename T> |
| 45 | EIGEN_ALWAYS_INLINE EIGEN_DEVICE_FUNC const T SubtleMustCopy(const T &x) { |
| 46 | static_assert(std::is_integral<T>::value, |
| 47 | "SubtleMustCopy can only be used on integer types."); |
| 48 | auto *to_x = reinterpret_cast<const volatile T *>(&x); |
| 49 | return *to_x; |
| 50 | } |
| 51 | } // namespace internal |
| 52 | } // namespace tensorflow |
| 53 |
no outgoing calls
no test coverage detected