pytorch / 1.8.0 / generated / torch._assert.html /

torch._assert

torch._assert(condition, message) [source]

A wrapper around Python’s assert which is symbolically traceable.

© 2019 Torch Contributors
Licensed under the 3-clause BSD License.
https://pytorch.org/docs/1.8.0/generated/torch._assert.html