2 import interactive_host
7 # this advisor just picks the first legal register to evict, which is
8 # identifiable by the "mask" feature
12 def advice(self
, tensor_values
: list[log_reader
.TensorValue
]):
13 for tv
in tensor_values
:
14 if tv
.spec().name
!= "mask":
16 for i
, v
in enumerate(tv
):
23 interactive_host
.run_interactive(args
[0], a
.advice
, args
[1:])
26 if __name__
== "__main__":