-
Notifications
You must be signed in to change notification settings - Fork 111
Conversation
Can we directly use |
good idea! @jermainewang |
for fname in self._name_injector.keys(): | ||
setattr(self, fname, self._name_injector[fname]) | ||
for fname in self._registry._reg.keys(): | ||
fun = PrimitiveSelector(fname, self._registry, self._policy) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does auto-completion require function signature? If so, our PrimitiveSelector will break it.
LGTM |
This PR fails Travis check. |
Could you paste the Travis log link? |
You can check the status of Travis. I fired a patch. |
alright, I see, due to this method make the attributes fixed when initialize modules, but sometimes we need to change policy during runtime. Thank you! |
I think this problem can be addressed by two different ways:
what's your opinion? @jermainewang @lryta |
Could you completely disallow changing policies in the runtime? I guess this is what we want to push? |
sounds good |
Let's move the discussion to #93 |
WIP