torch.BooleanDTypeRule export type BooleanDTypeRule = 'boolean'; Output dtype is always boolean. Used for comparison operations.