WARNING:tensorflow:From D:\anacoda\envs\pytorch\lib\site-packages\tensorflow\python\util\dispatch.py:201: calling dropout (from tensorflow.python.ops.nn_ops) with keep_prob is deprecated and will be removed in a future version.
Instructions for updating:
Please use rate
instead of keep_prob
. Rate should be set to rate = 1 - keep_prob
.
Traceback (most recent call last):
File "D:\anacoda\envs\pytorch\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 549, in make_tensor_proto
str_values = [compat.as_bytes(x) for x in proto_values]
File "D:\anacoda\envs\pytorch\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 549, in
str_values = [compat.as_bytes(x) for x in proto_values]
File "D:\anacoda\envs\pytorch\lib\site-packages\tensorflow\python\util\compat.py", line 86, in as_bytes
raise TypeError('Expected binary or unicode string, got %r' %
TypeError: Expected binary or unicode string, got None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:/kgc-rec-main/kgc-rec-main/m_train.py", line 77, in
model = MOOCUM(placeholders,
File "E:\kgc-rec-main\kgc-rec-main\m_models.py", line 173, in init
self.userModel = GCN(placeholders=self.placeholders, input_dim=input_dim_user, tag='user', length=user_dim,
File "E:\kgc-rec-main\kgc-rec-main\m_models.py", line 95, in init
self.build()
File "E:\kgc-rec-main\kgc-rec-main\m_models.py", line 49, in build
hidden = self.layersi
File "E:\kgc-rec-main\kgc-rec-main\m_layers.py", line 415, in call
w_omega = tf.get_variable(initializer=tf.random_normal([hidden_size, self.attention_size], stddev=0.1),
File "D:\anacoda\envs\pytorch\lib\site-packages\tensorflow\python\util\dispatch.py", line 201, in wrapper
return target(*args, **kwargs)
File "D:\anacoda\envs\pytorch\lib\site-packages\tensorflow\python\ops\random_ops.py", line 90, in random_normal
shape_tensor = tensor_util.shape_tensor(shape)
File "D:\anacoda\envs\pytorch\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 1035, in shape_tensor
return ops.convert_to_tensor(shape, dtype=dtype, name="shape")
File "D:\anacoda\envs\pytorch\lib\site-packages\tensorflow\python\profiler\trace.py", line 163, in wrapped
return func(*args, **kwargs)
File "D:\anacoda\envs\pytorch\lib\site-packages\tensorflow\python\framework\ops.py", line 1540, in convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "D:\anacoda\envs\pytorch\lib\site-packages\tensorflow\python\framework\constant_op.py", line 339, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "D:\anacoda\envs\pytorch\lib\site-packages\tensorflow\python\framework\constant_op.py", line 264, in constant
return _constant_impl(value, dtype, shape, name, verify_shape=False,
File "D:\anacoda\envs\pytorch\lib\site-packages\tensorflow\python\framework\constant_op.py", line 281, in _constant_impl
tensor_util.make_tensor_proto(
File "D:\anacoda\envs\pytorch\lib\site-packages\tensorflow\python\framework\tensor_util.py", line 551, in make_tensor_proto
raise TypeError("Failed to convert object of type %s to Tensor. "
TypeError: Failed to convert object of type <class 'tuple'> to Tensor. Contents: (None, 32). Consider casting elements to a supported type.