MCPcopy Create free account
hub / github.com/apache/tvm-ffi / CustomAnyHash

Method CustomAnyHash

tests/cpp/testing_object.h:79–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 static TInt StaticAdd(TInt lhs, TInt rhs) { return TInt(lhs->value + rhs->value); }
78
79 static int64_t CustomAnyHash(const Any& src) {
80 return static_cast<int64_t>(src.cast<TInt>()->value + 1024);
81 }
82
83 static bool CustomAnyEqual(const Any& lhs, const Any& rhs) {
84 return lhs.cast<TInt>()->value == rhs.cast<TInt>()->value;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected