https://github.com/GantMan/learn-tfjs/blob/0c0dbc8e5404c0fe57e3f03a89141e9efd49e90a/chapter12/node/node-dice-data/src/index.js#L60 Aren't you creating a new rank 2 Tensor filled with 1 everywhere instead of copying and shading an existing dice ?
learn-tfjs/chapter12/node/node-dice-data/src/index.js
Line 60 in 0c0dbc8
Aren't you creating a new rank 2 Tensor filled with 1 everywhere instead of copying and shading an existing dice ?