The NTM writes by erasing part of each addressed row and then adding new content, both weighted by the write distribution. Erase and add are separate so the model can overwrite a slot cleanly.
Implement ntm_write(memory, w, erase, add), the erase-then-add update.
erase values are between 0 and 1.Scale each row's old content by one minus w times erase, then add w times add.
No results yet
Run your code to check it against the examples, or submit to run every test.