37a4b84ea1a89dae4d94f88afcc454ce5ac7b467,train.py,,add_summary_value,#Any#Any#Any#Any#,28
Before Change
tf = None
def add_summary_value(writer, key, value, iteration):
summary = tf.Summary(value=[tf.Summary.Value(tag=key, simple_value=value)])
writer.add_summary(summary, iteration)
def train(opt):
After Change
tb = None
def add_summary_value(writer, key, value, iteration):
if writer:
writer.add_scalar(key, value, iteration)
def train(opt):
// Deal with feature things before anything
opt.use_att = utils.if_use_att(opt.caption_model)
if opt.use_box: opt.att_feat_size = opt.att_feat_size + 5
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: ruotianluo/ImageCaptioning.pytorch
Commit Name: 37a4b84ea1a89dae4d94f88afcc454ce5ac7b467
Time: 2018-05-12
Author: rluo@ttic.edu
File Name: train.py
Class Name:
Method Name: add_summary_value
Project Name: streamlit/streamlit
Commit Name: 80a927a861111c34599f8e0105942192ed37e6e7
Time: 2018-08-16
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/proxy/ClientWebSocket.py
Class Name: ClientWebSocket
Method Name: _handle_backend_msg
Project Name: streamlit/streamlit
Commit Name: 1b66cff1b4af1b32d72839af19282f526d04acf0
Time: 2018-08-15
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/proxy/ClientWebSocket.py
Class Name: ClientWebSocket
Method Name: _handle_backend_msg