Skip to content

Commit a038d38

Browse files
committed
remove changes about import tvm_ffi
1 parent eb73e79 commit a038d38

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,
@@ -335,7 +331,9 @@ def __init__(
335331
use_mxfp8_act_scaling,
336332
)
337333

338-
def paddle_dtype_to_tvm_ffi_dtype(dtype: paddle.dtype):
334+
def paddle_dtype_to_tvm_ffi_dtype(dtype):
335+
import tvm_ffi
336+
339337
dtype_str = str(dtype).split(".", 1)[-1]
340338
return tvm_ffi.dtype(dtype_str)
341339

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)