Check if values are contained within a Tensor
<p>Unfortunately I was unable to find a function that achieved the following:</p>

<p>Inputs:</p>

<ul>
<li>test: Tensor of values that may exist within target</li>
<li>target: Tensor of values</li>
</ul>

<p>Outputs:</p>

<ul>
<li>output: Tensor of boolean, same shape as test. <code>output[i] = targets.contains(test[i])</code></li>
</ul>

<hr>

<p>Put plainly: I need to test whether the elements of a Tensor are contained within another Tensor.</p>