Traceback (most recent call last):


 "train_wavernn.py", line 129, in <module>

voc_train_loop(voc_model, loss_func, optimiser, train_set, test_set, lr, total_steps, device)


 "train_wavernn.py", line 57, in voc_train_loop

hp.voc_target, hp.voc_overlap, paths.voc_output)


 "/home/zyq/harward/WaveRNN-master/gen_wavernn.py", line 34, in gen_testset

_ = model.generate(m, save_str, batched, target, overlap, hp.mu_law)


 "/home/zyq/harward/WaveRNN-master/models/fatchord_version.py", line 208, in generate

sample = sample_from_discretized_mix_logistic(logits.unsqueeze(0).transpose(1, 2))


 "/home/zyq/harward/WaveRNN-master/utils/distribution.py", line 111, in sample_from_discretized_mix_logistic

one_hot = F.one_hot(argmax, nr_mix).float()
AttributeError: module 'torch.nn.functional' has no attribute 'one_hot'
Traceback (most recent call last):


 "tensorflow.py", line 1, in <module>

import tflearn


 "/usr/lib/python3.5/site-packages/tflearn/__init__.py", line 4, in <module>

from . import config


 "/usr/lib/python3.5/site-packages/tflearn/config.py", line 3, in <module>

import tensorflow as tf


 "/home/jaden/tensorflow/carnet/tensorflow.py", line 3, in <module>

from tflearn.layers.core import input_data, dropout, fully_connected


 "/usr/lib/python3.5/site-packages/tflearn/layers/__init__.py", line 2, in <module>

from .conv import conv_2d, max_pool_2d, avg_pool_2d, conv_1d, \


 "/usr/lib/python3.5/site-packages/tflearn/layers/conv.py", line 9, in <module>

from .. import variables as vs


 "/usr/lib/python3.5/site-packages/tflearn/variables.py", line 8, in <module>

@tf.contrib.framework.add_arg_scope
AttributeError: module 'tensorflow' has no attribute 'contrib'
