UNPKG

@hoff97/tensor-js

Version:

PyTorch like deep learning inferrence library

10 lines 325 B
import { UnaryOperation } from './unaryOperation'; export class RoundOperation extends UnaryOperation { constructor(tensorConstructor, dtype, allocator) { super(tensorConstructor, dtype, allocator); } operation(input) { return `floor(${input}+vec4(0.5))`; } } //# sourceMappingURL=round.js.map