Esempio n. 1
0
def test_add_audio():
    shape = (100,)
    data = mx.nd.random.uniform(-1, 1, shape=shape)
    sw = SummaryWriter(logdir=_LOGDIR)
    sw.add_audio(tag='test_add_audio', audio=data)
    sw.close()
    check_event_file_and_remove_logdir()
Esempio n. 2
0
 def check_add_audio(data):
     sw = SummaryWriter(logdir=_LOGDIR)
     sw.add_audio(tag='test_add_audio', audio=data)
     sw.close()
     check_event_file_and_remove_logdir()