<div>28x28짜리 행렬, 3x3짜리 행렬이 있어요.</div> <div><br></div> <div>제가 짜려는건</div> <div><br></div> <div>28x28짜리 행렬 (배열) 을 펼쳐놓으면 아래와 같이 될텐데</div> <div><br></div> <div>0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</div> <div><span style="font-size:13.33px;">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div><span style="font-size:13.33px;">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div><span style="font-size:13.33px;">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div><span style="font-size:13.33px;">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div><span style="font-size:13.33px;">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div><span style="font-size:13.33px;">...</span></div> <div><span style="font-size:13.33px;">...</span></div> <div><span style="font-size:13.33px;">...</span></div> <div>...</div> <div><br></div> <div><br></div> <div>얘를 3x3 행렬로 하나씩 훑으면서 곱셈연산해주고 값을 다 더한것을 28x28 행렬의 각 위치에 넣는거에요.</div> <div><br></div> <div>그럼 이 28x28 행렬의 크기는 줄어들겠죠.. 3x3 행렬이 훑는다하면 총 9개 위치에 있는 값들이 사라지고 0x0 부터 값이 채워지니까요.</div> <div><br></div> <div>순서대로 표현하자면</div> <div><br></div> <div><br></div> <div style="font-size:13.33px;"><b>0 1 2</b> 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</div> <div style="font-size:13.33px;"><span style="font-size:13.33px;"><b>0 1 2</b> 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;"><b>0 1 2</b> 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;"><br></span></div> <div style="font-size:13.33px;">28x28 행렬의 [0 1 2 3x3 행렬의 [0 1 2 </div> <div style="font-size:13.33px;"> 0 1 2 x 0 1 2 <- 곱셈연산후 나온 값들을 모두 합쳐 28x28행렬의 0,0 위치에 삽입</div> <div style="font-size:13.33px;"> 0 1 2] 0 1 2] </div> <div style="font-size:13.33px;"><span style="font-size:13.33px;"><br></span></div> <div style="font-size:13.33px;"><br></div> <div style="font-size:13.33px;">0 <b>1 2 3</b> 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</div> <div style="font-size:13.33px;"><span style="font-size:13.33px;">0 <b>1 2 3</b> 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;">0 <b>1 2 3</b> 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;"><br></span></div> <div style="font-size:13.33px;">28x28 행렬의 [1 2 3 3x3 행렬의 [1 2 3 </div> <div style="font-size:13.33px;"> 1 2 3 x 1 2 3 <- 곱셈연산후 나온 값들을 모두 합쳐 28x28행렬의 0,1 위치에 삽입</div> <div style="font-size:13.33px;"> 1 2 3] 1 2 3] </div> <div><span style="font-size:13.33px;"><br></span></div> <div style="font-size:13.33px;">0 1 <b>2 3 4</b> 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</div> <div style="font-size:13.33px;"><span style="font-size:13.33px;">0 1 <b>2 3 4</b> 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;">0 1 <b>2 3 4</b> 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;">0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;"><br></span></div> <div style="font-size:13.33px;">28x28 행렬의 [2 3 4 3x3 행렬의 [2 3 4 </div> <div style="font-size:13.33px;"> 2 3 4 x 2 3 4 <- 곱셈연산후 나온 값들을 모두 합쳐 28x28행렬의 0,2 위치에 삽입</div> <div style="font-size:13.33px;"> 2 3 4] 2 3 4] </div> <div style="font-size:13.33px;"><span style="font-size:13.33px;"><br></span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;">이런 식으로 쭉 말이죠.</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;"></span> </div> <div style="font-size:13.33px;"><span style="font-size:13.33px;">여기서 본격적인 질문 드립니다!</span></div> <div style="font-size:13.33px;"><span style="font-size:13.33px;"></span> </div> <div style="font-size:13.33px;"><span style="font-size:13.33px;"></span> </div> <div style="font-size:13.33px;"><span style="font-size:13.33px;"></span> </div><span style="font-size:13.33px;"> </span><div><a target="_blank" href="http://colorscripter.com/s/vCrSZUV">http://colorscripter.com/s/vCrSZUV</a></div> <div><br></div> <div>count = 28 - 3 + 1 이고</div> <div><br></div> <div>input_shape가 28x28 행렬</div> <div><br></div> <div>weight이 3x3 행렬입니다</div> <div><br></div> <div>이 연산으로 두 행렬 곱연산은 했는데 곱연산해서 나온 3x3 매트릭스 다 더하는 연산을 하려면</div> <div> </div> <div> 이 안에다 포문을 또 만들어줘야겠죠??</div> <div> </div> <div>뭔가 코드가 복잡하고 더러워지는 것 같아서..</div> <div> </div> <div class="kakao_schAlliance" style="display:none;"> <div><span class="ka_schAlliance_icon">관련검색</span>관련검색어 안내버튼 </div> <div class="ka_schAlliance_pop" style="display:none;"> <div></div> <div class="inner"> <div>제공 Daum검색, 검색어를 누르면 Daum 검색결과로 이동합니다.</div><a class="btn_close" target="_blank">닫기</a></div></div></div> <div class="re_gall_box_2"> </div>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.