28f6dbec4bee2572fa7f94445d63cebb2de6dc9b,bin/tfr_hdf5.py,,read_tfr,#Any#Any#,93

Before Change



  iterator = dataset.make_one_shot_iterator()

  next_op = iterator.get_next()

  seqs_1hot = []
  targets = []

  with tf.Session() as sess:
    next_datum = sess.run(next_op)
    while next_datum:
      seq_1hot = next_datum["sequence"].reshape((-1,4))
      targets1 = next_datum["targets"].reshape(target_len,-1)

After Change


  for seq_1hot, targets1 in dataset:
    // TEMP!
    if si % 2 == 0:
      seq_1hot = seq_1hot.numpy()[0].astype("uint8")
      targets1 = targets1.numpy()[0].astype("float16")
      seq_1hot = seq_1hot.reshape((-1,4))
      targets1 = targets1.reshape((-1,num_targets))
      seqs_1hot.append(seq_1hot)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 6

Instances


Project Name: calico/basenji
Commit Name: 28f6dbec4bee2572fa7f94445d63cebb2de6dc9b
Time: 2019-09-27
Author: drk@calicolabs.com
File Name: bin/tfr_hdf5.py
Class Name:
Method Name: read_tfr


Project Name: onnx/onnx-tensorflow
Commit Name: 054095d922edda5134e520522bc82a1b95cc5bd4
Time: 2020-09-09
Author: smonov@gmail.com
File Name: onnx_tf/backend.py
Class Name: TensorflowBackend
Method Name: run_node


Project Name: tensorlayer/tensorlayer
Commit Name: f2073333b710a340403843763ba60eb1e6699916
Time: 2019-04-11
Author: rundi_wu@pku.edu.cn
File Name: examples/data_process/tutorial_tf_dataset_voc.py
Class Name:
Method Name:


Project Name: tensorlayer/srgan
Commit Name: 87ad8f5eb43629954755893fcb2674e53f8dc982
Time: 2019-05-08
Author: dhsig552@163.com
File Name: main.py
Class Name:
Method Name: evaluate


Project Name: tensorflow/tensorboard
Commit Name: afbdf876423189a7e7db792515d7e9c817707f9c
Time: 2019-08-09
Author: wchargin@gmail.com
File Name: tensorboard/plugins/scalar/scalars_plugin_test.py
Class Name: ScalarsPluginTest
Method Name: generate_run


Project Name: onnx/onnx-tensorflow
Commit Name: 054095d922edda5134e520522bc82a1b95cc5bd4
Time: 2020-09-09
Author: smonov@gmail.com
File Name: onnx_tf/backend_rep.py
Class Name: TensorflowRep
Method Name: run