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

Function AppendTo

tensorflow/core/framework/tensor_shape.cc:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35template <class Shape>
36static void AppendTo(const TensorShapeBase<Shape>& s,
37 gtl::InlinedVector<int64, 8>* vals) {
38 for (auto dim : s) {
39 vals->push_back(dim.size);
40 }
41}
42
43void TensorShape::CheckDimsEqual(int NDIMS) const {
44 CHECK_EQ(NDIMS, dims()) << "Asking for tensor of " << NDIMS << " dimensions"

Callers 5

UnsafeAddDimMethod · 0.85
InsertDimMethod · 0.85
set_dimMethod · 0.85
SetDimWithStatusMethod · 0.85
RemoveDimRangeMethod · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected