For ASR, if I set num_cnn_layers = 0, Invalid argument: Matrix size-incompatible: In[0]: [96,1056], In[1]: [1120,4096]

Đang mở
#262 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python, tensorflow
Lĩnh vực
backend, machine-learning

Hướng nghiên cứu

Start with the encoder configuration in the issue and trace how Lingvo handles num_cnn_layers = 0 alongside the LSTM dimensions. The reported matrix sizes are incompatible, but the issue names no source file or test to begin from. Reproduce the configuration and identify the source of the dimension mismatch; the issue gives no confirmed fix or test for completion.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

My setting is:
ep = p.encoder
ep.input_shape = [None, None, 96, 1]
ep.lstm_cell_size = 1024
ep.num_lstm_layers = 4
ep.conv_filter_shapes = []
ep.conv_filter_strides = []
ep.num_conv_lstm_layers = 0
ep.num_cnn_layers = 0

The error message I got is:

2021-04-20 01:28:21.220217: I lingvo/core/ops/record_yielder.cc:614] Emitted 649 records from /tmp/lingvo/lingvo/speech_data/train/train.tfrecords-00044-of-00100
2021-04-20 01:28:21.221373: I lingvo/core/ops/record_yielder.cc:425] 0x7f8e689de720Basic record yielder exit
I0420 01:28:21.910491 140268959409920 base_runner.py:120] Job trainer: Retrying as expected
trainer exception: From /job:localhost/replica:0/task:0:
6 root error(s) found.
(0) Invalid argument: Matrix size-incompatible: In[0]: [96,1056], In[1]: [1120,4096]
[[{{node MatMul}}]]
[[gradients/fprop/librispeech/tower_0_3/enc/proj_L2/MatMul_grad/MatMul_1_G1560]]
(1) Invalid argument: Matrix size-incompatible: In[0]: [96,1056], In[1]: [1120,4096]
[[{{node MatMul}}]]
[[gradients/fprop/librispeech/tower_0_5/enc/brnn_L2/IdentityN_1_grad/While_G1600]]
(2) Invalid argument: Matrix size-incompatible: In[0]: [96,1056], In[1]: [1120,4096]
[[{{node MatMul}}]]
[[gradients/fprop/librispeech/tower_0_3/dec/BiasAdd_grad/BiasAddGrad_G1228]]
(3) Invalid argument: Matrix size-incompatible: In[0]: [96,1056], In[1]: [1120,4096]
[[{{node MatMul}}]]

Any one can help?

Ngôn ngữ chính
Python
Star
2.9k
Fork
452
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của tensorflow/lingvo

Tất cả issue của tensorflow/lingvo

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.