Skip to content

Commit

Permalink
Merge pull request #139 from BenjaminBossan/fix-type-annotation-torch…
Browse files Browse the repository at this point in the history
…-2.5

FIX: Type annotation torch.Any
  • Loading branch information
Godofnothing authored Feb 26, 2025
2 parents ab272bf + 780fe15 commit 429b86e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inference_lib/src/aqlm/inference.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
""" Core mathematics for Additive Quantization (AQ): initialization, reconstruction and beam search"""
import math
from typing import Optional
from typing import Any, Optional

import torch
import torch.nn as nn
Expand Down Expand Up @@ -99,7 +99,7 @@ def _get_autograd_matmul_op(forward_pass_kernel, backward_pass_kernel):
class _QuantizedMatmul(torch.autograd.Function):
@staticmethod
def forward(
ctx: torch.Any,
ctx: Any,
input: torch.Tensor,
codes: torch.IntTensor,
codebooks: torch.Tensor,
Expand Down

0 comments on commit 429b86e

Please sign in to comment.