Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yzh119 committed Jan 31, 2024
1 parent d5f397d commit 4629a1c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion python/flashinfer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,18 @@
See the License for the specific language governing permissions and
limitations under the License.
"""
import torch
try:
import torch
except ImportError as e:
import os
import logging
if os.environ.get("BUILD_DOC", "0") == "1":
_kernels = None
logging.warning(
"torch is not loaded in documentation build mode."
)
else:
raise e


class RotaryMode:
Expand Down

0 comments on commit 4629a1c

Please sign in to comment.