Specify SP params via TP region config
BoltzmannBrain opened this issue · comments
Alexander Lavin commented
When creating a network with a TP region in the sequence classification factory, you can only specify the TP params and not the underlying SP params. That is, the TP subclasses the SP, so the factory assumes these standard SP params. Trying to specify SP params in the TP region config json will raise an error because they are not defined in the TP region's spec.
Subutai Ahmad commented
There's a Pythonic trick to do this easily and automatically. You can simply introspect the appropriate classes and add params automatically to the spec. This is used in some of the other regions.