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
This commit removes the if-else hierarchy in GeneralOptimizer
by abstracting some parts of the topologies.
Resolves#232
Signed-off-by: Lester James V. Miranda <[email protected]>
This commit removes the if-else hierarchy in GeneralOptimizer
by abstracting some parts of the topologies.
Resolves#232
Signed-off-by: Lester James V. Miranda <[email protected]>
The if-else hierarchy we have works, but looks convoluted & unmaintainable. Better refactor this with private functions or a
dict
.Or maybe we should work on how the backend topologies were implemented. I'm thinking of using
*args
and**kwargs
for this, still not sure.Reference: https://stackoverflow.com/questions/14626279/inheritance-best-practice-args-kwargs-or-explicitly-specifying-parameters
The text was updated successfully, but these errors were encountered: