OpaqueGraphModule

class OpaqueGraphModule

OpaqueGraphModule is a subclass of GraphModule constructed from a Module without using torch.compile(). This results in a graph that can only be patched at submodule inputs, outputs, buffers, parameters, and attributes. An OpaqueGraphModule may have instances of CompiledGraphModule as submodules, which can be patched normally.