mirror of
https://github.com/ROCm/jax.git
synced 2025-04-19 05:16:06 +00:00
Internal change
PiperOrigin-RevId: 464052046
This commit is contained in:
parent
7b17ee87a9
commit
80eb641f6a
@ -17,20 +17,19 @@ from __future__ import annotations
|
||||
import abc
|
||||
import dataclasses
|
||||
import functools
|
||||
import sys
|
||||
import uuid
|
||||
|
||||
from typing import Any, Dict, List, Union
|
||||
|
||||
# pylint: disable=g-import-not-at-top
|
||||
# pytype: disable=import-error
|
||||
try:
|
||||
IS_COLAB_ENABLED = "google.colab" in sys.modules
|
||||
if IS_COLAB_ENABLED:
|
||||
# pylint: disable=g-import-not-at-top
|
||||
# pytype: disable=import-error
|
||||
from google.colab import output
|
||||
from IPython import display
|
||||
IS_COLAB_ENABLED = True
|
||||
except ImportError:
|
||||
IS_COLAB_ENABLED = False
|
||||
# pytype: enable=import-error
|
||||
# pylint: enable=g-import-not-at-top
|
||||
# pytype: enable=import-error
|
||||
# pylint: enable=g-import-not-at-top
|
||||
|
||||
|
||||
class DOMElement(metaclass=abc.ABCMeta):
|
||||
|
Loading…
x
Reference in New Issue
Block a user