Suppress warning in CSRC in source code

Is there a way to suppress a warning generated by a particular TORCH_WARN_ONCE and remove that suppression after a function is called?


You could try to use something similar to the utility class here that we use to detect warnings during our c++ tests. Would that work for you?