Tune: Fixed correctness

This commit is contained in:
Philippe Tillet
2015-06-23 09:54:40 -07:00
parent 80bcbd095f
commit c61eaceb21
3 changed files with 7 additions and 10 deletions

View File

@@ -12,10 +12,7 @@ def sample_profiles(execution_handler, generator):
print x
if i==0:
X = np.empty((0,len(x)))
try:
y = execution_handler(x)
except:
continue
y = execution_handler(x)
if y not in profiles:
profiles.append(y)
idx = profiles.index(y)