boundlab.diff.expr.DiffExpr2#

class boundlab.diff.expr.DiffExpr2[source]#

Bases: object

A pair of expressions (x, y) for two-network differential tracking.

All linear operators apply element-wise to both components.

Methods

x: Expr#
y: Expr#
property shape: torch.Size#
get_const()[source]#
__add__(other)[source]#
__mul__(other)[source]#
scatter(indices, output_shape)[source]#
gather(indices)[source]#
reshape(*shape)[source]#
permute(*dims)[source]#
transpose(dim0, dim1)[source]#
flatten(start_dim=0, end_dim=-1)[source]#
unflatten(dim, sizes)[source]#
squeeze(dim=None)[source]#
unsqueeze(dim)[source]#
narrow(dim, start, length)[source]#
expand(*sizes)[source]#
repeat(*sizes)[source]#
tile(*sizes)[source]#
flip(dims)[source]#
roll(shifts, dims)[source]#
diag(diagonal=0)[source]#
__init__(x, y)#