MCPcopy Create free account
hub / github.com/ai-techsystems/deepC / identifier

Method identifier

include/core/tensor.h:208–210  ·  view source on GitHub ↗

\brief identifier of the tensor

Source from the content-addressed store, hash-verified

206 }
207 /// \brief identifier of the tensor
208 size_t identifier() const {
209 return reinterpret_cast<size_t>(_mem_layout - 0xfff);
210 }
211 /// \brief check if this tensor has same id as other.
212 bool sameas(const tensor<T> &other) const {
213 return identifier() == other.identifier();

Callers 3

test_createMethod · 0.80
sameasMethod · 0.80
operator()Method · 0.80

Calls

no outgoing calls

Tested by 1

test_createMethod · 0.64