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

Method CompareShape

src/ffi/extra/structural_equal.cc:377–387  ·  view source on GitHub ↗

NOLINTNEXTLINE(performance-unnecessary-value-param)

Source from the content-addressed store, hash-verified

375
376 // NOLINTNEXTLINE(performance-unnecessary-value-param)
377 bool CompareShape(Shape lhs, Shape rhs) {
378 if (lhs.size() != rhs.size()) {
379 return false;
380 }
381 for (size_t i = 0; i < lhs.size(); ++i) {
382 if (lhs[i] != rhs[i]) {
383 return false;
384 }
385 }
386 return true;
387 }
388
389 // NOLINTNEXTLINE(performance-unnecessary-value-param)
390 bool CompareTensor(Tensor lhs, Tensor rhs) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected