Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
b8d97c24
Commit
b8d97c24
authored
4 years ago
by
Thomas Juerges
Browse files
Options
Downloads
Patches
Plain Diff
Temporary modification that does not convert weights into a 3d-array
parent
e67273cd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SDP/SDP/SDP.py
+6
-2
6 additions, 2 deletions
SDP/SDP/SDP.py
with
6 additions
and
2 deletions
SDP/SDP/SDP.py
+
6
−
2
View file @
b8d97c24
...
@@ -261,8 +261,12 @@ class SDP(Device):
...
@@ -261,8 +261,12 @@ class SDP(Device):
def
read_fpga_weights_R
(
self
):
def
read_fpga_weights_R
(
self
):
"""
Return the fpga_weights_R attribute.
"""
"""
Return the fpga_weights_R attribute.
"""
value
=
numpy
.
array
(
self
.
attribute_mapping
[
"
fpga_weights_R
"
].
get_value
())
value
=
numpy
.
array
(
self
.
attribute_mapping
[
"
fpga_weights_R
"
].
get_value
())
fpgas
=
numpy
.
array
(
numpy
.
split
(
value
,
indices_or_sections
=
16
))
# ATTENTION
self
.
_fpga_weights_R
=
numpy
.
array
(
numpy
.
split
(
fpgas
,
indices_or_sections
=
12
))
# Fix me!
# This needs to be turned into a 3d-array of 16x12x488
#fpgas = numpy.array(numpy.split(value, indices_or_sections = 16))
#self._fpga_weights_R = numpy.array(numpy.split(fpgas, indices_or_sections = 12))
self
.
_fpga_weights_R
=
numpy
.
array
(
value
)
return
self
.
_fpga_weights_R
return
self
.
_fpga_weights_R
@only_when_on
@only_when_on
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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