chickadee » array-morphisms » unregister-binary-op!

register-binary-op! opprocedure
unregister-binary-op! opprocedure
binary-op-registered? opprocedure
binary-opsprocedure

Manage the binary op names that get the segop/activation-binary executor. None are registered by default; backend constructors register the ops they provide. Until then add, sub, mul and div use the ordinary segop/flat-binary executor.

Registering an op name only selects the executor, and only for ops that have an entry in the scalar-op table. For a new activation to appear in differentiable SSA graphs it also needs a table entry, a morph-<op> constructor, a VJP rule in ssa-vjp and a case in rebuild-morphism.