Skip to main content

Python class

PixelGenerationContextType

PixelGenerationContextType

class max.pipelines.modeling.types.pipeline_variants.PixelGenerationContextType

source

Type variable for pixel generation context types, constrained to PixelGenerationContext.

This allows generic typing of pixel generation pipeline components to accept any context type that implements the PixelGenerationContext protocol.

alias of TypeVar(‘PixelGenerationContextType’, bound=PixelGenerationContext)