I think this must be trivial but I can't work to how to do it.
I would like to have one weight matrix manually entered and not trained.
I am using R
I have tried:
data <- mx.symbol.Convolution(data = data, weight=1:4, kernel=c(1,1), stride=c(1,1), pad = c(0,0), no.bias=TRUE, num.filter = 1L)
and
extWeight <- mx.symbol.Blockgrad(mx.symbol.Variable('extWeight'))
data <- mx.symbol.Convolution(data = data, weight=extWeight, kernel=c(1,1), stride=c(1,1), pad = c(0,0), no.bias=TRUE, num.filter = 1L)
with arg.params = list("extWeight" = 1:4) in the call to mx.model.Feedforward.create()
I don't think any of this is working. Can someone help me out?
I think this must be trivial but I can't work to how to do it.
I would like to have one weight matrix manually entered and not trained.
I am using R
I have tried:
data <- mx.symbol.Convolution(data = data, weight=1:4, kernel=c(1,1), stride=c(1,1), pad = c(0,0), no.bias=TRUE, num.filter = 1L)and
extWeight <- mx.symbol.Blockgrad(mx.symbol.Variable('extWeight'))data <- mx.symbol.Convolution(data = data, weight=extWeight, kernel=c(1,1), stride=c(1,1), pad = c(0,0), no.bias=TRUE, num.filter = 1L)with
arg.params = list("extWeight" = 1:4)in the call tomx.model.Feedforward.create()I don't think any of this is working. Can someone help me out?