Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hxtorch
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Apps
BrainScaleS
hxtorch
Commits
11832304
Commit
11832304
authored
3 weeks ago
by
Simon Jonscher
Browse files
Options
Downloads
Patches
Plain Diff
fix: Resizing for tau_syn calibration target
Change-Id: Ide3c94e8185636075c02b4db622875add11cbbaa
parent
ed73f1be
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pyhxtorch/hxtorch/spiking/modules/types.py
+1
-4
1 addition, 4 deletions
src/pyhxtorch/hxtorch/spiking/modules/types.py
with
1 addition
and
4 deletions
src/pyhxtorch/hxtorch/spiking/modules/types.py
+
1
−
4
View file @
11832304
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment