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

Method Index

tensorflow/core/grappler/costs/utils.cc:410–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410const int TensorSizeHistogram::Index(const uint64 value) const {
411 // Log2Floor64 returns -1 for 0, 0 for 1, 1 for 2-3, 2 for 4-7, ...
412 const auto index = Log2Floor64(value) + 1;
413 return std::min(index, kMaxBuckets - 1);
414}
415
416string GetDeviceClassForNonChannelDevice(const string& device_name) {
417 DeviceNameUtils::ParsedName parsed_name;

Callers 10

astMethod · 0.45
TESTFunction · 0.45
shapeAndDataTypeOfFunction · 0.45
byteSizeOfEncodedStringsFunction · 0.45
encodeTensorFunction · 0.45
decodeTensorFunction · 0.45
encodeMethod · 0.45
decodeMethod · 0.45

Calls 2

Log2Floor64Function · 0.50
minFunction · 0.50

Tested by 1

TESTFunction · 0.36