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

Method IsSameAs

tensorflow/stream_executor/device_memory.h:95–97  ·  view source on GitHub ↗

Returns whether the two DeviceMemoryBase segments are identical (both in their opaque pointer and size).

Source from the content-addressed store, hash-verified

93 // Returns whether the two DeviceMemoryBase segments are identical (both in
94 // their opaque pointer and size).
95 bool IsSameAs(const DeviceMemoryBase &other) const {
96 return opaque() == other.opaque() && size() == other.size();
97 }
98
99 protected:
100 friend class StreamExecutor;

Callers 3

AliasBufferFromMethod · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 3

opaqueMethod · 0.80
sizeFunction · 0.50
sizeMethod · 0.45

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64