UNPKG

@hoff97/tensor-js

Version:

PyTorch like deep learning inferrence library

17 lines 391 B
export class PadBack { constructor(x, pads, mode, value) { this.x = x; this.pads = pads; this.mode = mode; this.value = value; } backward(grad) { throw new Error('Backward pass not implemented for pad'); } delete() { if (!this.x.isLeaf()) { this.x.delete(); } } } //# sourceMappingURL=padBack.js.map