Skip to content

Commit

Permalink
fixes torch type issues (#1455)
Browse files Browse the repository at this point in the history
fixes tensor issues
  • Loading branch information
CreativeBuilds authored Jul 17, 2023
1 parent e821bfb commit abbc90f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bittensor/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
from typing import Dict, Optional, Tuple, Union, List, Callable

TORCH_DTYPES = {
'torch.float16': torch.float16,
'torch.float32': torch.float32,
'torch.float64': torch.float64,
'torch.uint8': torch.uint8,
'torch.int32': torch.int32,
'torch.int64': torch.int64,
}

Expand Down

0 comments on commit abbc90f

Please sign in to comment.