4bb608662475ecf87dc773a6a1c6914a6c374597,src/model/model.py,Model,launch,#Model#,217
Before Change
_, step_loss, step_logits, step_attns = self.step(encoder_masks, img_data, zero_paddings, decoder_inputs, target_weights, bucket_id, self.forward_only)
curr_step_time = (time.time() - start_time)
step_time += curr_step_time / self.steps_per_checkpoint
logging.info("step_time: %f, loss: %f, step perplexity: %f"%(curr_step_time, step_loss, math.exp(step_loss) if step_loss < 300 else float("inf")))
loss += step_loss / self.steps_per_checkpoint
current_step += 1
step_outputs = [b for b in np.array([np.argmax(logit, axis=1).tolist() for logit in step_logits]).transpose()]
if self.visualize:
After Change
total = (self.s_gen.get_size() // self.batch_size)
with tqdm(desc="Train: ", total=total) as pbar:
for epoch in range(self.num_epoch):
logging.info("Generating first batch)")
for i,batch in enumerate(self.s_gen.gen(self.batch_size)):
//logging.info("Generated batch number: {}".format(i))
// Get a batch and make a step.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: emedvedev/attention-ocr
Commit Name: 4bb608662475ecf87dc773a6a1c6914a6c374597
Time: 2017-01-10
Author: sivanke11@gmail.com
File Name: src/model/model.py
Class Name: Model
Method Name: launch
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 3f1c7db113326ab1bae8d2f6cdd327b3d498ee8e
Time: 2015-02-05
Author: stfeng@google.com
File Name: perfkitbenchmarker/scripts/object_storage_api_tests.py
Class Name:
Method Name: SingleStreamThroughputBenchmark
Project Name: jsalt18-sentence-repl/jiant
Commit Name: 43de1334ce66ebce88c717a7d6e3e4de71174520
Time: 2018-07-18
Author: iftenney@users.noreply.github.com
File Name: src/trainer.py
Class Name: SamplingMultiTaskTrainer
Method Name: train