Skip to content

Commit 3486b1b

Browse files
committed
[mlgo][nfc] regalloc test model generator: prep for TFLite
Casting operator to make TFLite happy. Reviewed By: yundiqian Differential Revision: https://reviews.llvm.org/D131584
1 parent 7ff0ca1 commit 3486b1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Analysis/models/gen-regalloc-eviction-test-model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def build_mock_model(path):
4646
module.var = tf.Variable(0, dtype=tf.int64)
4747

4848
def action(*inputs):
49-
result = tf.math.argmax(tf.cast(inputs[0]['mask'], tf.int32), axis=-1) + module.var
49+
result = tf.math.argmax(
50+
tf.cast(inputs[0]['mask'], tf.int32), axis=-1) + module.var
5051
return {POLICY_DECISION_LABEL: result}
5152
module.action = tf.function()(action)
5253
action = {

0 commit comments

Comments
 (0)