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

オープン
#262 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python, tensorflow

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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?

主要言語
Python
スター
2.9k
フォーク
452
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tensorflow/lingvo のほかの issue

tensorflow/lingvo の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。