UNPKG

@hoff97/tensor-js

Version:

PyTorch like deep learning inferrence library

12 lines 315 B
import { positionWiseBinaryOp } from '../../../../ops/cpu/basic'; export function bceBack(x, y) { return positionWiseBinaryOp(x, y, (x, y) => { if (y === 1) { return -1 / x; } else { return 1 / (1 - x); } }, x.shape); } //# sourceMappingURL=cpu.js.map