kern constructors now have input_dim instead of D