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");