MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CheckIsAlignedAndSingleElement

Method CheckIsAlignedAndSingleElement

tensorflow/core/framework/tensor.cc:704–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704void Tensor::CheckIsAlignedAndSingleElement() const {
705 CHECK(IsAligned()) << "Aligned and single element";
706 CHECK_EQ(1, NumElements()) << "Must have a one element tensor";
707}
708
709Tensor::~Tensor() { UnrefIfNonNull(buf_); }
710

Callers

nothing calls this directly

Calls 1

NumElementsFunction · 0.50

Tested by

no test coverage detected