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

Method scalar

src/shape.cpp:553–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551}
552
553bool shape::scalar() const
554{
555 if(this->dynamic())
556 {
557 return false;
558 }
559 assert(this->lens().size() == this->strides().size());
560 // if any stride > 0, then accumulate will return false
561 return this->sub_shapes().empty() and
562 std::accumulate(this->strides().begin(), this->strides().end(), std::size_t(0)) == 0;
563}
564
565bool shape::standard() const { return impl->m_standard; }
566

Callers 15

TEST_CASEFunction · 0.80
is_clip_scalarFunction · 0.80
TEST_CASEFunction · 0.80
TEST_CASEFunction · 0.80
qparam_broadcast_opMethod · 0.80
is_candidateMethod · 0.80
is_non_scalar_constFunction · 0.80
get_scalarFunction · 0.80
compute_shapesMethod · 0.80
concat_const_foldableFunction · 0.80
applyMethod · 0.80
applyMethod · 0.80

Calls 7

dynamicMethod · 0.95
accumulateFunction · 0.85
lensMethod · 0.80
sizeMethod · 0.45
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 3

is_clip_scalarFunction · 0.64
TEST_CASEFunction · 0.64
TEST_CASEFunction · 0.64