MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / broadcasted

Method broadcasted

src/shape.cpp:542–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540}
541
542bool shape::broadcasted() const
543{
544 if(this->dynamic())
545 {
546 return false;
547 }
548 assert(this->lens().size() == this->strides().size());
549 return std::any_of(
550 this->strides().begin(), this->strides().end(), [](auto x) { return x == 0; });
551}
552
553bool shape::scalar() const
554{

Callers 9

transposedMethod · 0.95
TEST_CASEFunction · 0.45
literal_broadcastFunction · 0.45
TEST_CASEFunction · 0.45
int4_quantize_moduleFunction · 0.45
skip_propagateFunction · 0.45
find_permutationFunction · 0.45
applyMethod · 0.45

Calls 6

dynamicMethod · 0.95
lensMethod · 0.80
any_ofFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 4

TEST_CASEFunction · 0.36
literal_broadcastFunction · 0.36
TEST_CASEFunction · 0.36