Skip to content
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

"Using tensorflow backend" even when using pytorch models #49

Open
ayushkarnawat opened this issue Jan 27, 2020 · 2 comments
Open

"Using tensorflow backend" even when using pytorch models #49

ayushkarnawat opened this issue Jan 27, 2020 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation invalid This doesn't seem right

Comments

@ayushkarnawat
Copy link
Owner

When importing the profit module, the Using TensorFlow backend. is printed to the console. However, this should not be printed as the default backend should be pytorch. Somewhat related to #47.

Current behavior

"Using TensorFlow backend."

Expected behavior

"Using PyTorch backend."

@ayushkarnawat ayushkarnawat added documentation Improvements or additions to documentation invalid This doesn't seem right labels Jan 27, 2020
@ayushkarnawat
Copy link
Owner Author

This happens because some submodules of profit use keras to build layers/models, which, in turn, uses the tensorflow to perform computations.

@ayushkarnawat ayushkarnawat self-assigned this Jan 27, 2020
@ayushkarnawat
Copy link
Owner Author

ayushkarnawat commented Feb 12, 2020

Disable the import of keras/tensorflow (in all modules/submodules) if the tensorflow backend is not being used! This will likely be a big commit and will involve changing many imports statements within files. This involves not importing the submodules that requires tensorflow/torch when importing the root modules. To use the backend you want, one has to import the necessary submodule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant