def get_serving_fn(window_size):
    input_tensor = {'frame_{}'.format(i): tf.placeholder(dtype=tf.string, shape=[None]) for i in range(window_size)}
    return tf.estimator.export.build_raw_serving_input_receiver_fn(input_tensor)
def get_serving_fn(window_size):
    input_tensor = {'frame_{}'.format(i): tf.placeholder(dtype=tf.string, shape=[None]) for i in range(window_size)}
    return tf.estimator.export.build_raw_serving_input_receiver_fn(input_tensor)