import { DTypeGpu, GPUTensorConstructor, GPUTensorI } from '../../../tensor/gpu/interface'; import { GPUMemoryAllocator } from '../../../tensor/gpu/memory'; import { Input, Operation } from '../operation'; export interface UpsampleInfo { shapeX?: readonly number[]; widthX?: number; heightX?: number; shapeOutput?: readonly number[]; widthOutput?: number; heightOutput?: number; scales?: readonly number[]; } export interface UpsampleInput { X: GPUTensorI; scales: readonly number[]; } export declare class UpsampleOperation extends Operation { constructor(tensorConstructor: GPUTensorConstructor, dtype: DTypeGpu, allocator?: GPUMemoryAllocator); getFragmentShader(info: UpsampleInfo): string; getTextureNames(): string[]; getVariables(): string; getUniformAttrs(): Input[]; calc(input: UpsampleInput): GPUTensor; getOutputShape(input: UpsampleInput): readonly number[]; compile(info: UpsampleInfo): void; getCompilationInfo(input: UpsampleInput): UpsampleInfo; getInputInfoString(input: UpsampleInput): string; }