Skip to content

Commit

Permalink
no order
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Lecki <[email protected]>
  • Loading branch information
klecki committed Mar 9, 2022
1 parent 6cfdc88 commit d8d5052
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dali/pipeline/data/tensor_vector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void TensorVector<Backend>::UnsafeSetSample(int dst, const TensorVector<Backend>
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");

Expand Down Expand Up @@ -131,7 +131,8 @@ void TensorVector<Backend>::UnsafeSetSample(int dst, const Tensor<Backend> &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...
Expand All @@ -153,7 +154,8 @@ void TensorVector<Backend>::UnsafeCopySample(int dst, const TensorVector<Backend
DALI_ENFORCE(type() == data.type(), "Sample must have the same type as a target batch");
DALI_ENFORCE(sample_dim() == data.sample_dim(),
"Sample must have the same dimensionality as a target batch");
DALI_ENFORCE(this->order() == 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");

Expand Down

0 comments on commit d8d5052

Please sign in to comment.