18b6c1229b68daeeaaef2266d82ca475f83a7445,torchdiffeq/_impl/rk_common.py,RKAdaptiveStepsizeODESolver,__init__,#RKAdaptiveStepsizeODESolver#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,113
Before Change
self.max_num_steps = torch.as_tensor(max_num_steps, dtype=torch.int32, device=device)
grid_points = torch.tensor([], dtype=dtype, device=device) if grid_points is None else grid_points.to(dtype)
self.grid_points = grid_points
self.eps = eps if eps is None else torch.as_tensor(eps, dtype=dtype, device=device)
self.dtype = dtype
// Copy from class to instance to set device
self.tableau = _ButcherTableau(alpha=self.tableau.alpha.to(device=device, dtype=y0.dtype),
After Change
else:
_check_timelike("step_t", step_t, False)
step_t = step_t.to(dtype)
if jump_t is None:
jump_t = torch.tensor([], dtype=dtype, device=device)
else:
_check_timelike("jump_t", jump_t, False)
jump_t = jump_t.to(dtype)
counts = torch.cat([step_t, jump_t]).unique(return_counts=True)[1]
if (counts > 1).any():
raise ValueError("`step_t` and `jump_t` must not have any repeated elements between them.")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: rtqichen/torchdiffeq
Commit Name: 18b6c1229b68daeeaaef2266d82ca475f83a7445
Time: 2020-12-18
Author: rtqichen@gmail.com
File Name: torchdiffeq/_impl/rk_common.py
Class Name: RKAdaptiveStepsizeODESolver
Method Name: __init__
Project Name: arraiy/torchgeometry
Commit Name: 6ee3f1b0d2a6ebadc9e2f664354594342ab0805d
Time: 2020-11-21
Author: justanhduc@users.noreply.github.com
File Name: kornia/augmentation/augmentation.py
Class Name: RandomSharpness
Method Name: __init__
Project Name: arraiy/torchgeometry
Commit Name: dac6839364405ff932bc33a5ca7845cba4f8b4ce
Time: 2019-10-07
Author: edgar.riba@gmail.com
File Name: kornia/color/adjust.py
Class Name:
Method Name: adjust_brightness
Project Name: rusty1s/pytorch_geometric
Commit Name: 631d4ee2ece28da70d6e22201129f39b4f1dc586
Time: 2020-10-26
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/data/temporal.py
Class Name: TemporalData
Method Name: __getitem__