src/tensor/clone_metadata_records.bend checks
raw source on the hub · import bendtorch-core@0.1.0.0/src/tensor/clone_metadata_records.bend as Clone_metadata_records
4 imports
import Base import ../shape/core.bend as Shape import ./core.bend as Core import ./observation.bend as Observation
Types
type CloneContract source · line 6 · raw
@-shape:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> @-fill:F32 -> Type
CloneContract@-shape:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> @-fill:F32 -> @first_dimensions:{0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.clone_first_dimensions(shape, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape)} : Maybe<&2, List<&2, U32>>} -> @second_dimensions:{0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.clone_second_dimensions(shape, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape)} : Maybe<&2, List<&2, U32>>} -> @first_count:{0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.clone_first_length(shape, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.logical_numel(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape))} : Maybe<&2, Nat>} -> @second_count:{0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.clone_second_length(shape, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.logical_numel(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape))} : Maybe<&2, Nat>} -> @first_word_count:{0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.clone_first_count(shape, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.count(shape)} : Maybe<&2, U32>} -> @second_word_count:{0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.clone_second_count(shape, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.count(shape)} : Maybe<&2, U32>} -> @first_value:(@+other:U32 -> @inside:{Nat.is_lt(U32.to_nat(other), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.logical_numel(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape))) == True{} : Bool} -> {0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.clone_first_value(shape, other, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{fill} : Maybe<&2, F32>}) -> @second_value:(@+other:U32 -> @inside:{Nat.is_lt(U32.to_nat(other), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.logical_numel(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape))) == True{} : Bool} -> {0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.clone_second_value(shape, other, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{fill} : Maybe<&2, F32>}) -> CloneContract<shape, fill>
type CloneWrite source · line 19 · raw
@-shape:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> @-fill:F32 -> @-index:U32 -> @-value:F32 -> Type
CloneWrite@-shape:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> @-fill:F32 -> @-index:U32 -> @-value:F32 -> @written:{0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.clone_written_first(shape, index, value, index, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{value} : Maybe<&2, F32>} -> @frame:(@+other:U32 -> @inside:{Nat.is_lt(U32.to_nat(other), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.logical_numel(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape))) == True{} : Bool} -> @different:{Nat.is_eq(U32.to_nat(index), U32.to_nat(other)) == False{} : Bool} -> {0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.clone_written_first(shape, index, value, other, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{fill} : Maybe<&2, F32>}) -> @second:(@+other:U32 -> @inside:{Nat.is_lt(U32.to_nat(other), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.logical_numel(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape))) == True{} : Bool} -> {0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.clone_written_second(shape, index, value, other, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{fill} : Maybe<&2, F32>}) -> CloneWrite<shape, fill, index, value>
type MetadataContract source · line 28 · raw
@-shape:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> @-fill:F32 -> Type
MetadataContract@-shape:0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.Shape -> @-fill:F32 -> @length:{0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.length_value(shape, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.logical_numel(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape))} : Maybe<&2, Nat>} -> @retained_dimensions:{0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.length_owner_dimensions(shape, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape)} : Maybe<&2, List<&2, U32>>} -> @retained_count:{0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.length_owner_length(shape, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.logical_numel(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape))} : Maybe<&2, Nat>} -> @retained_word_count:{0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.length_owner_count(shape, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.count(shape)} : Maybe<&2, U32>} -> @shape_dimensions:{0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.dimensions(shape, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape)} : Maybe<&2, List<&2, U32>>} -> @word_count:{0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.count(shape, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.count(shape)} : Maybe<&2, U32>} -> @retained_value:(@+other:U32 -> @inside:{Nat.is_lt(U32.to_nat(other), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.logical_numel(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape))) == True{} : Bool} -> {0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.length_owner_value(shape, other, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{fill} : Maybe<&2, F32>}) -> @shape_retained_value:(@+other:U32 -> @inside:{Nat.is_lt(U32.to_nat(other), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.logical_numel(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape))) == True{} : Bool} -> {0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.shape_owner_value(shape, other, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{fill} : Maybe<&2, F32>}) -> @count_retained_value:(@+other:U32 -> @inside:{Nat.is_lt(U32.to_nat(other), 0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.logical_numel(0x1689e5deb278c16abd3bd45eac101ef3/src/shape/core.dimensions(shape))) == True{} : Bool} -> {0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/observation.count_owner_value(shape, other, 0x1689e5deb278c16abd3bd45eac101ef3/src/tensor/core.new(shape, fill)) == Some{fill} : Maybe<&2, F32>}) -> MetadataContract<shape, fill>