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

Method Clear

tensorflow/core/framework/tensor_shape_test.cc:400–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398TensorShapeOld::TensorShapeOld() : num_elements_(1) {}
399
400void TensorShapeOld::Clear() {
401 dim_sizes_.clear();
402 num_elements_ = 1;
403}
404
405void TensorShapeOld::AddDim(int64 size) {
406 CHECK_GE(size, 0);

Callers 2

TESTFunction · 0.45
AsProtoMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected