MCPcopy Create free account
hub / github.com/bytedance/bolt / equivalent

Method equivalent

bolt/type/Type.cpp:254–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252 : child_{std::move(child)}, parameters_{{TypeParameter(child_)}} {}
253
254bool ArrayType::equivalent(const Type& other) const {
255 if (&other == this) {
256 return true;
257 }
258 if (!Type::hasSameTypeId(other)) {
259 return false;
260 }
261 auto& otherArray = other.asArray();
262 return child_->equivalent(*otherArray.child_);
263}
264
265folly::dynamic ArrayType::serialize() const {
266 folly::dynamic obj = folly::dynamic::object;

Callers 15

TorchOperatorMethod · 0.45
operator()Method · 0.45
applyMethod · 0.45
exportArrayToArrowSchemaFunction · 0.45
exportRowToArrowSchemaFunction · 0.45
testNullConstantMethod · 0.45
TEST_FFunction · 0.45
assertEqualVectorsFunction · 0.45
assertEqualVectorsFunction · 0.45
fastAppendScalarFunction · 0.45
deserializeMethod · 0.45
ExpandNodeMethod · 0.45

Calls 5

sizeFunction · 0.85
asArrayMethod · 0.80
childAtMethod · 0.80
sizeMethod · 0.45
atMethod · 0.45

Tested by 6

testNullConstantMethod · 0.36
TEST_FFunction · 0.36
assertEqualVectorsFunction · 0.36
assertEqualVectorsFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36