Theano 기반 Keras 모델 정의를 TensorFlow로 변환 할 때 입력 레이어에서 input_shape
의 순서를 변경하는 것으로 충분합니까? 예를 들어Theano 기반 Keras 모델 정의를 TensorFlow로 변환
, 다음 계층
Convolution2D(32, 3, 3, input_shape=(3, img_width, img_height))
은
Convolution2D(32, 3, 3, input_shape=(img_width, img_height, 3))
참고로 대체 될 것이다 : 나는 dim_ordering='th'
를 사용하지 않습니다. Francois Chollet에서