MCPcopy Create free account
hub / github.com/bab2min/tomotopy / getHash

Method getHash

src/python/handler/py_LDA.cpp:539–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539py::UniqueObj LDAModelObject::getHash() const
540{
541 auto* inst = getInst<tomoto::ILDAModel>();
542 std::array<uint64_t, 2> hash = inst->getHash();
543 return py::UniqueObj{ PyObject_CallMethod((PyObject*)&PyLong_Type, "from_bytes", "y#s", (const char*)hash.data(), sizeof(hash), "big") };
544}
545
546py::UniquePObj<LDAModelObject> LDAModelObject::copy(PyObject* cls) const
547{

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected