grain ~master (2021-05-15T05:53:16Z)
Dub
Repo
OpBinary.forward
grain
functions
binary
OpBinary
Undocumented in source. Be warned that the author may not have intended to support it.
auto
forward
(Variable!(T, dim, HostStorage) a, Variable!(T, dim, HostStorage) b)
auto
forward
(Variable!(T, dim, DeviceStorage) a, Variable!(T, dim, DeviceStorage) b)
struct
OpBinary
(T, size_t dim, string ops)
version(grain_cuda)
static if
(
opBinaryDict.keys.find(ops)
)
auto
forward
(
Variable
!(
T
,
dim
,
DeviceStorage
)
a
,
Variable
!(
T
,
dim
,
DeviceStorage
)
b
)
if
(
isFloatingPoint
!
T
)
Meta
Source
See Implementation
grain
functions
binary
OpBinary
functions
backward
forward
manifest constants
opBinaryDict
mixins
__anonymous
variables
alpha1
alpha2
da
db
ha
hb
shape1
shape2