MCPcopy Create free account
hub / github.com/TalwalkarLab/leaf / graph_size

Function graph_size

models/utils/tf_utils.py:18–39  ·  view source on GitHub ↗

Returns the size of the given graph in bytes The size of the graph is calculated by summing up the sizes of each trainable variable. The sizes of variables are calculated by multiplying the number of bytes in their dtype with their number of elements, captured in their shape attribu

(graph)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__init__Method · 0.90

Calls 1

__num_elemsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…