Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cfel_fmt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
dataAnalysis
cfel_fmt
Commits
cbb96423
Commit
cbb96423
authored
7 years ago
by
Valerio Mariani
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a problem with scalar stacks actually being 2-dimensional
parent
e8fa01d9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cfel_cxi.py
+2
-2
2 additions, 2 deletions
cfel_cxi.py
with
2 additions
and
2 deletions
cfel_cxi.py
+
2
−
2
View file @
cbb96423
...
@@ -49,7 +49,7 @@ class _Stack:
...
@@ -49,7 +49,7 @@ class _Stack:
self
.
_data_type
=
_assign_data_type
(
data
)
self
.
_data_type
=
_assign_data_type
(
data
)
if
isinstance
(
data
,
(
bytes
,
int
,
float
)):
if
isinstance
(
data
,
(
bytes
,
int
,
float
)):
self
.
_data_shape
=
(
1
,
)
self
.
_data_shape
=
()
else
:
else
:
self
.
_data_shape
=
data
.
shape
self
.
_data_shape
=
data
.
shape
...
@@ -103,7 +103,7 @@ class _Stack:
...
@@ -103,7 +103,7 @@ class _Stack:
raise
RuntimeError
(
'
The type of the input data does not match what is already present in the stack.
'
)
raise
RuntimeError
(
'
The type of the input data does not match what is already present in the stack.
'
)
if
isinstance
(
data
,
(
bytes
,
int
,
float
)):
if
isinstance
(
data
,
(
bytes
,
int
,
float
)):
curr_data_shape
=
(
1
,
)
curr_data_shape
=
()
else
:
else
:
curr_data_shape
=
data
.
shape
curr_data_shape
=
data
.
shape
...
...
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