mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-13 00:15:35 +08:00
Train efficientnet should respect NUM environment variable (#122)
Co-authored-by: holonomicjl <58403584+holonomicjl@users.noreply.github.com>
This commit is contained in:
@@ -6,7 +6,7 @@ from tinygrad.tensor import Tensor
|
||||
|
||||
if __name__ == "__main__":
|
||||
Tensor.default_gpu = os.getenv("GPU") is not None
|
||||
model = EfficientNet()
|
||||
model = EfficientNet(int(os.getenv("NUM", "0")))
|
||||
|
||||
BS = 4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user