Configure a native-Torch dense evidence-volume encoder.
1.1.1 VolumeEncoder
vin.modules.volume_encoder.VolumeEncoder(config)
Encode fixed evidence and support without changing the grid geometry.
The input projection receives the deterministic evidence channels together with a separate binary support channel. The full encoder refines the fine grid, constructs a 2C half-resolution carrier, and fuses its upsampled context back into the original grid. Learned features never redefine support: callers retain and sample the supplied mask independently.
# vin.modules.volume_encoder { #aria_nbv.vin.modules.volume_encoder }`vin.modules.volume_encoder`Multiscale 3D encoding for deterministic volumetric evidence.## Classes| Name | Description || ---| ---||[VolumeEncoder](#aria_nbv.vin.modules.volume_encoder.VolumeEncoder)| Encode fixed evidence and support without changing the grid geometry. ||[VolumeEncoderConfig](#aria_nbv.vin.modules.volume_encoder.VolumeEncoderConfig)| Configure a native-Torch dense evidence-volume encoder. |### VolumeEncoder { #aria_nbv.vin.modules.volume_encoder.VolumeEncoder }```pythonvin.modules.volume_encoder.VolumeEncoder(config)```Encode fixed evidence and support without changing the grid geometry.The input projection receives the deterministic evidence channels togetherwith a separate binary support channel. The full encoder refines the finegrid, constructs a ``2C`` half-resolution carrier, and fuses its upsampledcontext back into the original grid. Learned features never redefinesupport: callers retain and sample the supplied mask independently.#### Attributes| Name | Description || ---| ---||[output_channels](#aria_nbv.vin.modules.volume_encoder.VolumeEncoder.output_channels)| Return the encoded feature width. |#### Methods| Name | Description || ---| ---||[forward](#aria_nbv.vin.modules.volume_encoder.VolumeEncoder.forward)| Encode one or more evidence grids while preserving their resolution. |##### forward { #aria_nbv.vin.modules.volume_encoder.VolumeEncoder.forward }```pythonvin.modules.volume_encoder.VolumeEncoder.forward(evidence, availability)```Encode one or more evidence grids while preserving their resolution.###### Parameters {.doc-section .doc-section-parameters}| Name | Type | Description | Default ||--------------------------------------------|--------|---------------------------------------------------------------------------------------------|------------|| evidence ``Tensor["B C D H W", float32]`` || Deterministic volume channels. ``C`` must equal :attr:`VolumeEncoderConfig.input_channels`. | _required_ || availability ``Tensor["B 1 D H W", bool]`` || Explicit measured support. It is an input feature and remains owned by the caller. | _required_ |###### Returns {.doc-section .doc-section-returns}| Name | Type | Description ||--------|--------------------------|-----------------------------------------------------------------------|||[Tensor](`torch.Tensor`)| ``Tensor["B C_e D H W", float]`` learned features on the input |||[Tensor](`torch.Tensor`)| device. Gradients propagate to floating evidence and encoder weights. |###### Raises {.doc-section .doc-section-raises}| Name | Type | Description ||--------|----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|||[ValueError](`ValueError`)| If ranks, shapes, dtype, device, or finite-value contracts are violated, or a full encoder receives a grid too small for its coarse scale. |### VolumeEncoderConfig { #aria_nbv.vin.modules.volume_encoder.VolumeEncoderConfig }```pythonvin.modules.volume_encoder.VolumeEncoderConfig()```Configure a native-Torch dense evidence-volume encoder.#### Attributes| Name | Description || ---| ---||[kind](#aria_nbv.vin.modules.volume_encoder.VolumeEncoderConfig.kind)| Closed serialization identity for the multiscale encoder. ||[input_channels](#aria_nbv.vin.modules.volume_encoder.VolumeEncoderConfig.input_channels)| Deterministic evidence channels, excluding the explicit support mask. ||[width](#aria_nbv.vin.modules.volume_encoder.VolumeEncoderConfig.width)| Fine-scale learned feature width; the coarse scale uses twice this width. ||[max_group_norm_groups](#aria_nbv.vin.modules.volume_encoder.VolumeEncoderConfig.max_group_norm_groups)| Largest permitted GroupNorm group count, reduced to a channel divisor. ||[projection_only](#aria_nbv.vin.modules.volume_encoder.VolumeEncoderConfig.projection_only)| Use only the input projection for the matched spatial-capacity ablation. ||[target_type](#aria_nbv.vin.modules.volume_encoder.VolumeEncoderConfig.target_type)| Return the configured dense encoder type. |