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
Connor Hainje
pidanalysis
Commits
49942609
Commit
49942609
authored
Jan 03, 2022
by
connor.hainje@pnnl.gov
Browse files
Formatting
parent
4132573d
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/pidml/pidml/networks.py
View file @
49942609
...
...
@@ -162,8 +162,9 @@ class SimpleNet(GeneralNet):
'probabilities' that each particle was of each possible particle
type.
"""
n
=
self
.
n_detector
outs
=
[
self
.
fcs
[
i
](
x
[:,
i
*
self
.
n_detector
:
(
i
+
1
)
*
self
.
n_detector
])
self
.
fcs
[
i
](
x
[:,
i
*
n
:
(
i
+
1
)
*
n
])
for
i
in
range
(
self
.
n_class
)
]
out
=
torch
.
cat
(
outs
,
dim
=
1
)
...
...
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