1
A
回答
1
參數
shape: A shape tuple (integer), not including the batch size. For instance, `shape=(32,)` indicates that the expected input will be batches of 32-dimensional vectors. batch_shape: A shape tuple (integer), including the batch size. For instance, `batch_shape=(10, 32)` indicates that the expected input will be batches of 10 32-dimensional vectors. `batch_shape=(None, 32)` indicates batches of an arbitrary number of 32-dimensional vectors.
批量大小是多少例子在你的訓練數據。
您可以使用任何。我個人從未使用過「batch_shape」。當你使用「形狀」時,你的批量可以是任意大小,你不必關心它。
shape=(32,)
的含義與batch_shape=(None,32)
相同
相關問題
- 1. Keras輸入形狀
- 2. Keras輸入形狀錯誤
- 3. Keras輸入形狀ValueError
- 4. 輸入形狀和Conv1d在Keras
- 5. Keras - 嵌入層的輸入形狀
- 6. 使用Keras LSTM和Tensorflow時的輸入形狀問題
- 7. Keras:可變輸入序列:填充vs形狀無?
- 8. keras分類:輸入數據形狀
- 9. Keras SimpleRNN輸入形狀和掩蔽
- 10. LSTM多對一預測使用keras輸入形狀
- 11. 如何處理keras的輸入和輸出形狀LSTM
- 12. 如何用keras定義輸入的形狀
- 13. 如何正確指定Keras中LSTM模型的輸入形狀
- 14. 整形Keras輸入爲LSTM
- 15. 瞭解不同序列的keras中的lstm輸入形狀
- 16. 如何在Keras中的順序模型中更改輸入形狀
- 17. Keras得到錯誤的輸出形狀
- 18. Keras - 大型的2維陣列的輸入形狀
- 19. Keras正確的輸入形狀爲多層感知器
- 20. Keras LSTM/GRU語言模型的輸入形狀
- 21. 在Keras中使用有狀態的LSTM與微型配料和可變時間步長的輸入?
- 22. TimeDistributed(Flatten())在Keras中給出相同的輸出形狀
- 23. Keras - 有狀態vs無狀態LSTM
- 24. Keras卷積形狀的尺寸無序(檢查模型輸入時出錯)
- 25. Css輸入形狀
- 26. Tensorflow,使用可變形狀的輸入
- 27. 在keras的LSTM中使用隱藏狀態而不是輸出
- 28. 如何鏈/組成層中keras 2官能API,而不指定輸入(或輸入形狀)
- 29. keras中LSTM的形狀不匹配
- 30. 合併具有不同輸入形狀的不同型號的輸出