1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- package remotecontrol
- import (
- "log"
- neuralnetworkbase "../neuralnetworkbase"
- "gonum.org/v1/gonum/mat"
- )
- type RemoteControl struct {
- }
- func (rw *RemoteControl) Init(nn *neuralnetworkbase.NeuralNetwork) {
- }
- func (rw *RemoteControl) UpdateActivations(l int, a *mat.Dense) {
-
- }
- func (rw *RemoteControl) UpdateBiases(l int, biases *mat.Dense) {
-
- }
- func (rw *RemoteControl) UpdateWeights(l int, weights *mat.Dense) {
-
- }
- func NewLayerMatrix(l int, dense *mat.Dense, contentType LayerMatrix_ContentType) (matrix *LayerMatrix) {
- buffer, err := dense.MarshalBinary()
- if err != nil {
- log.Fatalln("Invalid dense is provided for remote control")
- }
- matrix = &LayerMatrix{
- Matrix: &Matrix{
- Matrix: buffer,
- },
- Layer: int32(l),
- ContentType: contentType,
- }
- return
- }
|