You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to manage the training code and the serving code as well. But, we want to manage the files in a directory. So, our question is can we specify such a nested python class in .s2i/environment or not.
We use Importlib specifically importlib.import_module which should handle the dot notation. We have not tested this case, but we definitely need a story to provide this.
Would it make sense to allow the module path and class to be specified separately?
One option would be to just assume everything after the last "." is the class name and everything before is the module you could then parse it doing something like
Motivation
We want to manage the training code and the serving code as well. But, we want to manage the files in a directory. So, our question is can we specify such a nested python class in
.s2i/environment
or not.Expectaed Behavior
We want to specify a nested class as below.
Example .s2i/environment
Example Directory Structure
Error Message
The text was updated successfully, but these errors were encountered: