conv_result = merge([conv_unigram, conv_bigram, conv_trigram], mode='concat', concat_axis=2)

 

mode='concat', concat_axis=2

선택 된 아웃 풋들의 2번 째 요소를 다 이어붙임 (이 요소를 제외한 다른 요소들의 크기는 같아야함)

'실습 > keras' 카테고리의 다른 글

model 시각화 방법  (0) 2018.02.14
loss weight 추가하기 및 학습 도중 loss weight 바꾸기  (1) 2018.01.13
Theano tensor  (0) 2017.01.21
theano.shared(value=W_values, name='W', borrow=True)  (0) 2017.01.21
theano.config.floatX  (0) 2017.01.21

+ Recent posts