(input: TensorInfo, backend: WebGPUBackend)
| 21 | import {UnaryOpProgram} from '../unary_op_webgpu'; |
| 22 | |
| 23 | export function int(input: TensorInfo, backend: WebGPUBackend): TensorInfo { |
| 24 | const program = new UnaryOpProgram(input.shape, UnaryOpType.TO_INT); |
| 25 | const output = backend.runWebGPUProgram(program, [input], 'int32'); |
| 26 | return {dataId: output.dataId, shape: output.shape, dtype: output.dtype}; |
| 27 | } |
no test coverage detected