Skip to content

Commit 0a7598c

Browse files
committed
Regenerate docs.
1 parent 160271a commit 0a7598c

23 files changed

+666
-798
lines changed

docs/_sources/modules/lib/Autograd.rst.txt

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ or
2525

2626
.. class:: TensorEssence : serializable
2727

28-
.. attribute:: type eltType = real
28+
.. type:: config type eltType = real
2929

3030
.. method:: proc runtimeRank: int
3131

@@ -35,19 +35,19 @@ or
3535

3636
.. class:: ForgetfulTensor : TensorEssence
3737

38-
.. attribute:: param rank: int
38+
.. data:: config param rank: int
3939

4040
.. class:: BaseTensorResource : TensorEssence, serializable
4141

42-
.. attribute:: param rank: int
42+
.. data:: config param rank: int
4343

44-
.. attribute:: var dataResource: shared Remote(ndarray(rank, eltType))
44+
.. data:: config var dataResource: shared Remote(ndarray(rank, eltType))
4545

46-
.. attribute:: var gradResource: shared Remote(ndarray(rank, eltType))?
46+
.. data:: config var gradResource: shared ?Remote(ndarray(rank, eltType))
4747

4848
.. method:: proc init(type eltType, param rank: int)
4949

50-
.. method:: proc init(in dataResource: shared Remote(ndarray(?rank, ?eltType)), in gradResource: shared Remote(ndarray(rank, eltType))? = nil)
50+
.. method:: proc init(in dataResource: shared Remote(ndarray(?rank, ?eltType)), in gradResource: shared ?Remote(ndarray(rank, eltType)) = nil)
5151

5252
.. method:: proc init(data: ndarray(?rank, ?eltType), device: locale = Remote.defaultDevice)
5353

@@ -65,25 +65,25 @@ or
6565

6666
.. method:: proc backward() where rank == 1
6767

68-
.. method:: proc detach(copy: bool = true, keepGrad: bool = false): owned TensorResource(eltType, rank, baseValue)
68+
.. method:: proc detach(copy: bool = true, keepGrad: bool = false): owned(TensorResource(eltType, rank, baseValue))
6969

7070
.. method:: override proc runtimeRank: int
7171

7272
.. class:: TensorResource : BaseTensorResource(?), serializable
7373

74-
.. attribute:: type operationType
74+
.. type:: config type operationType
7575

76-
.. attribute:: var operationCtx: operationType
76+
.. data:: config var operationCtx: operationType
7777

7878
.. method:: proc init(type eltType, param rank: int, operationCtx: ?operationType)
7979

80-
.. method:: proc init(in dataResource: shared Remote(ndarray(?rank, ?eltType)), in gradResource: shared Remote(ndarray(rank, eltType))? = nil, operationCtx: ?operationType)
80+
.. method:: proc init(in dataResource: shared Remote(ndarray(?rank, ?eltType)), in gradResource: shared ?Remote(ndarray(rank, eltType)) = nil, operationCtx: ?operationType)
8181

8282
.. method:: proc init(in dataResource: shared Remote(ndarray(?rank, ?eltType)))
8383

8484
.. method:: proc init(bt: borrowed BaseTensorResource(?eltType, ?rank), operationCtx: ?operationType)
8585

86-
.. method:: override proc detach(copy: bool = true, keepGrad: bool = false): owned TensorResource(eltType, rank, baseValue)
86+
.. method:: override proc detach(copy: bool = true, keepGrad: bool = false): owned(TensorResource(eltType, rank, baseValue))
8787

8888
.. method:: override proc forward()
8989

@@ -97,7 +97,7 @@ or
9797

9898
.. record:: reluOp : serializable
9999

100-
.. attribute:: var input: shared BaseTensorResource(?)
100+
.. data:: config var input: shared BaseTensorResource(?)
101101

102102
.. method:: proc children
103103

@@ -107,21 +107,21 @@ or
107107

108108
.. record:: expOp : serializable
109109

110-
.. attribute:: var input: shared BaseTensorResource(?)
110+
.. data:: config var input: shared BaseTensorResource(?)
111111

112112
.. method:: proc children
113113

114114
.. method:: proc forward()
115115

116116
.. record:: addOp : serializable
117117

118-
.. attribute:: param rank: int
118+
.. data:: config param rank: int
119119

120-
.. attribute:: type eltType
120+
.. type:: config type eltType
121121

122-
.. attribute:: var lhs: shared BaseTensorResource(eltType, rank)
122+
.. data:: config var lhs: shared BaseTensorResource(eltType, rank)
123123

124-
.. attribute:: var rhs: shared BaseTensorResource(eltType, rank)
124+
.. data:: config var rhs: shared BaseTensorResource(eltType, rank)
125125

126126
.. method:: proc children
127127

@@ -131,33 +131,33 @@ or
131131

132132
.. record:: subOp : serializable
133133

134-
.. attribute:: var lhs: shared BaseTensorResource(?)
134+
.. data:: config var lhs: shared BaseTensorResource(?)
135135

136-
.. attribute:: var rhs: shared BaseTensorResource(?)
136+
.. data:: config var rhs: shared BaseTensorResource(?)
137137

138138
.. method:: proc children
139139

140140
.. method:: proc forward()
141141

142142
.. record:: divOp : serializable
143143

144-
.. attribute:: var lhs: shared BaseTensorResource(?)
144+
.. data:: config var lhs: shared BaseTensorResource(?)
145145

146-
.. attribute:: var rhs: shared BaseTensorResource(?)
146+
.. data:: config var rhs: shared BaseTensorResource(?)
147147

148148
.. method:: proc children
149149

150150
.. method:: proc forward()
151151

152152
.. record:: multOp : serializable
153153

154-
.. attribute:: param rank: int
154+
.. data:: config param rank: int
155155

156-
.. attribute:: type eltType
156+
.. type:: config type eltType
157157

158-
.. attribute:: var lhs: shared BaseTensorResource(eltType, rank)
158+
.. data:: config var lhs: shared BaseTensorResource(eltType, rank)
159159

160-
.. attribute:: var rhs: shared BaseTensorResource(eltType, rank)
160+
.. data:: config var rhs: shared BaseTensorResource(eltType, rank)
161161

162162
.. method:: proc children
163163

@@ -167,15 +167,15 @@ or
167167

168168
.. record:: reshapeOp : serializable
169169

170-
.. attribute:: param oldRank: int
170+
.. data:: config param oldRank: int
171171

172-
.. attribute:: param newRank: int
172+
.. data:: config param newRank: int
173173

174-
.. attribute:: type eltType
174+
.. type:: config type eltType
175175

176-
.. attribute:: var shape: newRank*int
176+
.. data:: config var shape: newRank*int
177177

178-
.. attribute:: var input: shared BaseTensorResource(eltType, oldRank)
178+
.. data:: config var input: shared BaseTensorResource(eltType, oldRank)
179179

180180
.. method:: proc children
181181

@@ -185,13 +185,13 @@ or
185185

186186
.. record:: permuteOp : serializable
187187

188-
.. attribute:: param rank: int
188+
.. data:: config param rank: int
189189

190-
.. attribute:: type eltType = real
190+
.. type:: config type eltType = real
191191

192-
.. attribute:: var permutation
192+
.. data:: config var permutation
193193

194-
.. attribute:: var input: shared BaseTensorResource(eltType, rank)
194+
.. data:: config var input: shared BaseTensorResource(eltType, rank)
195195

196196
.. method:: proc children
197197

@@ -201,13 +201,13 @@ or
201201

202202
.. record:: expandOp : serializable
203203

204-
.. attribute:: param rank: int
204+
.. data:: config param rank: int
205205

206-
.. attribute:: type eltType = real
206+
.. type:: config type eltType = real
207207

208-
.. attribute:: var expandedShape: rank*int
208+
.. data:: config var expandedShape: rank*int
209209

210-
.. attribute:: var input: shared BaseTensorResource(eltType, rank)
210+
.. data:: config var input: shared BaseTensorResource(eltType, rank)
211211

212212
.. method:: proc children
213213

@@ -217,15 +217,15 @@ or
217217

218218
.. record:: padOp : serializable
219219

220-
.. attribute:: param rank: int
220+
.. data:: config param rank: int
221221

222-
.. attribute:: type eltType = real
222+
.. type:: config type eltType = real
223223

224-
.. attribute:: var arg: rank*(2*(int))
224+
.. data:: config var arg: rank*2*int
225225

226-
.. attribute:: var value: eltType
226+
.. data:: config var value: eltType
227227

228-
.. attribute:: var input: shared BaseTensorResource(eltType, rank)
228+
.. data:: config var input: shared BaseTensorResource(eltType, rank)
229229

230230
.. method:: proc children
231231

@@ -235,13 +235,13 @@ or
235235

236236
.. record:: shrinkOp : serializable
237237

238-
.. attribute:: param rank: int
238+
.. data:: config param rank: int
239239

240-
.. attribute:: type eltType = real
240+
.. type:: config type eltType = real
241241

242-
.. attribute:: var arg: rank*(2*(int))
242+
.. data:: config var arg: rank*2*int
243243

244-
.. attribute:: var input: shared BaseTensorResource(eltType, rank)
244+
.. data:: config var input: shared BaseTensorResource(eltType, rank)
245245

246246
.. method:: proc children
247247

@@ -251,13 +251,13 @@ or
251251

252252
.. record:: sliceOp : serializable
253253

254-
.. attribute:: param rank: int
254+
.. data:: config param rank: int
255255

256-
.. attribute:: type eltType = real
256+
.. type:: config type eltType = real
257257

258-
.. attribute:: var dom: domain(rank, int)
258+
.. data:: config var dom: domain(rank, int)
259259

260-
.. attribute:: var input: shared BaseTensorResource(eltType, rank)
260+
.. data:: config var input: shared BaseTensorResource(eltType, rank)
261261

262262
.. method:: proc children
263263

@@ -267,15 +267,15 @@ or
267267

268268
.. record:: layerSliceOp : serializable
269269

270-
.. attribute:: param rank: int
270+
.. data:: config param rank: int
271271

272-
.. attribute:: type eltType = real
272+
.. type:: config type eltType = real
273273

274-
.. attribute:: var base: shared BaseTensorResource(eltType, rank)
274+
.. data:: config var base: shared BaseTensorResource(eltType, rank)
275275

276-
.. attribute:: var mask: shared BaseTensorResource(eltType, rank)
276+
.. data:: config var mask: shared BaseTensorResource(eltType, rank)
277277

278-
.. attribute:: var maskDomain: domain(rank, int)
278+
.. data:: config var maskDomain: domain(rank, int)
279279

280280
.. method:: proc children
281281

@@ -285,15 +285,15 @@ or
285285

286286
.. record:: sumOp : serializable
287287

288-
.. attribute:: param rank: int
288+
.. data:: config param rank: int
289289

290-
.. attribute:: type eltType = real
290+
.. type:: config type eltType = real
291291

292-
.. attribute:: param sumRank: int
292+
.. data:: config param sumRank: int
293293

294-
.. attribute:: var axes: sumRank*int
294+
.. data:: config var axes: sumRank*int
295295

296-
.. attribute:: var input: shared BaseTensorResource(eltType, rank)
296+
.. data:: config var input: shared BaseTensorResource(eltType, rank)
297297

298298
.. method:: proc children
299299

@@ -305,15 +305,15 @@ or
305305

306306
.. record:: maxOp : serializable
307307

308-
.. attribute:: param rank: int
308+
.. data:: config param rank: int
309309

310-
.. attribute:: type eltType = real
310+
.. type:: config type eltType = real
311311

312-
.. attribute:: param maxRank: int
312+
.. data:: config param maxRank: int
313313

314-
.. attribute:: var axes: maxRank*int
314+
.. data:: config var axes: maxRank*int
315315

316-
.. attribute:: var input: shared BaseTensorResource(eltType, rank)
316+
.. data:: config var input: shared BaseTensorResource(eltType, rank)
317317

318318
.. method:: proc children
319319

@@ -323,13 +323,13 @@ or
323323

324324
.. record:: conv2DOp : serializable
325325

326-
.. attribute:: type eltType = real
326+
.. type:: config type eltType = real
327327

328-
.. attribute:: var features: shared BaseTensorResource(eltType, 3)
328+
.. data:: config var features: shared BaseTensorResource(eltType, 3)
329329

330-
.. attribute:: var kernel: shared BaseTensorResource(eltType, 4)
330+
.. data:: config var kernel: shared BaseTensorResource(eltType, 4)
331331

332-
.. attribute:: var stride: int
332+
.. data:: config var stride: int
333333

334334
.. method:: proc children
335335

docs/_sources/modules/lib/DynamicTensor.rst.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ or
1717
1818
import DynamicTensor;
1919
20-
.. data:: config param maxRank = 6
20+
.. data:: param maxRank = 6
2121

2222
.. data:: param defaultDetachedMode = true
2323

2424
.. record:: Tensor : serializable
2525

26-
.. attribute:: type eltType = real
26+
.. type:: config type eltType = real
2727

28-
.. attribute:: var meta: shared TensorEssence(eltType)
28+
.. data:: config var meta: shared TensorEssence(eltType)
2929

30-
.. attribute:: var runtimeRank: int = -1
30+
.. data:: config var runtimeRank: int = -1
3131

3232
.. method:: proc init(type eltType)
3333

docs/_sources/modules/lib/LoadNumpy.rst.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ or
2121

2222
.. class:: ArrClass : NoRankArray
2323

24-
.. attribute:: param rank: int
24+
.. data:: config param rank: int
2525

26-
.. attribute:: var _domain: domain(rank, int)
26+
.. data:: config var _domain: domain(rank, int)
2727

28-
.. attribute:: var data: [_domain] real
28+
.. data:: config var data: [_domain] real
2929

30-
.. function:: proc readData(param rank: int, fr, shape: rank*int, dtype: bytes): owned NoRankArray
30+
.. function:: proc readData(param rank: int, fr, shape: rank*int, dtype: bytes): owned(NoRankArray)
3131

3232
.. function:: proc readShape(fr)
3333

34-
.. function:: proc loadNumpyArray(path: string): owned NoRankArray
34+
.. function:: proc loadNumpyArray(path: string): owned(NoRankArray)
3535

3636
.. function:: proc main()
3737

0 commit comments

Comments
 (0)