My point is more that you cannot do such an API. By the time to have the Tensor so that you could register a hook on it, it’s content is available. So there is no need to hook anymore.
And if you want to place a hook beforehand, you have no Tensor to place it onto because the Tensor does not exist yet.