tieing parameters from encoder to decoder.