Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B-ASIC - Better ASIC Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
B-ASIC - Better ASIC Toolbox
Commits
f1da29a2
Commit
f1da29a2
authored
4 years ago
by
Rasmus Karlsson
Browse files
Options
Downloads
Patches
Plain Diff
Added pseuso code for op.split()
parent
0f5833aa
No related branches found
No related tags found
1 merge request
!34
Resolve "Operation Splitting"
Pipeline
#13620
passed
4 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
b_asic/operation.py
+26
-1
26 additions, 1 deletion
b_asic/operation.py
with
26 additions
and
1 deletion
b_asic/operation.py
+
26
−
1
View file @
f1da29a2
...
...
@@ -329,8 +329,31 @@ class AbstractOperation(Operation, AbstractGraphComponent):
# Import here to avoid circular imports.
from
b_asic.special_operations
import
Input
try
:
result
=
self
.
evaluate
([
Input
()]
*
self
.
input_count
)
result
=
self
.
evaluate
(
*
(
[
Input
()]
*
self
.
input_count
)
)
if
isinstance
(
result
,
collections
.
Sequence
)
and
all
(
isinstance
(
e
,
Operation
)
for
e
in
result
):
# Loopa igenom alla inputs för Self
# Spara Destination
# Hitta utsignalen från Destination
# Spara utsignalens destination
# Gör så att current Input Signals destination blir utsignalens destination
# Loopa igenom alla outputs för Self
# Spara Source
# Hitta insignalen till Source
# Spara insignalens source
# Gör så att current Output Signals source blir insignalens source
self
.
input_signals
return
result
if
isinstance
(
result
,
Operation
):
return
[
result
]
...
...
@@ -340,6 +363,8 @@ class AbstractOperation(Operation, AbstractGraphComponent):
pass
return
[
self
]
@property
def
neighbors
(
self
)
->
Iterable
[
GraphComponent
]:
return
list
(
self
.
input_signals
)
+
list
(
self
.
output_signals
)
...
...
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