Skip to content

Commit 890ef0a

Browse files
committed
Update tiled net.
1 parent 64897b0 commit 890ef0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/gravnet/ParallelReverseAutoDiff.GravNetExample/TiledNet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public TiledNet(int numNodes, int numFeatures, int numLayers, double learningRat
3939
this.clipValue = clipValue;
4040
this.modelLayers = new List<IModelLayer>();
4141
this.entities = new List<(string, string)>();
42-
this.TiledNetwork = new TiledNetwork.TiledNetwork(this.numLayers, this.numNodes, this.numFeatures, this.learningRate, this.clipValue, "spatialnet");
42+
this.TiledNetwork = new TiledNetwork.TiledNetwork(this.numLayers, this.numNodes, this.numFeatures, this.learningRate, this.clipValue, "tilednet");
4343
this.adamOptimize = new StochasticAdamOptimizer(this.TiledNetwork);
4444
}
4545

@@ -81,7 +81,7 @@ public void AdjustLearningRate(double learningRate)
8181
public async Task Initialize()
8282
{
8383
var initialAdamIteration = 1;
84-
var model = new TiledNetwork.TiledNetwork(this.numLayers, this.numNodes, this.numFeatures, this.learningRate, this.clipValue, "spatialnet");
84+
var model = new TiledNetwork.TiledNetwork(this.numLayers, this.numNodes, this.numFeatures, this.learningRate, this.clipValue, "tilednet");
8585
model.Parameters.AdamIteration = initialAdamIteration;
8686
this.TiledNetwork = model;
8787
await this.TiledNetwork.Initialize();

examples/gravnet/ParallelReverseAutoDiff.GravNetExample/TiledNetTrainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public async Task Train()
1414
CudaBlas.Instance.Initialize();
1515
TiledNet net = new TiledNet(512, 6144, 3, 0.01d, 4d);
1616
await net.Initialize();
17-
net.ApplyWeights();
17+
//net.ApplyWeights();
1818

1919
var pngFiles = Directory.GetFiles(@"E:\images\inputs\svg", "*.png");
2020

0 commit comments

Comments
 (0)