The cause has finally been identified. Due to implementation convenience, I created a wrapper class for inference and separated the initialization function and the inference function. The issue was that I called network_group.activate()
during each inference.
By calling activate()
during initialization only once, this error no longer occurred.