Skip to content

Commit

Permalink
Remove artifical limitation on 5D tensors (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Lai authored Jul 13, 2020
1 parent 929dac9 commit 283c622
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Tools/WinMLRunner/src/Run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,6 @@ HRESULT CheckIfModelAndConfigurationsAreSupported(LearningModel& model, const st
else if (inputFeature.Kind() == LearningModelFeatureKind::Tensor)
{
auto tensorFeatureDescriptor = inputFeature.try_as<TensorFeatureDescriptor>();
if (tensorFeatureDescriptor.Shape().Size() > 4 && deviceType != DeviceType::CPU)
{
std::cout << "Input feature " << to_string(inputFeature.Name())
<< " shape is too large. GPU path only accepts tensor dimensions <= 4 : "
<< tensorFeatureDescriptor.Shape().Size() << std::endl;
return E_INVALIDARG;
}

// If image as input binding, then the model's tensor inputs should have channel 3 or 1
if (hasInputBindingImage &&
Expand Down

0 comments on commit 283c622

Please sign in to comment.