mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
Train efficientnet should respect NUM environment variable (#122)
Co-authored-by: holonomicjl <58403584+holonomicjl@users.noreply.github.com>
This commit is contained in:
parent
ee99d016e9
commit
5797e63d9b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue