-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditionally add tensorflow dependent primitives to top level primitives #105
Conversation
3c25311
to
53373a7
Compare
def test_name_in_primitive_list(universal_sentence_encoder): | ||
assert PRIMITIVES.name.eq(universal_sentence_encoder.name).any() |
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.
Any reason to add a similar test for Elmo
?
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.
The Elmo tests use the PrimitiveT
test class so there should already be a test like that for Elmo
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.
Ah, yes. Got it.
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.
LGTM!
Uses importlib to check for a tensorflow module before adding
UniversalSentenceEncoder
andElmo
to top level imports for the library