Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loom
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
Tom Vander Aa
loom
Commits
f2ae960f
There was a problem fetching the pipeline summary.
Commit
f2ae960f
authored
7 years ago
by
Tom Vander Aa
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of code.it4i.cz:ADAS/loom
parents
b0eaf333
dd84c7d3
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/libloomw/data/pyobj.cpp
+0
-3
0 additions, 3 deletions
src/libloomw/data/pyobj.cpp
tests/client/test_py.py
+27
-0
27 additions, 0 deletions
tests/client/test_py.py
with
27 additions
and
3 deletions
src/libloomw/data/pyobj.cpp
+
0
−
3
View file @
f2ae960f
...
...
@@ -14,10 +14,7 @@ loom::PyObj::~PyObj()
{
PyGILState_STATE
gstate
;
gstate
=
PyGILState_Ensure
();
assert
(
obj
->
ob_refcnt
>
0
);
Py_DecRef
(
obj
);
PyGILState_Release
(
gstate
);
}
...
...
This diff is collapsed.
Click to expand it.
tests/client/test_py.py
+
27
−
0
View file @
f2ae960f
...
...
@@ -287,3 +287,30 @@ def test_py_task_deserialization3(loom_env):
objs
=
tuple
(
tasks
.
py_value
(
str
(
i
+
1000
))
for
i
in
range
(
100
))
x
=
tasks
.
array_make
(
objs
)
loom_env
.
submit_and_gather
(
x
)
def
test_rewrap_test
(
loom_env
):
@tasks.py_task
(
context
=
True
,
n_direct_args
=
4
)
def
init
(
ctx
):
content
=
[
1
,
2
,
3
]
return
ctx
.
wrap
(
content
)
@tasks.py_task
(
context
=
True
)
def
center
(
ctx
,
train_test
):
train
,
test
=
[
t
.
unwrap
()
for
t
in
train_test
]
return
[
ctx
.
wrap
(
t
)
for
t
in
(
train
,
test
)]
@tasks.py_task
(
context
=
True
)
def
remove_empty_rows
(
ctx
,
train
,
test
):
train
=
list
(
train
.
unwrap
())
test
=
list
(
test
.
unwrap
())
return
[
ctx
.
wrap
(
t
)
for
t
in
(
train
,
test
)]
train
=
init
()
test
=
init
()
mean_task
=
center
(
remove_empty_rows
(
train
,
test
))
smurff_tasks
=
[
mean_task
]
loom_env
.
start
(
1
)
futures
=
loom_env
.
client
.
submit
(
smurff_tasks
)
results
=
loom_env
.
client
.
gather
(
futures
)
\ No newline at end of file
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