"""Generate a mock model for LLVM tests for Register Allocation.
The generated model is not a neural net - it is just a tf.function with the
correct input and output parameters. By construction, the mock model will always
output the first liverange that can be evicted.
"""
=
=
=
= 33
"""Returns (time_step_spec, action_spec) for LLVM register allocation."""
=
return
return
"""Build and save the mock model with the given signature."""
=
# We have to set this useless variable in order for the TF C API to correctly
# intake it
=
= +
return
=
=
=
assert == 2
=