def existing_layout
stelliferous@0.0.2.0 · tensor_convolution.bend:254
import stelliferous@0.0.2.0/tensor_convolution.bend as TensorConvolution
import Base
import stelliferous@0.0.2.0/tensor.bend as Tensors
import stelliferous@0.0.2.0/storage_buffer.bend as Storage
import stelliferous@0.0.2.0/kernel_tile.bend as Tile
import stelliferous@0.0.2.0/default_kernel_cost.bend as DefaultCost
import stelliferous@0.0.2.0/proofs/storage_certificate.bend as Certificate
import stelliferous@0.0.2.0/tensor_band.bend as Bands
import stelliferous@0.0.2.0/kernel_band_planning.bend as BandPlanning
import stelliferous@0.0.2.0/math_activation.bend as Activations
254def existing_layout(~custom: F32 -> F32,+activation: Activations.Activation,+geometry: Geometry,weights: Storage.Buffer<Tile.Tile8>,bias: Storage.Buffer<F32>,+workers: U32,
255 owners: Bands.Bands(~F32) & Bands.Plan) -> Tensors.Tensor<F32>:
256 Storage.Buffer{bias,length,Certificate.Certificate{+depth,equation}} = bias
257 (input,plan) = owners
258 +context = band_context(geometry,True{},activation)
259 replanned(~custom,activation,geometry,BandPlanning.replan(plan,band_work(context,U32.shln(1,depth)),context_window(context),workers,DefaultCost.configuration()),
260 input,weights,Storage.Buffer{bias,length,Certificate.Certificate{depth,equation}},workers)