import re


def get_input_size(filename):
    """Gets input size and # of channels."""
    with open(filename) as input_file:
        for line in input_file:
            match = re.match(r'^input.*\(None, (\d*), (\d*), (\d*)\)', line)
            if match is not None:
                x = int(match.group(1))
                c = int(match.group(3))
                return x,c