5ef0fc3215fb43f5772673b31c51ad8a6582bc39,keras/backend/cntk_backend.py,,learning_phase,#,59

Before Change



def learning_phase():
    // If _LEARNING_PHASE is not 0 or 1, return dynamic learning phase tensor
    return _LEARNING_PHASE if _LEARNING_PHASE in {0, 1} else _LEARNING_PHASE_PLACEHOLDER


def set_learning_phase(value):
    global _LEARNING_PHASE

After Change



def learning_phase():
    // If _LEARNING_PHASE is not 0 or 1, return dynamic learning phase tensor
    if _LEARNING_PHASE in {0, 1}:
        return _LEARNING_PHASE
    else:
        return _LEARNING_PHASE_PLACEHOLDER


def set_learning_phase(value):
    global _LEARNING_PHASE
    if value not in {0, 1}:
        raise ValueError("CNTK Backend: Set learning phase "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 11

Non-data size: 4

Instances


Project Name: keras-team/keras
Commit Name: 5ef0fc3215fb43f5772673b31c51ad8a6582bc39
Time: 2018-10-20
Author: mechaprabal@gmail.com
File Name: keras/backend/cntk_backend.py
Class Name:
Method Name: learning_phase


Project Name: NVIDIA/OpenSeq2Seq
Commit Name: c330cc618b76a04c0f861102cfad2c73f1bc1c9a
Time: 2018-07-24
Author: vnoroozi@nvidia.com
File Name: open_seq2seq/decoders/convs2s_decoder.py
Class Name: ConvS2SDecoder
Method Name: _decode


Project Name: tensorlayer/tensorlayer
Commit Name: aa968dad320137a31c229be3094c6538fd5ce39c
Time: 2019-03-06
Author: rundi_wu@pku.edu.cn
File Name: tensorlayer/layers/core.py
Class Name: Layer
Method Name: __call__


Project Name: microsoft/nni
Commit Name: 41e587038a32db002178329a64224ea6a5b2a5f9
Time: 2019-09-15
Author: 40699903+liuzhe-lz@users.noreply.github.com
File Name: src/sdk/pynni/nni/msg_dispatcher.py
Class Name: MsgDispatcher
Method Name: _handle_final_metric_data


Project Name: ray-project/ray
Commit Name: ebeee1d59a3e3365a455987bf517ad0d8eac35d5
Time: 2021-02-08
Author: cc.ash.math@gmail.com
File Name: rllib/agents/maml/maml_torch_policy.py
Class Name:
Method Name: maml_loss


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 90c7356471023c1bbeaabbcfff37eba11940bbe4
Time: 2018-08-13
Author: akshayubhat@gmail.com
File Name: server/init_fs.py
Class Name:
Method Name: init_models


Project Name: microsoft/nni
Commit Name: 5d2a59fd4cf708d285d0db8ff3522c9156d2c4a9
Time: 2020-08-12
Author: 49771382+zheng-ningxin@users.noreply.github.com
File Name: src/sdk/pynni/nni/_graph_utils.py
Class Name: TorchModuleGraph
Method Name: unpack_manually


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 3dee7d5b874df317e9e0ba936a4b1451c6116ba0
Time: 2018-08-31
Author: akshayubhat@gmail.com
File Name: server/init_fs.py
Class Name:
Method Name: init_models


Project Name: AlexEMG/DeepLabCut
Commit Name: d374796cdcd44f6564c851d7842651b802e0ab82
Time: 2018-11-12
Author: federicoclaudi@gmail.com
File Name: deeplabcut/generate_training_dataset/labeling_toolbox.py
Class Name: MainFrame
Method Name: onClick


Project Name: keras-team/keras
Commit Name: 8fc8a1681332cc4c8b05260b20ee54fa1589e3d2
Time: 2018-10-20
Author: gibson.ljg@gmail.com
File Name: keras/backend/theano_backend.py
Class Name:
Method Name: reverse


Project Name: hanxiao/bert-as-service
Commit Name: 7f6db8878558804f8d0a0e53de4c4b71397473f4
Time: 2019-01-18
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/graph.py
Class Name:
Method Name: convert_variables_to_constants