ECP-CANDLE / candle_lib

MIT License
1 stars 9 forks source link

Fixed an issue with candle initialization #4

Closed AlexandrNP closed 2 years ago

AlexandrNP commented 2 years ago

In an environment where only PyTorch is installed importing 'candle' module prior to 'torch' resulted in "No backend has been specified." exception. Adding try/catch statement loading 'torch' module (analogous to the one for tensorflow) fixes an issue.

rajeeja commented 2 years ago

@jmohdyusof please approve and merge, this is needed for pytorch models.

jmohdyusof commented 2 years ago

Why don't you push to develop instead of master?

rajeeja commented 2 years ago

@AlexandrNP just change to branch to develop instead of master