Using torchvision roi_align in libtorch c++ jit modules

natan: <p>Hi, I’m trying to use libtorch 1.7.1 to load a jit model that is created with pytorch 1.7.0 and torchvision 0.8.0.<br>
This model is using torchvision::roi_align operator.<br>
When running the model I get this error:</p>
<p><strong>Could not find any similar ops to torchvision::roi_align. This op may not exist or may not be currently supported in TorchScript.</strong></p>
<p>loading the model in pytorch is working fine.<br>
Any idea why its not loading?<br>
I need to install another package to my c++ env to be able to load this model?</p>
<p>Thanks</p>

natan: <p>wanted to update that the problem was solved in the attached link, incase someone will encounter the same issue.</p><aside class="onebox githubissue">
  <header class="source">
      <a href="https://github.com/pytorch/vision/issues/3294" target="_blank" rel="noopener nofollow ugc">github.com/pytorch/vision</a>
  </header>
  <article class="onebox-body">
    <div class="github-row">
  <div class="github-icon-container" title="Issue">
	  <svg width="60" height="60" class="github-icon" viewBox="0 0 14 16" aria-hidden="true"><path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg>
  </div>

  <div class="github-info-container">
    <h4>
      <a href="https://github.com/pytorch/vision/issues/3294" target="_blank" rel="noopener nofollow ugc">Using torchvision roi_align in libtorch c++ jit modules</a>
    </h4>

    <div class="github-info">
      <div class="date">
        opened <span class="discourse-local-date" data-format="ll" data-date="2021-01-26" data-time="07:23:02" data-timezone="UTC">07:23AM - 26 Jan 21 UTC</span>
      </div>

        <div class="date">
          closed <span class="discourse-local-date" data-format="ll" data-date="2021-02-07" data-time="11:25:24" data-timezone="UTC">11:25AM - 07 Feb 21 UTC</span>
        </div>

      <div class="user">
        <a href="https://github.com/natangold85" target="_blank" rel="noopener nofollow ugc">
          <img alt="natangold85" src="https://avatars.githubusercontent.com/u/24711661?v=4" class="onebox-avatar-inline" width="20" height="20">
          natangold85
        </a>
      </div>
    </div>
  </div>
</div>

<div class="github-row">
  <p class="github-content">🐛 Bug
Hi, I’m trying to use libtorch 1.7.1 to load a jit model that is created with pytorch 1.5.1 and torchvision...</p>
</div>

<div class="labels">
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">module: c++ frontend</span>
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">module: ops</span>
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">question</span>
    <span style="display:inline-block;margin-top:2px;background-color: #B8B8B8;padding: 2px;border-radius: 4px;color: #fff;margin-left: 3px;">topic: object detection</span>
</div>

  </article>
  <div class="onebox-metadata">
    
    
  </div>
  <div style="clear: both"></div>
</aside>