[PATCH] D131462: fix mlgo regalloc test model generation for tflite
Mircea Trofin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 9 12:37:12 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3edd8978c312: fix mlgo regalloc test model generation for tflite (authored by yundiqian, committed by mtrofin).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131462/new/
https://reviews.llvm.org/D131462
Files:
llvm/lib/Analysis/models/gen-regalloc-eviction-test-model.py
Index: llvm/lib/Analysis/models/gen-regalloc-eviction-test-model.py
===================================================================
--- llvm/lib/Analysis/models/gen-regalloc-eviction-test-model.py
+++ llvm/lib/Analysis/models/gen-regalloc-eviction-test-model.py
@@ -46,7 +46,7 @@
module.var = tf.Variable(0, dtype=tf.int64)
def action(*inputs):
- result = tf.math.argmax(inputs[0]['mask'], axis=-1) + module.var
+ result = tf.math.argmax(tf.cast(inputs[0]['mask'], tf.int32), axis=-1) + module.var
return {POLICY_DECISION_LABEL: result}
module.action = tf.function()(action)
action = {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131462.451241.patch
Type: text/x-patch
Size: 615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220809/7e7c1be3/attachment.bin>
More information about the llvm-commits
mailing list