[PATCH] D131584: [mlgo][nfc] regalloc test model generator: prep for TFLite
Mircea Trofin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 10 08:49:35 PDT 2022
mtrofin created this revision.
mtrofin added a reviewer: yundiqian.
Herald added subscribers: hiraditya, qcolombet, MatzeB.
Herald added a project: All.
mtrofin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Casting operator to make TFLite happy.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131584
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,8 @@
module.var = tf.Variable(0, dtype=tf.int64)
def action(*inputs):
- result = tf.math.argmax(tf.cast(inputs[0]['mask'], tf.int32), 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: D131584.451505.patch
Type: text/x-patch
Size: 644 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220810/91b8ba64/attachment.bin>
More information about the llvm-commits
mailing list