5cedbc4a7c09285b2df2d8678d0449d231a1feeb,catalyst/runners/runner.py,Runner,trace,#,351

Before Change


            self.model = model
        assert self.model is not None

        if isinstance(fp16, bool) and fp16:
            opt_level = "O1"
        elif isinstance(fp16, bool) and not fp16:
            opt_level = None

After Change


        fp16 = _resolve_bool_fp16(fp16)
        opt_level = None
        if fp16:
            opt_level = fp16.get("opt_level", None)

        if opt_level is not None:
            device = "cuda"
        elif device is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: catalyst-team/catalyst
Commit Name: 5cedbc4a7c09285b2df2d8678d0449d231a1feeb
Time: 2020-11-25
Author: mr.and.kul@gmail.com
File Name: catalyst/runners/runner.py
Class Name: Runner
Method Name: trace


Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 1cd14c512e5d1d3f97b34724348f2630abab67bd
Time: 2018-10-12
Author: okuchaiev@nvidia.com
File Name: open_seq2seq/optimizers/optimizers.py
Class Name:
Method Name: reduce_gradients


Project Name: ray-project/ray
Commit Name: d49c3fae0bc339c51468b91af773199848df95f5
Time: 2021-01-12
Author: sven@anyscale.io
File Name: rllib/evaluation/rollout_worker.py
Class Name: RolloutWorker
Method Name: _build_policy_map