calpit.nn.umnn.ParallelNeuralIntegral

Classes

ParallelNeuralIntegral

Functions

_flatten(sequence)

compute_cc_weights(nb_steps)

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

computeIntegrand(x, h, integrand, x_tot, nb_steps)

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, nb_steps)[source]
class ParallelNeuralIntegral[source]

Bases: torch.autograd.Function

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