'Create data input nodes.
This method is for old-style inputs, where the input specification
was not treated as a first-class layer in the prototext.
Newer models use the "Input layer" type.'

def make_input_nodes(self):

    nodes = [Node(name, NodeKind.Data) for name in self.params.input]
    if len(nodes):
        input_dim = map(int, self.params.input_dim)
        if (not input_dim):
            if (len(self.params.input_shape) > 0):
                input_dim = map(int, self.params.input_shape[0].dim)
            else:
                raise KaffeError('Dimensions    for    input    not    specified.')
        for node in nodes:
            node.output_shape = tuple(input_dim)
    return nodes
