mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-10 07:28:15 -05:00
cleanup tests Device[Device.DEFAULT] is always Compiled (#3645)
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import unittest
|
||||
from tinygrad import Tensor, Device, Variable
|
||||
from tinygrad.device import Compiled
|
||||
from examples.gpt2 import Transformer
|
||||
from tinygrad.nn.state import get_state_dict
|
||||
|
||||
@unittest.skipIf(not isinstance(Device[Device.DEFAULT], Compiled), "only test for compiled backends")
|
||||
class TestMethodCache(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.backup_compiler = Device[Device.DEFAULT].compiler
|
||||
|
||||
Reference in New Issue
Block a user