[Bugfix][TPU] fix moe custom kernel import (#18853)
Signed-off-by: Chengji Yao <chengjiyao@google.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.nn.functional as F
|
import torch.nn.functional as F
|
||||||
|
import torch_xla.experimental.custom_kernel # noqa: F401
|
||||||
|
|
||||||
|
|
||||||
def _histogram(input: torch.Tensor, min: int, max: int) -> torch.Tensor:
|
def _histogram(input: torch.Tensor, min: int, max: int) -> torch.Tensor:
|
||||||
|
|||||||
Reference in New Issue
Block a user