torch.UnaryOpSchema
export interface UnaryOpSchema<
Name extends string = string,
SR extends ShapeRule = ShapeRule,
DR extends DTypeRule = DTypeRule,
Params extends Record<string, unknown> = Record<string, never>,
> {
readonly kind: 'unary';
readonly name: Name;
readonly shapeRule: SR;
readonly dtypeRule: DR;
readonly params: Params;
}Nameextends stringSRextends ShapeRuleDRextends DTypeRuleParamsextends Record<string, unknown>- readonly
kind('unary') - readonly
name(Name) - readonly
shapeRule(SR) - readonly
dtypeRule(DR) - readonly
params(Params)
Schema for unary operations (one input, one output).
Unary operations take one tensor and produce one output tensor. Examples: neg, abs, exp, log, sin, cos, relu, sigmoid, etc.