Open a897456 opened 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?
Perhaps you need to update your python version. Try with python 3.10.5.
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?