@@ -45,7 +45,7 @@ function _ctranspose(x::AbstractArray)
4545end
4646
4747function stage (ctx:: Context , node:: Transpose )
48- inp = cached_stage (ctx, node. input)
48+ inp = stage (ctx, node. input)
4949 thunks = _ctranspose (chunks (inp))
5050 return DArray (eltype (inp), domain (inp)' , domainchunks (inp)' , thunks, inp. partitioning' , inp. concat)
5151end
@@ -143,7 +143,7 @@ function promote_distribution(ctx::Context, m::MatMul, a,b)
143143 pb = domainchunks (b)
144144
145145 d = DomainBlocks ((1 ,1 ), (pa. cumlength[2 ], pb. cumlength[2 ])) # FIXME : this is not generic
146- a, cached_stage (ctx, Distribute (d, b))
146+ a, stage (ctx, Distribute (d, b))
147147end
148148
149149function stage_operands (ctx:: Context , m:: MatMul , a, b)
@@ -152,14 +152,14 @@ function stage_operands(ctx::Context, m::MatMul, a, b)
152152 end
153153 # take the row distribution of a and get b onto that.
154154
155- stg_a = cached_stage (ctx, a)
156- stg_b = cached_stage (ctx, b)
155+ stg_a = stage (ctx, a)
156+ stg_b = stage (ctx, b)
157157 promote_distribution (ctx, m, stg_a, stg_b)
158158end
159159
160160" An operand which should be distributed as per convenience"
161161function stage_operands (ctx:: Context , :: MatMul , a:: ArrayOp , b:: PromotePartition{T,1} ) where T
162- stg_a = cached_stage (ctx, a)
162+ stg_a = stage (ctx, a)
163163 dmn_a = domain (stg_a)
164164 dchunks_a = domainchunks (stg_a)
165165 dmn_b = domain (b. data)
@@ -168,19 +168,19 @@ function stage_operands(ctx::Context, ::MatMul, a::ArrayOp, b::PromotePartition{
168168 end
169169 dmn_out = DomainBlocks ((1 ,),(dchunks_a. cumlength[2 ],))
170170
171- stg_a, cached_stage (ctx, Distribute (dmn_out, b. data))
171+ stg_a, stage (ctx, Distribute (dmn_out, b. data))
172172end
173173
174174function stage_operands (ctx:: Context , :: MatMul , a:: PromotePartition , b:: ArrayOp )
175175
176176 if size (a, 2 ) != size (b, 1 )
177177 throw (DimensionMismatch (" Cannot promote array of domain $(dmn_b) to multiply with an array of size $(dmn_a) " ))
178178 end
179- stg_b = cached_stage (ctx, b)
179+ stg_b = stage (ctx, b)
180180
181181 ps = domainchunks (stg_b)
182182 dmn_out = DomainBlocks ((1 ,1 ),([size (a. data, 1 )], ps. cumlength[1 ],))
183- cached_stage (ctx, Distribute (dmn_out, a. data)), stg_b
183+ stage (ctx, Distribute (dmn_out, a. data)), stg_b
184184end
185185
186186function stage (ctx:: Context , mul:: MatMul{T,N} ) where {T,N}
@@ -215,11 +215,11 @@ scale(l::ArrayOp, r::ArrayOp) = _to_darray(Scale(l, r))
215215function stage_operand (ctx:: Context , :: Scale , a, b:: PromotePartition )
216216 ps = domainchunks (a)
217217 b_parts = DomainBlocks ((1 ,), (ps. cumlength[1 ],))
218- cached_stage (ctx, Distribute (b_parts, b. data))
218+ stage (ctx, Distribute (b_parts, b. data))
219219end
220220
221221function stage_operand (ctx:: Context , :: Scale , a, b)
222- cached_stage (ctx, b)
222+ stage (ctx, b)
223223end
224224
225225function _scale (l, r)
@@ -231,7 +231,7 @@ function _scale(l, r)
231231end
232232
233233function stage (ctx:: Context , scal:: Scale )
234- r = cached_stage (ctx, scal. r)
234+ r = stage (ctx, scal. r)
235235 l = stage_operand (ctx, scal, r, scal. l)
236236
237237 @assert size (domain (r), 1 ) == size (domain (l), 1 )
@@ -265,7 +265,7 @@ function Base.cat(d::ArrayDomain, ds::ArrayDomain...; dims::Int)
265265end
266266
267267function stage (ctx:: Context , c:: Concat )
268- inp = Any[cached_stage (ctx, x) for x in c. inputs]
268+ inp = Any[stage (ctx, x) for x in c. inputs]
269269
270270 dmns = map (domain, inp)
271271 dims = [[i == c. axis ? 0 : i for i in size (d)] for d in dmns]
0 commit comments