MCPcopy Create free account

hub / github.com/rtqichen/torchdiffeq / functions

Functions279 in github.com/rtqichen/torchdiffeq

↓ 23 callersMethodbackward
(ctx, grad_out)
torchdiffeq/_impl/misc.py:354
↓ 21 callersFunctionodeint
Integrate a system of ordinary differential equations. Solves the initial value problem for a non-stiff system of first order ODEs: ```
torchdiffeq/_impl/odeint.py:49
↓ 15 callersMethodparameters
(self)
examples/learn_physics.py:32
↓ 13 callersFunctionnorm
(dim)
examples/odenet_mnist.py:44
↓ 12 callersFunctionconstruct_problem
(device, npts=10, ode='constant', reverse=False, dtype=torch.float64)
tests/problems.py:79
↓ 9 callersFunction_flat_to_shape
(tensor, length, shapes)
torchdiffeq/_impl/misc.py:126
↓ 8 callersFunctionmax_abs
(tensor)
tests/gradient_tests.py:8
↓ 5 callersFunction_DTemplate
(eps)
tests/DETEST/detest.py:237
↓ 4 callersMethod__init__
(self, dim)
examples/odenet_mnist.py:94
↓ 4 callersMethod__init__
(self)
examples/learn_physics.py:28
↓ 4 callersFunction_check_inputs
(func, y0, t, rtol, atol, method, options, event_fn, SOLVERS)
torchdiffeq/_impl/misc.py:200
↓ 4 callersFunction_handle_unused_kwargs
(solver, unused_kwargs)
torchdiffeq/_impl/misc.py:13
↓ 4 callersFunction_interp_evaluate
Evaluate polynomial interpolation at the given time point. Args: coefficients: list of Tensor coefficients as created by `interp_fit`.
torchdiffeq/_impl/interp.py:25
↓ 4 callersMethodget_collision_times
(self, nbounces=1)
examples/bouncing_ball.py:49
↓ 4 callersFunctionrel_error
(true, estimate)
tests/event_tests.py:8
↓ 3 callersMethod__init__
(self, base_func, shapes)
torchdiffeq/_impl/misc.py:138
↓ 3 callersMethod_adaptive_step
Take an adaptive Runge-Kutta step to integrate the ODE.
torchdiffeq/_impl/rk_common.py:266
↓ 3 callersMethod_before_integrate
(self, t)
torchdiffeq/_impl/solvers.py:17
↓ 3 callersMethodnorm
(state)
tests/norm_tests.py:51
↓ 3 callersFunctionrel_error
(true, estimate)
tests/odeint_tests.py:11
↓ 3 callersMethodupdate
(self, val)
examples/odenet_mnist.py:158
↓ 3 callersMethody_exact
(self, t)
tests/problems.py:60
↓ 2 callersMethod__init__
(self, latent_dim=4, obs_dim=2, nhidden=20)
examples/latent_ode.py:149
↓ 2 callersFunction_compute_error_ratio
(error_estimate, rtol, atol, y0, y1, norm)
torchdiffeq/_impl/misc.py:80
↓ 2 callersMethod_cubic_hermite_interp
(self, t0, y0, f0, t1, y1, f1, t)
torchdiffeq/_impl/solvers.py:166
↓ 2 callersFunction_dot_product
(x, y)
torchdiffeq/_impl/fixed_adams.py:160
↓ 2 callersFunction_flip
(x, dim)
tests/problems.py:86
↓ 2 callersFunction_flip_option
(options, option_name)
torchdiffeq/_impl/misc.py:386
↓ 2 callersMethod_grid_constructor_from_step_size
(step_size)
torchdiffeq/_impl/solvers.py:86
↓ 2 callersMethod_linear_interp
(self, t0, t1, y0, y1, t)
torchdiffeq/_impl/solvers.py:175
↓ 2 callersFunction_nextafter
(x1, x2)
torchdiffeq/_impl/misc.py:358
↓ 2 callersMethod_residual
(self, func, K, y, t0, dt, t1)
torchdiffeq/_impl/rk_common.py:468
↓ 2 callersMethod_residual
(self, func, K, y, t, perturb)
torchdiffeq/_impl/rk_common.py:556
↓ 2 callersFunction_sort_tvals
(tvals, t0)
torchdiffeq/_impl/rk_common.py:372
↓ 2 callersMethod_step_func
(self, func, t0, dt, t1, y0)
torchdiffeq/_impl/solvers.py:99
↓ 2 callersFunction_tuple_tol
(name, tol, shapes)
torchdiffeq/_impl/misc.py:115
↓ 2 callersMethod_update_history
(self, t, f)
torchdiffeq/_impl/fixed_adams.py:185
↓ 2 callersFunctionaccuracy
(model, dataset_loader)
examples/odenet_mnist.py:229
↓ 2 callersMethodcallback_step
(t0, y0, dt)
tests/odeint_tests.py:324
↓ 2 callersFunctionconv1x1
1x1 convolution
examples/odenet_mnist.py:39
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
examples/odenet_mnist.py:34
↓ 2 callersFunctionfind_event
(interp_fn, sign0, t0, t1, event_fn, tol)
torchdiffeq/_impl/event_handling.py:5
↓ 2 callersMethodforward
(self, z)
examples/latent_ode.py:155
↓ 2 callersFunctionget_batch
(num_samples)
examples/cnf.py:136
↓ 2 callersMethodget_initial_state
(self)
examples/bouncing_ball.py:36
↓ 2 callersMethodinitHidden
(self)
examples/latent_ode.py:143
↓ 2 callersFunctionodeint_event
Automatically links up the gradient from the event time.
torchdiffeq/_impl/odeint.py:160
↓ 2 callersMethodproblem
(self, device)
tests/gradient_tests.py:91
↓ 2 callersFunctionrk4_alt_step_func
Smaller error with slightly more compute.
torchdiffeq/_impl/rk_common.py:110
↓ 2 callersMethodsimulate
(self, times)
examples/learn_physics.py:160
↓ 2 callersMethodstate_update
Updates state based on an event (collision).
examples/bouncing_ball.py:40
↓ 2 callersMethodupdate
(self, val)
examples/ode_demo.py:142
↓ 1 callersMethod__init__
(self, dim=10)
tests/problems.py:33
↓ 1 callersMethod__init__
(self)
tests/odeint_tests.py:115
↓ 1 callersMethod__init__
(self, func, y0, step_size=None, grid_constructor=None, interp='linear', perturb=False, max_iters=100, **unuse
torchdiffeq/_impl/rk_common.py:382
↓ 1 callersMethod__init__
(self, func, y0, **kwargs)
torchdiffeq/_impl/fixed_adams.py:227
↓ 1 callersMethod__init__
(self, in_out_dim, hidden_dim, width)
examples/cnf.py:38
↓ 1 callersMethod_advance
(self, next_t)
torchdiffeq/_impl/solvers.py:21
↓ 1 callersMethod_advance_until_event
(self, event_fn)
torchdiffeq/_impl/solvers.py:41
↓ 1 callersFunction_assert_floating
(name, t)
torchdiffeq/_impl/misc.py:110
↓ 1 callersFunction_assert_increasing
(name, t)
torchdiffeq/_impl/misc.py:106
↓ 1 callersFunction_check_timelike
(name, timelike, can_grad)
torchdiffeq/_impl/misc.py:376
↓ 1 callersMethod_has_converged
Checks that each element is within the error tolerance.
torchdiffeq/_impl/fixed_adams.py:190
↓ 1 callersFunction_interp_fit
Fit coefficients for 4th order polynomial interpolation. Args: y0: function value at the start of the interval. y1: function valu
torchdiffeq/_impl/interp.py:1
↓ 1 callersMethod_interp_fit
Fit an interpolating polynomial to the results of a Runge-Kutta step.
torchdiffeq/_impl/rk_common.py:363
↓ 1 callersFunction_mixed_norm
(tensor_tuple)
torchdiffeq/_impl/misc.py:30
↓ 1 callersFunction_optimal_step_size
Calculate the optimal size for the next step.
torchdiffeq/_impl/misc.py:86
↓ 1 callersFunction_rms_norm
(tensor)
torchdiffeq/_impl/misc.py:22
↓ 1 callersFunction_runge_kutta_step
Take an arbitrary Runge-Kutta step and estimate error. Args: func: Function to evaluate like `func(t, y)` to compute the time derivative o
torchdiffeq/_impl/rk_common.py:43
↓ 1 callersFunction_select_initial_step
Empirically select a good initial step. The algorithm is described in [1]_. References ---------- .. [1] E. Hairer, S. P. Norsett G.
torchdiffeq/_impl/misc.py:36
↓ 1 callersMethodcallback_accept_step
(t0, y0, dt)
tests/odeint_tests.py:328
↓ 1 callersMethodcallback_reject_step
(t0, y0, dt)
tests/odeint_tests.py:332
↓ 1 callersFunctioncombine_event_functions
We ensure all event functions are initially positive, so then we can combine them by taking a min.
torchdiffeq/_impl/event_handling.py:23
↓ 1 callersFunctionconvert_func_to_numpy
(func, shape, device, dtype)
torchdiffeq/_impl/scipy_wrapper.py:51
↓ 1 callersFunctioncosine_decay
(learning_rate, global_step, decay_steps, alpha=0.0)
examples/learn_physics.py:181
↓ 1 callersFunctioncount_parameters
(model)
examples/odenet_mnist.py:241
↓ 1 callersFunctionfind_parameters
(module)
torchdiffeq/_impl/adjoint.py:226
↓ 1 callersFunctiongenerate_spiral2d
Parametric formula for 2d spiral is `r = a + b * theta`. Args: nspiral: number of spirals, i.e. batch dimension ntotal: total number
examples/latent_ode.py:31
↓ 1 callersFunctionget_batch
()
examples/ode_demo.py:44
↓ 1 callersFunctionget_logger
(logpath, filepath, package_files=[], displaying=True, saving=True, debug=False)
examples/odenet_mnist.py:250
↓ 1 callersFunctionget_mnist_loaders
(data_aug=False, batch_size=128, test_batch_size=1000, perc=1.0)
examples/odenet_mnist.py:166
↓ 1 callersFunctiongradcheck
(nbounces)
examples/bouncing_ball.py:103
↓ 1 callersMethodgrid_constructor
(f, y0, t)
tests/odeint_tests.py:222
↓ 1 callersFunctionhandle_adjoint_norm_
In-place modifies the adjoint options to choose or wrap the norm function.
torchdiffeq/_impl/adjoint.py:243
↓ 1 callersFunctioninf_generator
Allows training with DataLoaders in a single infinite loop: for i, (x, y) in enumerate(inf_generator(train_loader)):
examples/odenet_mnist.py:199
↓ 1 callersFunctioninit
()
tests/DETEST/detest.py:52
↓ 1 callersMethodintegrate
(self, t)
torchdiffeq/_impl/solvers.py:102
↓ 1 callersMethodintegrate_until_event
(self, t0, event_fn)
torchdiffeq/_impl/solvers.py:130
↓ 1 callersFunctionlearning_rate_schedule
( global_step, warmup_steps, base_learning_rate, lr_scaling, train_steps )
examples/learn_physics.py:188
↓ 1 callersFunctionlearning_rate_with_decay
(batch_size, batch_denom, batches_per_epoch, boundary_epochs, decay_rates)
examples/odenet_mnist.py:211
↓ 1 callersFunctionlog_normal_pdf
(x, mean, logvar)
examples/latent_ode.py:181
↓ 1 callersFunctionmain
()
tests/DETEST/run.py:22
↓ 1 callersFunctionmakedirs
(dirname)
examples/odenet_mnist.py:245
↓ 1 callersFunctionmakedirs
(dirname)
examples/ode_demo.py:52
↓ 1 callersFunctionmlp
(input_dim, hidden_dim, output_dim, hidden_depth, output_mod=None, act=nn.ReLU)
examples/learn_physics.py:167
↓ 1 callersFunctionnormal_kl
(mu1, lv1, mu2, lv2)
examples/latent_ode.py:187
↓ 1 callersFunctionnp_nextafter
(x1, x2)
torchdiffeq/_impl/misc.py:367
↓ 1 callersFunctionone_hot
(x, K)
examples/odenet_mnist.py:225
↓ 1 callersFunctionrandom_seed_torch
(seed)
tests/norm_tests.py:11
↓ 1 callersMethodreset
(self)
examples/odenet_mnist.py:154
next →1–100 of 279, ranked by callers