Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
8511d900
Commit
8511d900
authored
Dec 12, 2022
by
oahzxl
Browse files
code style
parent
5cdfcfe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
chunk_codegen.py
chunk_codegen.py
+0
-11
No files found.
chunk_codegen.py
View file @
8511d900
...
@@ -1210,8 +1210,6 @@ class ChunkRegionSearch(object):
...
@@ -1210,8 +1210,6 @@ class ChunkRegionSearch(object):
return
chunk_infos
return
chunk_infos
def
_find_free_dim
(
self
,
input_trace
,
output_trace
,
start_idx
,
end_idx
):
def
_find_free_dim
(
self
,
input_trace
,
output_trace
,
start_idx
,
end_idx
):
if
start_idx
==
71
and
end_idx
==
126
:
print
(
1
)
start_traces
=
input_trace
[
start_idx
]
start_traces
=
input_trace
[
start_idx
]
end_trace
=
output_trace
[
end_idx
]
end_trace
=
output_trace
[
end_idx
]
end_node
=
self
.
node_list
[
end_idx
]
end_node
=
self
.
node_list
[
end_idx
]
...
@@ -1347,15 +1345,6 @@ def _gen_chunk_slice_dim(chunk_dim, chunk_idx_name, shape):
...
@@ -1347,15 +1345,6 @@ def _gen_chunk_slice_dim(chunk_dim, chunk_idx_name, shape):
return
new_shape
return
new_shape
def
_get_first_non_single_dim
(
shape
):
for
idx
,
i
in
enumerate
(
shape
):
if
i
==
1
:
continue
else
:
return
idx
raise
RuntimeError
(
"can not get first non single dim for shape"
,
shape
)
def
_gen_loop_start
(
chunk_input
,
chunk_output
,
chunk_ouput_dim
,
chunk_size
=
2
):
def
_gen_loop_start
(
chunk_input
,
chunk_output
,
chunk_ouput_dim
,
chunk_size
=
2
):
input_node
=
chunk_input
[
0
]
input_node
=
chunk_input
[
0
]
out_shape
=
_get_node_shape
(
chunk_output
)
out_shape
=
_get_node_shape
(
chunk_output
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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