mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-29 10:01:39 +00:00
@@ -107,3 +107,12 @@ when true:
|
||||
assert aw2.data.high == 6
|
||||
assert aw3.data.high == 9
|
||||
|
||||
# #6077
|
||||
block:
|
||||
type
|
||||
Backend = enum
|
||||
Cpu
|
||||
|
||||
Tensor[B: static[Backend]; T] = object
|
||||
|
||||
BackProp[B: static[Backend],T] = proc (gradient: Tensor[B,T]): Tensor[B,T]
|
||||
|
||||
Reference in New Issue
Block a user