HarunoriKawano / BEST-RQ

Implementation of the paper "Self-supervised Learning with Random-projection Quantizer for Speech Recognition" in Pytorch.
https://arxiv.org/abs/2202.01855
Apache License 2.0
58 stars 3 forks source link

TypeError: 'type' object is not subscriptable #1

Open a897456 opened 1 year ago

a897456 commented 1 year ago

python example.py then:

File "C:\Users\User1\Desktop\BEST-RQ-main\model\best_rq_framework.py", line 58, in BestRqFramework def masking(self, input_values: torch.Tensor, input_lengths: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor]: TypeError: 'type' object is not subscriptable

How to solve it?

HarunoriKawano commented 1 year ago

Perhaps you need to update your python version. Try with python 3.10.5.