def load_pipeline(MODEL_NAME: str) -> object:

    model = LSTM.AudioLSTM(
        num_layer=config.Model.NUM_LAYERS,
        input_size=config.Model.INPUT_SIZE,
        hidden_size=config.Model.HIDDEN_DIM,
        output_size=config.Model.OUTPUT_SIZE,
        dropout=config.Model.DROPOUT,
    )
    file_path = os.path.join(config.TRAINED_MODEL_DIR, MODEL_NAME + _version + '.pth')
    trained_model = model.load_state_dict(torch.load(file_path))
    return trained_model

The model successfully loaded,
model = load_pipeline(NAME)
model
<All keys matched successfully>

However model eval returns an error.

model.eval()
Traceback (most recent call last):
  File "<input>", line 1, in <module>
AttributeError: '_IncompatibleKeys' object has no attribute 'eval'