saveTensorsForBackwardMode(tensors) {
        const saved = tensors.map((tensor)=>this.keep(this.clone(tensor)));
        return saved;
    }
Saves tensors used in forward mode for use in backward mode.

@param tensors the list of tensors to save.