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

Method sameas

include/core/tensor.h:212–214  ·  view source on GitHub ↗

\brief check if this tensor has same id as other.

Source from the content-addressed store, hash-verified

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();
214 }
215 /// \brief Return copy of the tensor, cast to a specified type.
216 template <typename newT> tensor<newT> asType() {
217 // if (typeid(T) == typeid(newT))

Callers 1

test_createMethod · 0.80

Calls 1

identifierMethod · 0.80

Tested by 1

test_createMethod · 0.64