8e5c969aa4113b93dfa43d6075ad3bb8eb500f4a,tensorboard/data_compat_test.py,MigrateValueTest,test_audio,#MigrateValueTest#,60

Before Change


                          sample_rate=44100)
    value = self._value_from_op(op)
    assert value.HasField("audio"), value
    self._assert_noop(value)

  def test_text(self):
    op = tf.summary.text("lorem_ipsum", tf.constant("dolor sit amet"))
    value = self._value_from_op(op)

After Change


    self._assert_noop(value)

  def test_audio(self):
    audio = tf.reshape(tf.linspace(0.0, 100.0, 4 * 10 * 2), (4, 10, 2))
    old_op = tf.summary.audio("k488", audio, 44100)
    old_value = self._value_from_op(old_op)
    assert old_value.HasField("audio"), old_value
    new_value = data_compat.migrate_value(old_value)

    self.assertEqual("k488/audio/0", new_value.tag)
    expected_metadata = audio_metadata.create_summary_metadata(
        display_name="k488/audio/0",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/tensorboard
Commit Name: 8e5c969aa4113b93dfa43d6075ad3bb8eb500f4a
Time: 2017-08-15
Author: wchargin@gmail.com
File Name: tensorboard/data_compat_test.py
Class Name: MigrateValueTest
Method Name: test_audio


Project Name: deepchem/deepchem
Commit Name: 29c11f550c6b8d9e379afce9b9a2315552884b6c
Time: 2017-03-22
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/tf_new_models/vina_model.py
Class Name: VinaModel
Method Name: construct_graph


Project Name: PyMVPA/PyMVPA
Commit Name: b1bd444e93eaf297d46a37d1e192ee2add24e77e
Time: 2012-11-10
Author: nikolaas.oosterhof@unitn.it
File Name: mvpa2/tests/test_surfing.py
Class Name: SurfTests
Method Name: test_volume_mask_dict