Skip to content

Commit

Permalink
remove unused line
Browse files Browse the repository at this point in the history
Signed-off-by: Kaihui-intel <[email protected]>
  • Loading branch information
Kaihui-intel committed Jun 14, 2024
1 parent 1c696ee commit 5fb93d4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion neural_compressor/torch/algorithms/weight_only/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ def unpack_tensor_with_torch(self, packed_tensor):
def pack_tensor_with_numpy(self, raw_tensor):
raw_array = raw_tensor.cpu().numpy()
target_len = np.ceil(raw_array.shape[1] / self.n_pack).astype(int)
torch.int32
target_dtype = torch.tensor(0, dtype=self.compression_dtype).numpy().dtype
packed_array = np.zeros((raw_array.shape[0], target_len), dtype=target_dtype)
mask = np.uint8(2**self.bits - 1)
Expand Down

0 comments on commit 5fb93d4

Please sign in to comment.