graykode / graykode/nlp-tutorial
Seq2Seq(Attention)Input Shape Question
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 14.9k
- Fork
- 3.9k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Seq2Seq(Attention)\Seq2Seq(Attention)-Tensor.py
The shape of the input should be [max_time, batch_size,...]. The input = tf. transpose (dec_inputs, [1, 0, 2]) has already been transformed. In tf. expand_dims (inputs [i], 1), the expansion is indeed one dimension. It seems that there should be zero dimension expansion here. Although the final shape is correct, whether it is intentional or not is here. What about a little trick?
Hướng dẫn đóng góp
Hướng nghiên cứu
Đọc Seq2Seq(Attention)\Seq2Seq(Attention)-Tensor.py và theo dõi các shape qua các biểu thức transpose và tf.expand_dims(inputs[i], 1). Chạy ví dụ và so sánh từng shape trung gian với kỳ vọng [max_time, batch_size, ...] đã nêu. Hoàn thành nghĩa là xác định liệu việc mở rộng có phải là chủ ý hay không và ghi lại hoặc sửa hành vi đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python, tensorflow
- Lĩnh vực
- machine-learning
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100