Download nfp/models/models.py from patonlab/cascade: direct link, hf CLI and curl.
- Browser
- Download file 430 Bytes
-
https://huggingface.co/spaces/patonlab/cascade/resolve/main/nfp/models/models.py
- Command line
-
hf download hf://spaces/patonlab/cascade/nfp/models/models.py
-
curl -L -o models.py https://huggingface.co/spaces/patonlab/cascade/resolve/main/nfp/models/models.py
430 Bytes
| from keras.models import Model | |
| class GraphModel(Model): | |
| """ This is a simple modification of the Keras `Model` class to avoid | |
| checking each input for a consistent batch_size dimension. Should work as | |
| of keras-team/keras#11548. | |
| """ | |
| def _standardize_user_data(self, *args, **kwargs): | |
| kwargs['check_array_lengths'] = False | |
| return super(GraphModel, self)._standardize_user_data(*args, **kwargs) | |