Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

use constant weight matrix #3906

@boofhead

Description

@boofhead

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions