# Tensorflow\_hub: Multiple OpKernel registrations match NodeDef at the same priority

**URL:** <https://discuss.ai.google.dev/t/tensorflow-hub-multiple-opkernel-registrations-match-nodedef-at-the-same-priority/32220>\
**Category:** General Discussion\
**Tags:** tfhub\
**Created:** [August 18, 2023, 3:42am UTC](https://discuss.ai.google.dev/t/tensorflow-hub-multiple-opkernel-registrations-match-nodedef-at-the-same-priority/32220 "2023-08-18T03:42:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdul\_Rahmaan](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/abdul_rahmaan/32/14408_2.png) [@Abdul\_Rahmaan](https://discuss.ai.google.dev/u/Abdul_Rahmaan)\
**Post date:** [August 18, 2023, 3:42am UTC](https://discuss.ai.google.dev/t/tensorflow-hub-multiple-opkernel-registrations-match-nodedef-at-the-same-priority/32220/1 "2023-08-18T03:42:38Z")

</div>

I am trying to run these lines but getting the following error.:

InvalidArgumentError: Multiple OpKernel registrations match NodeDef at the same priority ‘{{node AssignVariableOp}}’: ‘op: “AssignVariableOp” device\_type: “GPU” constraint { name: “dtype” allowed\_values { list { type: DT\_INT64 } } } host\_memory\_arg: “resource”’ and ‘op: “AssignVariableOp” device\_type: “GPU” constraint { name: “dtype” allowed\_values { list { type: DT\_INT64 } } } host\_memory\_arg: “resource”’  
[[AssignVariableOp]] [Op:AssignVariableOp]

---

<div class="post-metadata">

**Author:** ![lgusm](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/lgusm/32/6230_2.png) [@lgusm](https://discuss.ai.google.dev/u/lgusm)\
**Post date:** [August 18, 2023, 8:18am UTC](https://discuss.ai.google.dev/t/tensorflow-hub-multiple-opkernel-registrations-match-nodedef-at-the-same-priority/32220/3 "2023-08-18T08:18:35Z")

</div>

Hi Abdul, welcome to the TF Forum!

I think you forgot to paste the lines you are trying to run

[UPDATE]: this was [posted again](http://discuss.ai.google.dev/t/unable-to-load-model-using-tensorflow-hub-keraslayer/18959) with more information. I’ll close this to avoid noise

---

<div class="post-metadata">

**Author:** ![lgusm](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/lgusm/32/6230_2.png) [@lgusm](https://discuss.ai.google.dev/u/lgusm)\
**Post date:** [August 18, 2023, 8:20am UTC](https://discuss.ai.google.dev/t/tensorflow-hub-multiple-opkernel-registrations-match-nodedef-at-the-same-priority/32220/4 "2023-08-18T08:20:10Z")

</div>

Closed on August 18, 2023, 8:20am UTC


