use input dim to initialize weights, fix weight init