Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
398
TensorShapeOld::TensorShapeOld() : num_elements_(1) {}
399
400
void TensorShapeOld::Clear() {
401
dim_sizes_.clear();
402
num_elements_ = 1;
403
}
404
405
void TensorShapeOld::AddDim(int64 size) {
406
CHECK_GE(size, 0);
Callers
2
TEST
Function · 0.45
AsProto
Method · 0.45
Calls
1
clear
Method · 0.45
Tested by
no test coverage detected