torch.MethodConfig
export interface MethodConfig<Name extends string> {
/**
* The method name.
*/
readonly name: Name;
/**
* The implementation.
* First argument is always `this` (the tensor).
*/
readonly impl: (thisArg: TensorLike, ...args: unknown[]) => unknown;
/**
* Optional dtype restriction.
*/
readonly dtypes?: readonly DType[];
}Nameextends string- readonly
name(Name) - – The method name.
- readonly
impl((thisArg: TensorLike, ...args: unknown[]) => unknown) - – The implementation. First argument is always
this(the tensor). - readonly
dtypes(readonly DType[])optional - – Optional dtype restriction.
Full method configuration.