-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running train.py #2
Comments
@vr25 Hello ,have you solved this problems? |
@vr25 I solved it you can replace them by follow code. In fact , this may be the python version problems self.u_j = tf.einsum('ajk,kl->ajl', tf.nn.relu(
|
@sshzhang It works, but there is another problem behind the line 145, which is same issue. Therefore, I write the substituted code for that error.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using TensorFlow 0.12.1 and Python 2.7.12 (as mentioned) but I am still running into the following issue:
:~/Downloads/NARRE-master/model$ python train.py
Parameters:
ALLOW_SOFT_PLACEMENT=True
BATCH_SIZE=100
DROPOUT_KEEP_PROB=0.5
EMBEDDING_DIM=300
FILTER_SIZES=3
L2_REG_LAMBDA=0.001
LOG_DEVICE_PLACEMENT=False
NUM_EPOCHS=40
NUM_FILTERS=100
PARA_DATA=../data/music/music.para
TRAIN_DATA=../data/music/music.train
VALID_DATA=../data/music/music.test
WORD2VEC=../data/google.bin
Loading data...
5541
3568
16
446
32
446
Traceback (most recent call last):
File "train.py", line 144, in
n_latent=32)
File "/home/rawtev/Downloads/NARRE-master/model/NARRE.py", line 122, in init
tf.einsum('ajk,kl->ajl', self.h_drop_u, Wau) + tf.einsum('ajk,kl->ajl', self.iid_a, Wru) + bau),
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/special_math_ops.py", line 212, in einsum
axes_to_sum)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/special_math_ops.py", line 341, in _einsum_reduction
product = _reshape_if_necessary(product, uncompacted_shape)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/special_math_ops.py", line 366, in _reshape_if_necessary
return array_ops.reshape(tensor, new_shape)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_array_ops.py", line 2448, in reshape
name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py", line 493, in apply_op
raise err
TypeError: Expected binary or unicode string, got None
Thanks a lot!
The text was updated successfully, but these errors were encountered: