Skip to content
Snippets Groups Projects
Commit 11832304 authored by Simon Jonscher's avatar Simon Jonscher
Browse files

fix: Resizing for tau_syn calibration target

Change-Id: Ide3c94e8185636075c02b4db622875add11cbbaa
parent ed73f1be
No related branches found
No related tags found
No related merge requests found
......@@ -289,10 +289,7 @@ class Population(BasePopulation):
if not entity.shape:
return torch.full((2, size), entity)
if len(entity.shape) == 1:
if entity.size == 2:
return entity.repeat((1, size)).clone().detach()
if entity.size == halco.AtomicNeuronOnDLS.size:
return entity.repeat((2, 1)).clone().detach()
return entity.repeat((2, 1)).clone().detach()
return entity.clone().detach()
@staticmethod
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment