Explictly raise an exception if sharding fails because the batch size is unknown.
Right now, TPUEstimator will raise an error message complaining that sharding failed because (None % integer value) is not a well-defined operation. I hope the new error message will make it easier for people to figure out what's going on. PiperOrigin-RevId: 172013663
Loading
Please sign in to comment