algebra module

Full Documentation for hippynn.graphs.nodes.base.algebra module. Click here for a summary page.

Machinery for nodes to support native python operators such as addition, multiplication, subtraction.

class AddNode(left, right)[source]

Bases: BinNode

torch_module = LambdaModule(add)
class AtLeast2D(parents, *args, **kwargs)[source]

Bases: _BaseNode

torch_module = AtLeast2D()
class BinNode(left, right)[source]

Bases: _PredefinedOp, _CombNode

class DivNode(left, right)[source]

Bases: BinNode

torch_module = LambdaModule(truediv)
class InvNode(in_node)[source]

Bases: UnaryNode

torch_module = LambdaModule(invert)
class MulNode(left, right)[source]

Bases: BinNode

torch_module = LambdaModule(mul)
class NegNode(in_node)[source]

Bases: UnaryNode

torch_module = LambdaModule(neg)
class PowNode(left, right)[source]

Bases: BinNode

torch_module = LambdaModule(pow)
class SubNode(left, right)[source]

Bases: BinNode

torch_module = LambdaModule(sub)
class UnaryNode(in_node)[source]

Bases: _PredefinedOp, _CombNode

class ValueNode(value)[source]

Bases: _CombNode

auto_module()[source]
coerces_values_to_nodes(func)[source]

Wraps non-nodes as ValueNodes.

wrap_as_node(obj)[source]