Repository navigation
Mantpy 1.1.1
Shape options for the built-in patch encoder.
PatchEncoderandencode_patchesacceptconv_blocks,conv_width,pool_size,pool_typeandconv_activation, so the number of convolution blocks, their width, average or max pooling before the readout, and ReLU or GELU can be set without writing a custom model. The defaults keep the previous architecture, so existing results are unchanged.- With
pool_sizeset,PatchEncoder.fitusesdeterministic="warn"by default, because adaptive pooling has no deterministic CUDA backward pass. - Encoders saved with non-default shape options need Mantpy 1.1.1 or newer to load.
Validated on Python 3.11 and 3.14, with a successful package build.
Install:
pip install mantpy==1.1.1