mirror of
https://github.com/karpathy/nanochat.git
synced 2026-04-06 07:35:32 +00:00
fix MockModel's device definition
This commit is contained in:
parent
2f09686724
commit
07f1a3e8cf
|
|
@ -32,6 +32,7 @@ class MockModel:
|
|||
self.vocab_size = vocab_size
|
||||
self.config = MockConfig()
|
||||
self._device = "cpu"
|
||||
self._device = torch.device("cpu")
|
||||
|
||||
def get_device(self):
|
||||
return self._device
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user