def _split_xy(feat_dict):
    target = tf.one_hot(tf.to_int32(feat_dict['target']), depth=2, dtype=tf.float32)
    input_frames = {}
    for i in range(n_frames):
        frame_id = 'frame_{}'.format(i)
        input_frames[frame_id] = feat_dict[frame_id]
    return (input_frames, {'target': target})
def _split_xy(feat_dict):
    target = tf.one_hot(tf.to_int32(feat_dict['target']), depth=2, dtype=tf.float32)
    input_frames = {}
    for i in range(n_frames):
        frame_id = 'frame_{}'.format(i)
        input_frames[frame_id] = feat_dict[frame_id]
    return (input_frames, {'target': target})