Skip to content
Snippets Groups Projects
Commit 4fc6813f authored by Levecque Etienne's avatar Levecque Etienne
Browse files

fix: correct bug in trivial search

parent c1cf8e8b
Branches
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ import numpy as np ...@@ -8,6 +8,7 @@ import numpy as np
from antecedent.block import Block from antecedent.block import Block
from antecedent.pipeline import NaivePipeline, create_pipeline from antecedent.pipeline import NaivePipeline, create_pipeline
from antecedent.utils import round
class Image: class Image:
...@@ -152,7 +153,7 @@ class Image: ...@@ -152,7 +153,7 @@ class Image:
if pipeline is None: if pipeline is None:
pipeline = self.pipeline pipeline = self.pipeline
block_values = np.stack([block.value.reshape(-1, 8, 8) for block in blocks]) block_values = np.stack([block.value.reshape(-1, 8, 8) for block in blocks])
starts = pipeline.backward(block_values) starts = round(pipeline.backward(block_values))
transformed_starts = pipeline.forward(starts) transformed_starts = pipeline.forward(starts)
completed = 0 completed = 0
for i in range(len(starts)): for i in range(len(starts)):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment