configure derandomizing CI tests (#4793)

This commit is contained in:
qazal
2024-05-31 22:06:58 +08:00
committed by GitHub
parent ed0a740fe4
commit 637f482588
6 changed files with 10 additions and 10 deletions

View File

@@ -4,11 +4,11 @@ from functools import partial
import numpy as np
import torch
from tinygrad import nn, dtypes, Tensor, Device
from tinygrad.helpers import THREEFRY
from tinygrad.helpers import THREEFRY, getenv
from test.helpers import is_dtype_supported
from hypothesis import given, settings, strategies as strat
settings.register_profile("my_profile", max_examples=200, deadline=None)
settings.register_profile("my_profile", max_examples=200, deadline=None, derandomize=getenv("DERANDOMIZE_CI", False))
settings.load_profile("my_profile")
# https://gist.github.com/devries/11405101