Is it possible to access feature specs from model?


I’m working on a task that requires a generalized way of retrieving feature names from a keras model alone. Ideally I’d be able to load a pretrained model, and access it’s feature’s names.

I’ve looked through the docs and haven’t found much, and also am a little bit concerned that there is no such solution. I’ve seen it done using sklearn’s feature_names_in attribute, so is there a keras/tf equivalent? Any insight is greatly appreciated.