torch.BinaryOpSchema
export interface BinaryOpSchema<
Name extends string = string,
SR extends ShapeRule = ShapeRule,
DR extends DTypeRule = DTypeRule,
> {
readonly kind: 'binary';
readonly name: Name;
readonly shapeRule: SR;
readonly dtypeRule: DR;
}Nameextends stringSRextends ShapeRuleDRextends DTypeRule- readonly
kind('binary') - readonly
name(Name) - readonly
shapeRule(SR) - readonly
dtypeRule(DR)
Schema for binary operations (two inputs, one output).
Binary operations take two tensors and produce one output tensor. Examples: add, sub, mul, div, matmul, eq, lt, etc.