From d8d5052753aba9db43afc103cc2c4a2acf9d172c Mon Sep 17 00:00:00 2001 From: Krzysztof Lecki Date: Wed, 9 Mar 2022 18:48:25 +0100 Subject: [PATCH] no order Signed-off-by: Krzysztof Lecki --- dali/pipeline/data/tensor_vector.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dali/pipeline/data/tensor_vector.cc b/dali/pipeline/data/tensor_vector.cc index 546cc05a5fe..fa5b1524727 100644 --- a/dali/pipeline/data/tensor_vector.cc +++ b/dali/pipeline/data/tensor_vector.cc @@ -97,7 +97,7 @@ void TensorVector::UnsafeSetSample(int dst, const TensorVector DALI_ENFORCE(type() == owner.type(), "Sample must have the same type as a target batch"); DALI_ENFORCE(sample_dim() == owner.sample_dim(), "Sample must have the same dimensionality as a target batch"); - DALI_ENFORCE(order() == owner.order(), "Sample must have the same order as a target batch"); + // DALI_ENFORCE(order() == owner.order(), "Sample must have the same order as a target batch"); DALI_ENFORCE(GetLayout() == owner.GetLayout(), "Sample must have the same layout as a target batch"); @@ -131,7 +131,8 @@ void TensorVector::UnsafeSetSample(int dst, const Tensor &owne DALI_ENFORCE(type() == owner.type(), "Sample must have the same type as a target batch"); DALI_ENFORCE(sample_dim() == owner.shape().sample_dim(), "Sample must have the same dimensionality as a target batch"); - DALI_ENFORCE(order() == owner.order(), "Sample must have the same order as a target batch"); + // TODO(klecki): what do we do with order??? + // DALI_ENFORCE(order() == owner.order(), "Sample must have the same order as a target batch"); DALI_ENFORCE(GetLayout() == owner.GetLayout(), "Sample must have the same layout as a target batch"); // // kind (pinned?), order, layout, etc... @@ -153,7 +154,8 @@ void TensorVector::UnsafeCopySample(int dst, const TensorVectororder() == data.order(), "Sample must have the same order as a target batch"); + // DALI_ENFORCE(this->order() == data.order(), "Sample must have the same order as a target + // batch"); DALI_ENFORCE(GetLayout() == data.GetLayout(), "Sample must have the same layout as a target batch");