torch.TensorLike
export interface TensorLike {
readonly shape: readonly number[];
readonly dtype: DType;
readonly device: 'cpu' | 'webgpu';
readonly requires_grad: boolean;
}- readonly
shape(readonly number[]) - readonly
dtype(DType) - readonly
device('cpu' | 'webgpu') - readonly
requires_grad(boolean)
Tensor type placeholder. Using a minimal interface to avoid circular dependencies.