Skip to content

Commit

Permalink
merge conflicts fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RoberLopez committed Dec 16, 2024
2 parents b196d44 + d708ae7 commit 7c308f7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 23 deletions.
23 changes: 4 additions & 19 deletions examples/mnist/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,43 +23,28 @@ int main()

// Data set

//Random image data set
<<<<<<< HEAD
const Index samples_number = 10;
=======
//Random image data set

const Index samples_number = 3;
>>>>>>> d708ae72d027590cb19e8252e20216188803a48e

const Index image_height = 4;
const Index image_width = 4;
const Index channels = 3;
const Index targets = 2;

<<<<<<< HEAD
<<<<<<< HEAD

ImageDataSet image_data_set(samples_number, {image_height, image_width, channels}, {targets});
/*
image_data_set.set_data_random();
image_data_set.set(DataSet::SampleUse::Training);
/*
//ImageDataSet image_data_set(0,{0,0,0},{0});
=======
//ImageDataSet image_data_set(samples_number, {image_height, image_width, channels}, {targets});
=======
ImageDataSet image_data_set(samples_number, {image_height, image_width, channels}, {targets});
>>>>>>> d708ae72d027590cb19e8252e20216188803a48e
image_data_set.set_image_data_random();
image_data_set.set(DataSet::SampleUse::Training);
<<<<<<< HEAD
ImageDataSet image_data_set(0,{0,0,0},{0});
>>>>>>> 84ed8fe4fc319da8d5ad24db545c67fe6af6741a
=======
//ImageDataSet image_data_set(0,{0,0,0},{0});
>>>>>>> d708ae72d027590cb19e8252e20216188803a48e
//image_data_set.set_data_path("data");
//image_data_set.set_data_path("C:/mnist/train");
//image_data_set.set_data_path("C:/binary_mnist");
Expand Down
8 changes: 4 additions & 4 deletions opennn/convolutional_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,10 @@ void ConvolutionalLayer::back_propagate(const vector<pair<type*, dimensions>>& i
// Synaptic weights derivatives

TensorMap<Tensor<type, 4>> kernel_synaptic_weights_derivatives(
synaptic_weights_derivatives_data + kernel_index * kernel_synaptic_weights_number,
1,
kernel_height,
kernel_width,
synaptic_weights_derivatives_data + kernel_index * kernel_synaptic_weights_number,
1,
kernel_height,
kernel_width,
kernel_channels);

kernel_synaptic_weights_derivatives = inputs.convolve(kernel_convolutions_derivatives, convolutions_dimensions_3d);
Expand Down
1 change: 1 addition & 0 deletions opennn/convolutional_layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ struct ConvolutionalLayerBackPropagation : LayerBackPropagation

Tensor<type, 1> bias_derivatives;
Tensor<type, 4> synaptic_weight_derivatives;

Tensor<type, 4> rotated_synaptic_weights;

};
Expand Down

0 comments on commit 7c308f7

Please sign in to comment.