Skip to content

Commit

Permalink
Add the missed torch import.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesTheZ committed Mar 6, 2024
1 parent f8454a0 commit bed775e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions op_builder/inference_core_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def get_prefix(self):
return "deepspeed" if os.path.isdir(ds_path) else ".."

def sources(self):
import torch

sources = [
"inference/v2/kernels/core_ops/core_ops.cpp",
"inference/v2/kernels/core_ops/bias_activations/bias_activation.cpp",
Expand Down

0 comments on commit bed775e

Please sign in to comment.