boncey / Flickr4Java

Java API For Flickr. Fork of FlickrJ
BSD 2-Clause "Simplified" License
174 stars 155 forks source link

tensorflow Original stack trace for 'MatMul': #697

Closed lone-xia-forever closed 5 months ago

lone-xia-forever commented 1 year ago

Subject of the issue

The following error occurred when I used the version of tf 2.0 to run the lower version of tf

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "run_train.py", line 131, in m.train(generator) File "D:\Desktop\deep-opt-auctions-master\deep-opt-auctions-master\regretNet\trainer\trainer.py", line 297, in train if iter == 0: sess.run(self.lagrange_update, feed_dict = {self.x : X}) File "D:\Anaconda\envs\pytorch\lib\site-packages\tensorflow_core\python\client\session.py", line 956, in run run_metadata_ptr) File "D:\Anaconda\envs\pytorch\lib\site-packages\tensorflow_core\python\client\session.py", line 1180, in _run feed_dict_tensor, options, run_metadata) File "D:\Anaconda\envs\pytorch\lib\site-packages\tensorflow_core\python\client\session.py", line 1359, in _do_run run_metadata) File "D:\Anaconda\envs\pytorch\lib\site-packages\tensorflow_core\python\client\session.py", line 1384, in _do_call raise type(e)(node_def, op, message) tensorflow.python.framework.errors_impl.InternalError: Blas GEMM launch failed : a.shape=(128, 2), b.shape=(2, 100), m=128, n=100, k=2 [[node MatMul (defined at D:\Anaconda\envs\pytorch\lib\site-packages\tensorflow_core\python\framework\ops.py:1751) ]]

Original stack trace for 'MatMul': File "run_train.py", line 130, in m = Trainer(cfg, "train", net, clip_op_lambda) File "D:\Desktop\deep-opt-auctions-master\deep-opt-auctions-master\regretNet\trainer\trainer.py", line 52, in init self.init_graph() File "D:\Desktop\deep-opt-auctions-master\deep-opt-auctions-master\regretNet\trainer\trainer.py", line 153, in init_graph self.alloc, self.pay = self.net.inference(self.x) File "D:\Desktop\deep-opt-auctions-master\deep-opt-auctions-master\regretNet\nets\additive_net.py", line 111, in inference a = tf.matmul(x_in, self.w_a[0]) + self.b_a[0] #矩阵相乘加偏差 File "D:\Anaconda\envs\pytorch\lib\site-packages\tensorflow_core\python\util\dispatch.py", line 180, in wrapper return target(*args, *kwargs) File "D:\Anaconda\envs\pytorch\lib\site-packages\tensorflow_core\python\ops\math_ops.py", line 2765, in matmul a, b, transpose_a=transpose_a, transpose_b=transpose_b, name=name) File "D:\Anaconda\envs\pytorch\lib\site-packages\tensorflow_core\python\ops\gen_math_ops.py", line 6136, in mat_mul name=name) File "D:\Anaconda\envs\pytorch\lib\site-packages\tensorflow_core\python\framework\op_def_library.py", line 793, in _apply_op_helper op_def=op_def) File "D:\Anaconda\envs\pytorch\lib\site-packages\tensorflow_core\python\util\deprecation.py", line 507, in new_func return func(args, **kwargs) File "D:\Anaconda\envs\pytorch\lib\site-packages\tensorflow_core\python\framework\ops.py", line 3360, in create_op attrs, op_def, compute_device) File "D:\Anaconda\envs\pytorch\lib\site-packages\tensorflow_core\python\framework\ops.py", line 3429, in _create_op_internal op_def=op_def) File "D:\Anaconda\envs\pytorch\lib\site-packages\tensorflow_core\python\framework\ops.py", line 1751, in init self._traceback = tf_stack.extract_stack()

tensorflow 2.0

How can I solve this problem