law reshape_write

bendtorch-core@0.1.0.0 · src/tensor/transform_contract_LAWS.bend:16

import bendtorch-core@0.1.0.0/src/tensor/transform_contract_LAWS.bend as TransformContractLAWS
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/transform_records.bend as Records

16law reshape_write:
17  for +input: Shape.Shape
18  for +fill: F32
19  for +target: Shape.Shape
20  for +index: U32
21  for +value: F32
22  for inside: {Nat.is_lt(U32.to_nat(index), Shape.logical_numel(Shape.dimensions(input))) == True{} : Bool}
23  for same: {Shape.logical_numel(Shape.dimensions(input)) == Shape.logical_numel(Shape.dimensions(target)) : Nat}
24  Records.ReshapeWrite<input, fill, target, index, value>

Uses (11)

Used by (0)

No other definition uses this definition.