Skip to content

Commit

Permalink
Modified torch module classes to be internel
Browse files Browse the repository at this point in the history
  • Loading branch information
ncguilbeault committed Jan 29, 2025
1 parent d06a4c2 commit 139488e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Bonsai.ML.Torch/NeuralNets/Models/AlexNet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Bonsai.ML.Torch.NeuralNets.Models
/// <summary>
/// Modified version of original AlexNet to fix CIFAR10 32x32 images.
/// </summary>
public class AlexNet : Module<Tensor, Tensor>
internal class AlexNet : Module<Tensor, Tensor>
{
private readonly Module<Tensor, Tensor> features;
private readonly Module<Tensor, Tensor> avgPool;
Expand Down
2 changes: 1 addition & 1 deletion src/Bonsai.ML.Torch/NeuralNets/Models/MNIST.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Bonsai.ML.Torch.NeuralNets.Models
/// <summary>
/// Represents a simple convolutional neural network for the MNIST dataset.
/// </summary>
public class MNIST : Module<Tensor,Tensor>
internal class MNIST : Module<Tensor,Tensor>
{
private readonly Module<Tensor, Tensor> conv1;
private readonly Module<Tensor, Tensor> conv2;
Expand Down
2 changes: 1 addition & 1 deletion src/Bonsai.ML.Torch/NeuralNets/Models/MobileNet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Bonsai.ML.Torch.NeuralNets.Models
/// <summary>
/// MobileNet model.
/// </summary>
public class MobileNet : Module<Tensor, Tensor>
internal class MobileNet : Module<Tensor, Tensor>
{
private readonly long[] planes = [ 64, 128, 128, 256, 256, 512, 512, 512, 512, 512, 512, 1024, 1024 ];
private readonly long[] strides = [ 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1 ];
Expand Down

0 comments on commit 139488e

Please sign in to comment.