Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
a34560b0
Commit
a34560b0
authored
Jun 02, 2015
by
Pedro Gonnet
Browse files
fix really, really stupid bug. got the re-scaling of the graph weights backwards.
Former-commit-id: b0776d4e3f2c4a6bbb463bb384b1c63b2c47fb3e
parent
0f494287
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
a34560b0
...
...
@@ -443,7 +443,7 @@ void engine_repartition ( struct engine *e ) {
error
(
"Failed to allreduce the weight scales (%s)."
,
buff
);
}
if
(
wscale_buff
!=
wscale
)
{
float
scale
=
wscale
/
wscale
_buff
;
float
scale
=
wscale
_buff
/
wscale
;
for
(
k
=
0
;
k
<
26
*
nr_cells
;
k
++
)
weights_e
[
k
]
*=
scale
;
for
(
k
=
0
;
k
<
nr_cells
;
k
++
)
weights_v
[
k
]
*=
scale
;
}
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment