You can initialize your session variable as
from keras import backend as K sess = K.get_session()
and export the model as in a workbook (note that the import for the exporter has changed )
from tensorflow.contrib.session_bundle import exporter K.set_learning_phase(0) export_path = ...
source share