calpit.nn.umnn.NeuralIntegral

Classes

NeuralIntegral

Functions

_flatten(sequence)

compute_cc_weights(nb_steps)

integrate(x0, nb_steps, step_sizes, integrand, h[, ...])

computeIntegrand(x, h, integrand, x_tot)

Module Contents

_flatten(sequence)[source]
compute_cc_weights(nb_steps)[source]
integrate(x0, nb_steps, step_sizes, integrand, h, compute_grad=False, x_tot=None)[source]
computeIntegrand(x, h, integrand, x_tot)[source]
class NeuralIntegral[source]

Bases: torch.autograd.Function

static forward(ctx, x0, x, integrand, flat_params, h, nb_steps=20)[source]
static backward(ctx, grad_output)[source]