It's a bit unfortunate that we have to leave this decision to the user, but I don't see a better way of handling variables that are never assigned to. XLA will just prune away the output for them so we have to account for them early. The API follows the in-place API, but we make the setter const and don't generate getters. PiperOrigin-RevId: 240107733
816 B
816 B