jina.executors.encoders.helper

jina.executors.encoders.helper.reduce_mean(data, mask_2d)[source]
Return type

ndarray

jina.executors.encoders.helper.reduce_max(data, mask_2d)[source]
Return type

ndarray

jina.executors.encoders.helper.reduce_min(data, mask_2d)[source]
Return type

ndarray

jina.executors.encoders.helper.reduce_cls(data, mask_2d, cls_pos='head')[source]
Return type

ndarray

jina.executors.encoders.helper.prune_mask(mask, cls_pos='head')[source]
Return type

ndarray