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

Method set_dim

tensorflow/core/framework/tensor_shape_test.cc:427–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427void TensorShapeOld::set_dim(int d, int64 size) {
428 CHECK_GE(d, 0);
429 CHECK_LT(d, dims());
430 CHECK_GE(size, 0);
431
432 // Update the number of elements. num_elements_ is int64.
433 dim_sizes_[d] = size;
434 recompute_dims();
435}
436
437void TensorShapeOld::RemoveDim(int d) {
438 CHECK_GE(d, 0);

Callers 1

TESTFunction · 0.45

Calls 1

dimsFunction · 0.85

Tested by

no test coverage detected