<p dir="auto"><code class="notranslate">unique()</code> and <code class="notranslate">type()</code> functions are not available in the nodes from <code class="notranslate">graph.nodes()</code> of <code class="notranslate">jit.trace</code>. I used to fetch those before some upgrade I made recently. As <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/apaszke/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/apaszke">@apaszke</a> suggested, It should be present in the internal data structure but the new upgrade just removed it from python scope</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for val in trace.graph().nodes():
    print(val.unique())  # doesn't have unique
    for input_node in val.inputs():
        print(input_node.unique())  # has unique"><pre class="notranslate"><code class="notranslate">for val in trace.graph().nodes():
    print(val.unique())  # doesn't have unique
    for input_node in val.inputs():
        print(input_node.unique())  # has unique
</code></pre></div>
<p dir="auto">It seems PyTorch loads the .so using RTLD_GLOBAL which exports many symbols into shared namespace. This can causes crashes when another library is using different version of the symbol with the same name.</p>
<p dir="auto">In particular, doing <code class="notranslate">import torch; import tensorflow</code> will crash because pytorch .so is exposing <code class="notranslate">pthread</code> symbols<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="264379088" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/13615" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/13615/hovercard?comment_id=335641777&amp;comment_type=issue_comment" href="https://github.com/tensorflow/tensorflow/issues/13615#issuecomment-335641777">tensorflow/tensorflow#13615 (comment)</a></p>
<p dir="auto">TensorFlow recently switched away from RTLD_GLOBAL in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/5c7f9e31/hovercard" href="https://github.com/tensorflow/tensorflow/commit/5c7f9e31">tensorflow/tensorflow@<tt>5c7f9e31</tt></a></p>