torch.DTypeCoverageReport
export interface DTypeCoverageReport {
/** The dtype being reported on */
readonly dtype: string;
/** Number of operations with kernels for this dtype */
readonly opsWithKernel: number;
/** Total number of registered operations */
readonly totalOps: number;
/** Per-operation coverage */
readonly coverage: Record<string, { cpu: boolean; webgpu: boolean }>;
}- readonly
dtype(string) - – The dtype being reported on
- readonly
opsWithKernel(number) - – Number of operations with kernels for this dtype
- readonly
totalOps(number) - – Total number of registered operations
- readonly
coverage(Record<string, { cpu: boolean; webgpu: boolean }>) - – Per-operation coverage
Get a coverage report filtered by dtype.
Shows which operations support the specified dtype on each device.
Examples
const report = torch.library.dtype_coverage_report('quaternion_f32');
// { dtype: 'quaternion_f32', opsWithKernel: 5, totalOps: 61,
// coverage: { add: { cpu: true, webgpu: false }, mul: { cpu: true, webgpu: true }, ... } }