import Tensor, { DType } from '../types'; export declare type Backend = 'CPU' | 'WASM' | 'GPU'; /** * Convert a tensor to the specified backend */ export declare function toBackend(tensor: Tensor, backend: Backend): Promise>; export declare function toCPU(tensor: Tensor): Promise>; export declare function toWASM(tensor: Tensor): Promise>; export declare function toGPU(tensor: Tensor): Promise>; /** * Determines if the two tensors are of the same type, ie. if they are on the same backend */ export declare function sameType(a: Tensor, b: Tensor): boolean;