Skip to content

Commit

Permalink
Merge pull request #75 from deephealthproject/update_to_ecvl_1.0.3
Browse files Browse the repository at this point in the history
Update to ECVL 1.0.3
  • Loading branch information
simleo authored May 4, 2022
2 parents 0f56053 + fd64d7b commit 51978d2
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pipeline {
agent {
docker {
label 'docker'
image 'dhealth/dev-pyecvl-base-cpu:5aa2785-ae5a59b'
image 'dhealth/dev-pyecvl-base-cpu:f15a911-ae5a59b'
}
}
stages {
Expand Down
2 changes: 2 additions & 0 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ EDDL version corresponding to each PyEDDL version):
+----------------+--------------+----------------+--------------+
| | | 1.3.0 | 1.1b |
+----------------+--------------+----------------+--------------+
| 1.3.0 | 1.0.3 | 1.3.0 | 1.1b |
+----------------+--------------+----------------+--------------+

Thus, for instance, to install PyECVL 0.6.0::

Expand Down
10 changes: 10 additions & 0 deletions pyecvl/support_eddl.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,16 @@ def Push(self, sample, image, label):
"""
return _ecvl.ProducersConsumerQueue.Push(self, sample, image, label)

def FreeLockedOnPush(self):
"""\
Free threads locked on a push operation.
To be used in ``Stop`` when the data loading process needs to be
stopped before all the elements (batches) of the queue have been
consumed.
"""
return _ecvl.ProducersConsumerQueue.FreeLockedOnPush(self)

def Pop(self):
"""\
Pop a sample.
Expand Down
2 changes: 1 addition & 1 deletion pyecvl/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

VERSION = "1.2.0"
VERSION = "1.3.0"
1 change: 1 addition & 0 deletions src/func_binder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ using timedelta = std::chrono::duration<int64_t, std::nano>;
// Cast to ecvl::Image crashes with a segfault for empty images
q.Push(sample, image, label);
});
cl.def("FreeLockedOnPush", &ecvl::ProducersConsumerQueue::FreeLockedOnPush);
cl.def("Pop", [](ecvl::ProducersConsumerQueue& q) -> pybind11::tuple {
ecvl::Sample sample;
Tensor* image;
Expand Down
1 change: 1 addition & 0 deletions tests/test_eddl.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def test_ProducersConsumerQueue(ecvl):
assert q.IsFull()
q.SetSize(8)
assert not q.IsFull()
q.FreeLockedOnPush()
q.Clear()
assert q.IsEmpty()

Expand Down
2 changes: 1 addition & 1 deletion third_party/ecvl
Submodule ecvl updated 101 files

0 comments on commit 51978d2

Please sign in to comment.