You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
在运行bidaf_squadv2.py时遇到了如下报错:
File "G:\SMRCToolkit-master\sogou_mrc\data\batch_generator.py", line 121, in extract_char
out = tf.sparse.to_dense(out, default_value=default_value)
AttributeError: module 'tensorflow' has no attribute 'sparse'
我将文件中的tf.sparse.to_dense改为tf.sparse_to_dense,但是依旧报错
File "G:\SMRCToolkit-master\sogou_mrc\data\batch_generator.py", line 145, in transform_new_instance
context_char = extract_char(context_tokens)
File "G:\SMRCToolkit-master\sogou_mrc\data\batch_generator.py", line 121, in extract_char
out = tf.sparse_to_dense(out, default_value=default_value)
TypeError: sparse_to_dense() missing 2 required positional arguments: 'output_shape' and 'sparse_values'
请问这个问题该如何解决呢?
The text was updated successfully, but these errors were encountered:
在运行bidaf_squadv2.py时遇到了如下报错:
File "G:\SMRCToolkit-master\sogou_mrc\data\batch_generator.py", line 121, in extract_char
out = tf.sparse.to_dense(out, default_value=default_value)
AttributeError: module 'tensorflow' has no attribute 'sparse'
我将文件中的tf.sparse.to_dense改为tf.sparse_to_dense,但是依旧报错
File "G:\SMRCToolkit-master\sogou_mrc\data\batch_generator.py", line 145, in transform_new_instance
context_char = extract_char(context_tokens)
File "G:\SMRCToolkit-master\sogou_mrc\data\batch_generator.py", line 121, in extract_char
out = tf.sparse_to_dense(out, default_value=default_value)
TypeError: sparse_to_dense() missing 2 required positional arguments: 'output_shape' and 'sparse_values'
请问这个问题该如何解决呢?
The text was updated successfully, but these errors were encountered: