Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
57007a97
Commit
57007a97
authored
Jul 19, 2022
by
Gustaf Ahdritz
Browse files
Make DLLogger less mandatory
parent
7ad80589
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
openfold/utils/logger.py
openfold/utils/logger.py
+7
-3
No files found.
openfold/utils/logger.py
View file @
57007a97
...
...
@@ -11,17 +11,21 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
os
import
operator
import
time
import
dllogger
as
logger
import
numpy
as
np
import
torch.cuda.profiler
as
profiler
from
dllogger
import
JSONStreamBackend
,
StdOutBackend
,
Verbosity
from
pytorch_lightning
import
Callback
# We make this optional for the Colab's sake
try
:
import
dllogger
as
logger
from
dllogger
import
JSONStreamBackend
,
StdOutBackend
,
Verbosity
except
:
pass
def
is_main_process
():
return
int
(
os
.
getenv
(
"LOCAL_RANK"
,
"0"
))
==
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment