torch.RegisterMethodOptions
export interface RegisterMethodOptions {
/**
* Optional dtype restriction.
* If specified, method only appears on tensors of these dtypes.
*/
readonly dtypes?: readonly DType[];
}- readonly
dtypes(readonly DType[])optional - – Optional dtype restriction. If specified, method only appears on tensors of these dtypes.
Options for register_method.