Skip to content

Commit

Permalink
Merge branch 'dev' into patch-3
Browse files Browse the repository at this point in the history
# Conflicts:
#	blank/main.cpp
  • Loading branch information
shleym2000 committed Dec 21, 2024
2 parents 0b24e4e + 423fe7e commit 08bbef5
Showing 48 changed files with 1,509 additions and 3,132 deletions.
Binary file removed blank/blank.dir/Debug/blank.ilk
Binary file not shown.
82 changes: 0 additions & 82 deletions blank/blank.dir/Debug/main.nativecodeanalysis.xml

This file was deleted.

75 changes: 0 additions & 75 deletions blank/blank.dir/Debug/vc.nativecodeanalysis.all.xml

This file was deleted.

28 changes: 14 additions & 14 deletions blank/main.cpp
Original file line number Diff line number Diff line change
@@ -28,26 +28,26 @@ int main()
{
cout << "OpenNN. ViT Example." << endl;

Eigen::Tensor<float, 4> input(1, 1, 1, 1);
input.setRandom();
// Eigen::Tensor<float, 4> input(1, 1, 1, 1);
// input.setRandom();

Eigen::Tensor<float, 2> kernel(1, 1);
kernel.setRandom();
// Eigen::Tensor<float, 2> kernel(1, 1, 1, 1);
// kernel.setRandom();

Eigen::Tensor<float, 4> output(1, 1, 1, 1);
// Eigen::Tensor<float, 4> output(1, 1, 1, 1);

Eigen::array<int, 3> dims;
output = input.convolve(kernel, dims);
// Eigen::array<int, 3> dims;
// output = input.convolve(kernel, dims);

std::cout << "input:\n\n" << input << "\n\n";
std::cout << "kernel:\n\n" << kernel << "\n\n";
std::cout << "output:\n\n" << output << "\n\n";
// std::cout << "input:\n\n" << input << "\n\n";
// std::cout << "kernel:\n\n" << kernel << "\n\n";
// std::cout << "output:\n\n" << output << "\n\n";


const Index samples_number = get_random_index(1, 10);
const Index inputs_number = get_random_index(1, 10);
const Index targets_number = get_random_index(1, 10);
const Index neurons_number = get_random_index(1, 10);
// const Index samples_number = get_random_index(1, 10);
// const Index inputs_number = get_random_index(1, 10);
// const Index targets_number = get_random_index(1, 10);
// const Index neurons_number = get_random_index(1, 10);
// Index a = 0;
// Index b = 0;
// Tensor<bool, 0> truefalse = a == b;
Loading

0 comments on commit 08bbef5

Please # to comment.