TensorSelect.dense: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/tensor_select.bend as TensorSelect Lines 12-16 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=12&end_line=16 import Base import stelliferous@0.0.2.0/tensor.bend as Tensors import stelliferous@0.0.2.0/tensor_lanes.bend as Lanes def dense(+shape: List<&2,U32>,+count: U32,+workers: U32,mask: Tensors.Tensor,yes: Tensors.Tensor,no: Tensors.Tensor) -> Tensors.Tensor: Tensors.with_dense(~F32,~Tensors.Tensor,mask,mask => ms => mf => mt => mw => Tensors.with_dense(~F32,~Tensors.Tensor,yes,yes => ys => fill => yt => yw => Tensors.with_dense(~F32,~Tensors.Tensor,no,no => ns => nf => nt => nw => Tensors.Tensor{Lanes.select(U32.to_nat(count),mask,yes,no),shape,fill,Tensors.first_failure(mt,Tensors.first_failure(yt,nt)),workers}))) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat 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_dense https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_lanes.bend&name=select