7bd2d8b379d93b9179a57a96cd9b703f5604ff62,catalyst/utils/distributed.py,,is_torch_distributed_initialized,#,64

Before Change



def is_torch_distributed_initialized() -> bool:
    Checks if torch.distributed is available and initialized.
    return (
        torch.distributed.is_available() and torch.distributed.is_initialized()
    )


def is_apex_available() -> bool:
    Checks if apex is available.

After Change


)
def is_torch_distributed_initialized() -> bool:
    Checks if torch.distributed is available and initialized.
    return check_torch_distributed_initialized()


@deprecation.deprecated(
    deprecated_in="20.05",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: Scitator/catalyst
Commit Name: 7bd2d8b379d93b9179a57a96cd9b703f5604ff62
Time: 2020-04-29
Author: scitator@gmail.com
File Name: catalyst/utils/distributed.py
Class Name:
Method Name: is_torch_distributed_initialized


Project Name: kengz/SLM-Lab
Commit Name: ec849adaf4ceb42ed52ca142c839f627c34b9434
Time: 2018-05-21
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/sarsa.py
Class Name: SARSA
Method Name: train


Project Name: Shawn1993/cnn-text-classification-pytorch
Commit Name: 5c177f3d9a29fc7737bd4734315820d1c11c7e87
Time: 2019-07-17
Author: rriva002@ucr.edu
File Name: cnn_text_classification.py
Class Name: CNNClassifier
Method Name: predict