b914816142ae2776f531be1c0b49812a0bfde91f,torchdiffeq/_impl/adams.py,VariableCoefficientAdamsBashforth,__init__,#VariableCoefficientAdamsBashforth#,74

Before Change


class VariableCoefficientAdamsBashforth(AdaptiveStepsizeODESolver):
    def __init__(self, func, y0, rtol, atol, first_step=None, max_order=_MAX_ORDER, safety=0.9,
                 ifactor=10.0, dfactor=0.2, dtype=torch.float64, **kwargs):
        super(VariableCoefficientAdamsBashforth, self).__init__(dtype=dtype, y0=y0, **kwargs)

        assert _MIN_ORDER <= max_order <= _MAX_ORDER, "max_order must lie between {} and {}".format(_MIN_ORDER,
                                                                                                    _MAX_ORDER)

After Change


        self.max_order = int(max(_MIN_ORDER, min(max_order, _MAX_ORDER)))
        self.safety = _convert_to_tensor(safety, dtype=torch.float64, device=y0[0].device)
        self.ifactor = _convert_to_tensor(ifactor, dtype=torch.float64, device=y0[0].device)
        self.dfactor = _convert_to_tensor(dfactor, dtype=torch.float64, device=y0[0].device)

    def before_integrate(self, t):
        prev_f = collections.deque(maxlen=self.max_order + 1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: rtqichen/torchdiffeq
Commit Name: b914816142ae2776f531be1c0b49812a0bfde91f
Time: 2020-08-04
Author: 33688385+patrick-kidger@users.noreply.github.com
File Name: torchdiffeq/_impl/adams.py
Class Name: VariableCoefficientAdamsBashforth
Method Name: __init__


Project Name: kkroening/ffmpeg-python
Commit Name: 497105f929a7a927ee8807519738f48c49b5a3a1
Time: 2018-01-09
Author: davide@depau.eu
File Name: ffmpeg/nodes.py
Class Name: Node
Method Name: __init__


Project Name: Alexander-H-Liu/End-to-end-ASR-Pytorch
Commit Name: 1b45e3a304f9d2479a836b82d889f0e19183faf6
Time: 2019-10-13
Author: windqaq@gmail.com
File Name: src/plugin.py
Class Name: EmbeddingRegularizer
Method Name: __init__


Project Name: regel/loudml
Commit Name: e7e01290997f66471c08848ee0a968e2526b4b9b
Time: 2019-09-29
Author: sebastien.regel@gmail.com
File Name: loudml/loudml/_version.py
Class Name:
Method Name: