def placeholder(shape=None, ndim=None, dtype=_FLOATX, name=None):
    if shape is None and ndim is None:
        raise Exception('Specify either a shape or ndim value.')
    if isinstance(shape, T.TensorVariable):
        ndim = shape.ndim
    elif shape is not None:
        ndim = len(shape)
    if ndim == 0:
        return T.scalar(name=name, dtype=dtype)
    elif ndim == 1:
        return T.vector(name=name, dtype=dtype)
    elif ndim == 2:
        return T.matrix(name=name, dtype=dtype)
    elif ndim == 3:
        return T.tensor3(name=name, dtype=dtype)
    elif ndim == 4:
        return T.tensor4(name=name, dtype=dtype)
    else:
        return T.TensorType(dtype, (False,)*ndim)(name=name)
Main entry point.
dataset/ETHPy150Open sharadmv/deepx/deepx/backend/theano_backend.py/placeholder--crossover with--dataset/ETHPy150Open soimort/you-get/src/you_get/__main__.py/main