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

Method InsertDim

tensorflow/core/framework/tensor_shape_test.cc:417–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417void TensorShapeOld::InsertDim(int d, int64 size) {
418 CHECK_GE(d, 0);
419 CHECK_LE(d, dims());
420 CHECK_GE(size, 0);
421 dim_sizes_.insert(dim_sizes_.begin() + d, size);
422 num_elements_ *= size;
423 CHECK_LE(0, num_elements_);
424 CHECK_LE(num_elements_, kMaxElements);
425}
426
427void TensorShapeOld::set_dim(int d, int64 size) {
428 CHECK_GE(d, 0);

Callers 1

TESTFunction · 0.45

Calls 3

dimsFunction · 0.85
insertMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected