Back to problems

Memory Size Calculation for DDN Model Structure

AI Coding · Amazon · Easy

Work out how much memory a DDN model graph allocates A DDN model arrives as a graph dataset: a list of nodes, each carrying its own dimensions and data type. Report how many bytes the model actually allocates. Python 3.11+, standard library only, nothing to install. 30 minutes. Part 1 — dimensions, widths and bytes (~10 min) Gate: tests/test_memory.py src/memory.py and src/dtypes.py are already written. There are three defects: one in src/dtypes.py and two in src/memory.py.…

Checking your access…