TensorSelect.select: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/tensor_select.bend as TensorSelect Lines 102-106 of stelliferous@0.0.2.0/tensor_select.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/tensor_select.bend&start_line=102&end_line=106 import Base import stelliferous@0.0.2.0/tensor.bend as Tensors def select(mask: Tensors.Tensor,yes: Tensors.Tensor,no: Tensors.Tensor) -> Tensors.Tensor: Tensors.with_metadata(~F32,~Tensors.Tensor,mask,mask => mask_shape => mf => mt => mw => Tensors.with_metadata(~F32,~Tensors.Tensor,yes,yes => yes_shape => fill => yt => yw => Tensors.with_metadata(~F32,~Tensors.Tensor,no,no => no_shape => nf => nt => nw => status(Tensors.first_failure(mt,Tensors.first_failure(yt,nt)),mask_shape,yes_shape,no_shape,fill,U32.max(mw,U32.max(yw,nw)),mask,yes,no)))) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.max https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor.bend&name=Tensor https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor.bend&name=first_failure https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor.bend&name=with_metadata https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_select.bend&name=status