MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SubtleMustCopy

Function SubtleMustCopy

tensorflow/core/framework/bounds_check.h:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43// etc). It does not guarantee any atomicity or barriers.
44template <typename T>
45EIGEN_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

Callers 15

ComputeMethod · 0.85
FindSparseValueFunction · 0.85
InitDimsMethod · 0.85
MakeShapeHelperFunction · 0.85
ComputeAsyncMethod · 0.85
ComputeAsyncMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85
NewSizesFunction · 0.85
operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected