Skip to content

Commit 955aedf

Browse files
committed
remove changes about import tvm_ffi
1 parent 95f1bf5 commit 955aedf

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

flashinfer/fused_moe/core.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
from typing import Any, Dict, List, Optional, Tuple, Union
2121

2222
import torch
23-
import paddle
24-
25-
with paddle.compat.use_torch_proxy_guard(enable=False):
26-
import tvm_ffi
2723

2824
from ..autotuner import (
2925
AutoTuner,
@@ -354,7 +350,9 @@ def __init__(
354350
)
355351
self.activation_type = activation_type
356352

357-
def paddle_dtype_to_tvm_ffi_dtype(dtype: paddle.dtype):
353+
def paddle_dtype_to_tvm_ffi_dtype(dtype):
354+
import tvm_ffi
355+
358356
dtype_str = str(dtype).split(".", 1)[-1]
359357
return tvm_ffi.dtype(dtype_str)
360358

flashinfer/jit/core.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import dataclasses
22
import logging
33
import os
4-
import paddle
5-
6-
with paddle.compat.use_torch_proxy_guard(enable=False):
7-
import tvm_ffi
84
from contextlib import nullcontext
95
from datetime import datetime
106
from pathlib import Path

flashinfer/jit/cpp_ext.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
from pathlib import Path
1111
from typing import List, Optional
1212

13-
import paddle
14-
15-
with paddle.compat.use_torch_proxy_guard(enable=False):
16-
import tvm_ffi
13+
import tvm_ffi
1714
import torch
1815

1916
from . import env as jit_env

0 commit comments

Comments
 (0)