sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
17k
content
stringlengths
1
200k
58449a8cc897c5ab05428033a343a4725e550b8abe38af3767fa8be4c392553b
C++
1,393
46
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
182da5b5344d3cabaf19ef967dc06717aa3410fbb57039cb0fbc5ebb599b9494
C++
1,397
47
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
2db1c1f3964d3c53bdd3c074e83c8f5af94961b62add9783c50742e11a3ce405
C++
1,400
47
#include <algorithm> #include <vector> #include "caffe/layers/elu_layer.hpp" namespace caffe { template <typename Dtype> void ELULayer<Dtype>::Forward_cpu(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { const Dtype* bottom_data = bottom[0]->cpu_data(); Dtype* top_data = top[0]->mutable...
4e11c894f3a75c3e5abf4088e7781439ac1d02703e7eacd011f15ee5f2580ff8
C++
1,400
46
#ifdef USE_CUDNN #include <vector> #include "caffe/layers/cudnn_sigmoid_layer.hpp" namespace caffe { template <typename Dtype> void CuDNNSigmoidLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { SigmoidLayer<Dtype>::LayerSetUp(bottom, top); // initialize cuDNN ...
0d3016209b2c9d9a955e824f2c21f041ba1ca8cdef41df1120b9cbbd2d0c78ea
C++
1,408
42
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
b731c2f1ca824987e456fe1092ee5ea341e04fc61ae1b02da8fd0e3cb04234ec
C++
1,417
65
//========================================================= // //This is a prog in the MutualInfo 0.9 package written by // Hanchuan Peng. // //Disclaimer: The author of program is Hanchuan Peng // at <penghanchuan@yahoo.com> and <phc@cbmv.jhu.edu>. // //The CopyRight is reserved by the author. // //Last modificat...
e1c3f9cd0ddebf6bd269521007d9711a87e953c6366e948b1b960c291e5c863b
C++
1,419
65
//========================================================= // //This is a prog in the MutualInfo 0.9 package written by // Hanchuan Peng. // //Disclaimer: The author of program is Hanchuan Peng // at <penghanchuan@yahoo.com> and <phc@cbmv.jhu.edu>. // //The CopyRight is reserved by the author. // //Last modificat...
b5cf1a664f8bf613f4f393d7f010a454938bab8158e12c34bbf8cf332b5d658d
C++
1,436
44
#include <vector> #include "caffe/layers/flatten_layer.hpp" namespace caffe { template <typename Dtype> void FlattenLayer<Dtype>::Reshape(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { CHECK_NE(top[0], bottom[0]) << this->type() << " Layer does not " "allow in-place computation....
c8efabbf9241cd43c0f6000c785161b069ec00d357968b6620ba2d040474a4ba
C++
1,446
45
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
5f0a98bc2a8552fa8bfa05fb72d75a6016457424d6aef98a69029a91f11a053e
C++
1,453
52
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
edef48ca82d41cf8469ddf05d28b6568f82b9813e8970a23245c72699d3411b6
C++
1,469
47
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
7ad2d16ddc0970a74cf7deb23a9fb2a8647d3124c854d51c240e2bae7001a802
C++
1,472
51
#include <map> #include <string> #include "boost/scoped_ptr.hpp" #include "gtest/gtest.h" #include "caffe/common.hpp" #include "caffe/layer.hpp" #include "caffe/layer_factory.hpp" #include "caffe/util/db.hpp" #include "caffe/util/io.hpp" #include "caffe/test/test_caffe_main.hpp" namespace caffe { template <typenam...
2577192485e0951cfe1d2e06fd7c6a469a671cd1fafb26372f27f501490b880f
C++
1,486
50
#include <map> #include <string> #include "boost/scoped_ptr.hpp" #include "google/protobuf/text_format.h" #include "gtest/gtest.h" #include "caffe/common.hpp" #include "caffe/solver.hpp" #include "caffe/solver_factory.hpp" #include "caffe/test/test_caffe_main.hpp" namespace caffe { template <typename TypeParam> cl...
610fb0db035e51803481d1ed233641f15d818fde482d22448ea0d080f24fb521
C++
1,515
46
#ifdef USE_CUDNN #include <vector> #include "caffe/layers/cudnn_pooling_layer.hpp" namespace caffe { template <typename Dtype> void CuDNNPoolingLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { PoolingLayer<Dtype>::LayerSetUp(bottom, top); CUDNN_CHECK(cudnnCreate...
737f60271d188e7c5a63ca198cffcfbdb577b042c8faa9ca8f20ed8491aa47cf
C++
1,522
46
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
93e25b14fc2dd164c73ce87dfd4d9913eb292cee1873d792c6522389ef893adf
C++
1,530
42
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
1d0b3540cbf3107ee31ad5e7d93738f7c2909a7b8155eb2a67ae8ec1228e95b5
C++
1,531
40
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
5d1625bc9ff6ee3ff4ffe3957568c429492decedadeb7449fda744aa33d79600
C++
1,541
50
// This is a script to upgrade "V0" network prototxts to the new format. // Usage: // upgrade_net_proto_binary v0_net_proto_file_in net_proto_file_out #include <cstring> #include <fstream> // NOLINT(readability/streams) #include <iostream> // NOLINT(readability/streams) #include <string> #include "caffe/caffe.hp...
f493858a24bd41d97b702cb37a2e488d935182a88c26ccd79981557af937cdf4
C++
1,549
49
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2017 Imperial College London * Copyright 2013-2017 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
96c0e2b3c65c6a196ec864e3118d10b0d79034d1694e4f1ffc50233fd5e38212
C++
1,557
43
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
13836d6048ad47a3de45909b0df82f794aa429fe620de751ce0685e0f06efdd6
C++
1,560
51
// This is a script to upgrade "V0" network prototxts to the new format. // Usage: // upgrade_net_proto_text v0_net_proto_file_in net_proto_file_out #include <cstring> #include <fstream> // NOLINT(readability/streams) #include <iostream> // NOLINT(readability/streams) #include <string> #include "caffe/caffe.hpp"...
cbbdac382c20b6d3bd26fa71cdbff0163d85e6ef83c41e101a310f72b8be2699
C++
1,564
50
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2017 Imperial College London * Copyright 2013-2017 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
d1884b334b762aedd63a06207aa57359d4e6f831c5bf7b348a301fb47a204b8a
C++
1,564
42
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
81c72631ac93ca4d50d130e32717186446f887c31127fb80c333c394711a677e
C++
1,567
44
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
affbf12940aa45b77fdb87cded84f8e2bac9b9e2b326b2cbf2eec5e7a9fd3fa6
C++
1,573
51
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
fae17075041f132b83dae044a3427829bfa9c78be343c522888971d1c7ea3cc5
C++
1,590
53
#ifdef USE_CUDNN #include <vector> #include "caffe/layers/cudnn_lrn_layer.hpp" namespace caffe { template <typename Dtype> void CuDNNLRNLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { LRNLayer<Dtype>::LayerSetUp(bottom, top); CUDNN_CHECK(cudnnCreate(&handle_))...
6c17d914f1dedf566534cda9210fa03066a0bfcf5f2806ba9c8d0463b8a61d69
C++
1,596
50
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
508cbdc2e6b51f47003e9b0d2da6c86cceeae237ec6504e99ccbfb38b92b52e7
C++
1,600
54
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
b28c646c6c041770c8770462920e2c706dd427d937d2a6bb53ba1b98fb5b5f81
C++
1,612
51
// This is a script to upgrade old solver prototxts to the new format. // Usage: // upgrade_solver_proto_text old_solver_proto_file_in solver_proto_file_out #include <cstring> #include <fstream> // NOLINT(readability/streams) #include <iostream> // NOLINT(readability/streams) #include <string> #include "caffe/ca...
22e9cd5c14c21e403c2a3951de2119a705c6b1c34b65df09278c6aab52a5dc91
C++
1,616
66
#include <boost/thread.hpp> #include <exception> #include "caffe/internal_thread.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { InternalThread::~InternalThread() { StopInternalThread(); } bool InternalThread::is_started() const { return thread_ && thread_->joinable(); } bool InternalThread::mu...
63811ccd262d97b584047bda12aa23d00048e26b2b9c66ff946db5147e511c72
C++
1,621
58
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
845edb2ef6a253557aee98bdf99a16a9804d9d148429516c8189d79918ce71f9
C++
1,641
46
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2018 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
3330ca434bf8cec2b3ff2434690ea1bc1c87113a03b0cf1cace7509af1f0b4f5
C++
1,720
52
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
79fa99fad74055ac906b562a4478cc5a1f9cc6cd044215b2a8a35b214b72b7f4
C++
1,721
55
#include <vector> #include "caffe/layers/euclidean_loss_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void EuclideanLossLayer<Dtype>::Reshape( const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { LossLayer<Dtype>::Reshape(bottom, top); CHECK_E...
228096b8cc100b0629be1930d8557fc8368fc4465bdb041e774fcc4dbcc8dabc
C++
1,722
58
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2017 Imperial College London * Copyright 2013-2017 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
12a0a58548244eb4bd77970d2b07c41ef3667c322a3cc6d24c667c95a485e98e
C++
1,723
55
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2015 Imperial College London * Copyright 2008-2015 Daniel Rueckert, Julia Schnabel * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
003c1de124c2d836dede1f8c64817b84f6a6fb6065c62fdc51903c32e35040e1
C++
1,732
80
#include "mex.h" #include "math.h" #include "matrix.h" //#define V(i,j,k) v[i+(j+k*N)*M] //#define C(i,j,k) c[i+(j+k*N)*M] void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { double *v; double *c; const mwSize *dimarray; int chunk, X, Y, Z; int i, j, k, l, m ,n; mwSize dimnum; dimarray = m...
5bd884fe2d871f530dae9b1b902ccd62c0ceb25beb83d8ab8007b3b61a229b79
C++
1,759
55
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
9e02188940f20c988a92f520253e4979de77496e208f145f881a3ffa1004269b
C++
1,760
47
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
cc1c1f2b9a8ef6f3dc06de3686cb20d77df22653fe2f03ad4478fe63331d0eb8
C++
1,776
57
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2018 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
c56a8c2106975d9e8b97aa582bb8e75811d4d7355ee2a2187f5d32626735176a
C++
1,799
57
#include <QtTest> #include "uvccontrolmac.h" // Hardware-free smoke tests for the IOKit transport: exercise the IOKit // registry-walking code paths on whatever machine runs them (CI runners have // no cameras - an empty enumeration is a pass; the real validation runs on the // bench via tools/uvc-bench-mac.cpp with ...
0969632ddf293271fc4d54680dc04d72889480ab855781c9acd215e6d0bfea66
C++
1,800
67
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
5153dbd1f86f5f86b676de7ecf2506305008ff11d3231e827e7f86e76939ef46
C++
1,800
74
//========================================================= // //This is a prog in the MutualInfo 0.9 package written by // Hanchuan Peng. // //Disclaimer: The author of program is Hanchuan Peng // at <penghanchuan@yahoo.com> and <phc@cbmv.jhu.edu>. // //The CopyRight is reserved by the author. // //Last modificat...
6690821d6223f0ff3a3b3914cd33a73e61bb8921d44b523bf50f4151852fa68c
C++
1,802
74
//========================================================= // //This is a prog in the MutualInfo 0.9 package written by // Hanchuan Peng. // //Disclaimer: The author of program is Hanchuan Peng // at <penghanchuan@yahoo.com> and <phc@cbmv.jhu.edu>. // //The CopyRight is reserved by the author. // //Last modificat...
d5af3155470d0ed4047393d2d0e8a6dad55ff902ee7d4ed39a7ef788515da8f8
C++
1,813
64
#include "gtest/gtest.h" #include "caffe/common.hpp" #include "caffe/syncedmem.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/test/test_caffe_main.hpp" namespace caffe { class CommonTest : public ::testing::Test {}; #ifndef CPU_ONLY // GPU Caffe singleton test. TEST_F(CommonTest, TestCublasHandler...
fe61348995d5cc8141ae0bb7a5d6a67681d8dd73bad38a065be8c3e66d3edb75
C++
1,865
72
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
093e10da1883a62ebc9c5846e035e14fd33d17a2e8586673943175f91bd281d3
C++
1,866
62
#include <vector> #include "caffe/sgd_solvers.hpp" namespace caffe { #ifndef CPU_ONLY template <typename Dtype> void nesterov_update_gpu(int N, Dtype* g, Dtype* h, Dtype momentum, Dtype local_rate); #endif template <typename Dtype> void NesterovSolver<Dtype>::ComputeUpdateValue(int param_id, Dtype rate) { CHE...
fc46762615ac1ad8fca7d2f10b558abe9ce8205c36481c8eb1073cbbb2062f23
C++
1,888
56
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
b72f3717017c8f6fc61d3789478b05d0dee335aa5f81c18d707bc0320a99b375
C++
1,896
58
#include <vector> #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/layers/multinomial_logistic_loss_layer.hpp" #include "caffe/test/test_caffe_main.hpp" #include "caffe/test/test_gradient_check_util.hpp" namespace caffe { template <typename ...
bbe7d4c5564bfa3e65d3cdfbcb00c0f4087a7add0866caa2d3fd66e7bcae8918
C++
1,905
66
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2015 Imperial College London * Copyright 2008-2015 Daniel Rueckert, Julia Schnabel * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
68ecdebd4ac9e282d2f75bc0ab6b65d3b1420e32b18325f24876eb0aa0b46ed6
C++
1,913
59
#include <vector> #include "caffe/layers/split_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void SplitLayer<Dtype>::Reshape(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { count_ = bottom[0]->count(); for (int i = 0; i < top.size(); ...
45cf2d3c64fc0fc20012f81a21a36adcd033377df399c602a2a3758dbc2c9c82
C++
1,926
61
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
dbfe9205de173e5e6d1cf9555289f5b1cef4a8f3be26b6ab102eb79616f8991d
C++
1,926
49
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
8d699e0c6c0186ec1676b74bf3ff4c58b3bb5e806d890f1b628d4f6639f469fb
C++
1,928
58
#include "miniscopeprotocol.h" #include <cmath> namespace MiniscopeProtocol { PackedCommand packI2CPacket(const QVector<quint8> &packet) { PackedCommand cmd; if (packet.isEmpty() || packet.length() > 6) return cmd; // invalid: nothing to send / no wire format for > 6 bytes quint64 raw; if ...
001dd7d2fe3140340d9ef6f457feeaf43f775d1b77e086e55249807caa43b3f4
C++
1,940
58
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
983b0cc2a03bc772eb0b5d96ab62a67b5161fde32765ea2ebf0c956314fa26e0
C++
1,940
61
#include <vector> #include "caffe/layers/tile_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void TileLayer<Dtype>::Reshape( const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { const TileParameter& tile_param = this->layer_param_.tile_param();...
87b4ac8e03d91848d6771b892bef26b0566e317c2be636e1f63d55e09a50561e
C++
1,944
61
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
c117b4fa365699b6a4760dcd25582bd5846b95c62e5baf7f86e7c9d85a7469ef
C++
1,950
69
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
e85087da24b0e30f5fd631cacd98899abdf8e84c4569ad5645caf7da5eb855f6
C++
1,954
72
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
52da35948e3c3eb3e586215923f38edeca4b3e2d139bfcdc2d000fb8f5c9a3e2
C++
1,956
65
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
540935625ba1ec877de29e78c6ee08cd62bbd60a2922a571f04863fbafb785dc
C++
1,977
52
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
9653be33dc1f5a26bd95a1095c7fc6fb9b1526d7be87351b88a2f8caf30df399
C++
1,988
61
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
4764534a0b3074d2c221b83a336b587368df49500e25eb3490d173bfb10e3d8a
C++
1,994
44
// Tiny launcher so the release folder shows just one loose file - the // executable - at the top, with all the DLLs / Qt plugins / QML tucked into a // "bin" subfolder next to it: // // <release>/MiniscopeDAQ.exe <- this launcher (double-click) // <release>/deviceConfigs/ userConfigs/ Scripts/ <- runtim...
1c5abc63708189b4f4ed9b2c3c4da1b37aa8137fa0ce6b3e00b96e1440d9fa23
C++
2,004
68
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
db0efd67a1fd956bb12e598c629c75ed570934d01cab62232fb1fa350998650d
C++
2,010
62
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2017 Imperial College London * Copyright 2013-2017 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
332b7b12258493503af0969bf9412062f0b6f0f982a58ba3d931e69fdc2bdb63
C++
2,070
68
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2016-2017 Imperial College London * Copyright 2016-2017 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
4b0c72c842b2be6e95babf693919e79c4241725bb21a7721ac8e256168d28779
C++
2,070
68
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2016-2017 Imperial College London * Copyright 2016-2017 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
89d8fb6a830a963541354db54ee115becc7b7ee8fc7d28ef39dad7ee0b16e178
C++
2,072
59
#include "themecontroller.h" #include <QGuiApplication> #include <QQmlEngine> #include <QStyleHints> #include <QUrl> bool ThemeController::s_dark = true; QVector<ThemeController *> ThemeController::s_instances; // Keep the OS-level color scheme in step with the app theme so native pieces // (menus, dialogs, palette-...
9afae0b932beefcff77c5aafcc2ce39d1a1ae3011d4ebe2e55b3585f16ad7f9c
C++
2,101
64
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2015 Imperial College London * Copyright 2008-2013 Daniel Rueckert, Julia Schnabel * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
ed8961a5c13edbc503ff4cc5a71d2c96ac3eceaa9fe23e70995d505aee7fd18b
C++
2,108
62
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2016 Imperial College London * Copyright 2016 Christian Ledig * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
98a2c04fd95bda2a7e4080f00f97c303f2904763361d4acb14735bfe284e3cb0
C++
2,111
98
#include <boost/thread.hpp> #include <string> #include "caffe/data_reader.hpp" #include "caffe/layers/base_data_layer.hpp" #include "caffe/parallel.hpp" #include "caffe/util/blocking_queue.hpp" namespace caffe { template<typename T> class BlockingQueue<T>::sync { public: mutable boost::mutex mutex_; boost::cond...
d8ad68d3a964af777663976935285f2a1869e2c7ad6a02fc4787986391de1f0d
C++
2,113
58
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
a42479eeb7f4299bfd1d9a79030c99a51dcf6dbabcbd4d7420b9032fa288f372
C++
2,133
72
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2016-2017 Imperial College London * Copyright 2016-2017 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
e3b633e6e1bc4a80175293afe0c355e08522c6f20cd8c0951be9187b09167ded
C++
2,136
63
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
aefe69354048cee6513f1b50dfb10861def621c929602fb0555d3ee39d345847
C++
2,139
57
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
ae4f1d96996ecff81ab09edb5095fcea527571b4104453012923a631e6e0fdc0
C++
2,146
65
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2015 Imperial College London * Copyright 2008-2013 Daniel Rueckert, Julia Schnabel * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
dc025373ccc6d34d0b01f3419af893048087d1bbc7c6f28c2d08fc627b39b801
C++
2,148
73
#ifdef USE_CUDNN #include <vector> #include "caffe/layers/cudnn_lcn_layer.hpp" namespace caffe { template <typename Dtype> void CuDNNLCNLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { LRNLayer<Dtype>::LayerSetUp(bottom, top); CUDNN_CHECK(cudnnCreate(&handle_))...
fd122e5b328767bde793e61010450814bd6b7e01bd8edaeca4be0a4bd315d183
C++
2,149
60
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2015 Imperial College London * Copyright 2008-2013 Daniel Rueckert, Julia Schnabel * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
3177a6c079f923c94bd2eea7b081fc4a364ff1d7343d30d2e8e88181a40db675
C++
2,157
72
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2016-2017 Imperial College London * Copyright 2016-2017 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
33474eee6102dccf9026fc155cd35766b4d9a90a768753f75691ab94c889eb9f
C++
2,163
57
#ifndef CPU_ONLY #include <cstdio> #include <cstdlib> #include "glog/logging.h" #include "gtest/gtest.h" #include "caffe/test/test_caffe_main.hpp" namespace caffe { extern cudaDeviceProp CAFFE_TEST_CUDA_PROP; class PlatformTest : public ::testing::Test {}; TEST_F(PlatformTest, TestInitialization) { printf("Maj...
ecbaa39adf2382c8c7514321f168cfd3d6f951fbe6cb2dd95aae44a35b69def0
C++
2,174
64
#include <algorithm> #include <cmath> #include <vector> #include "caffe/layers/multinomial_logistic_loss_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void MultinomialLogisticLossLayer<Dtype>::Reshape( const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*...
a1f47c3c58203d7040f5f618be0e36bd21fc7b8fae43a2b86d48233f20cdf75e
C++
2,176
70
#include <vector> #include "caffe/sgd_solvers.hpp" namespace caffe { #ifndef CPU_ONLY template <typename Dtype> void adagrad_update_gpu(int N, Dtype* g, Dtype* h, Dtype delta, Dtype local_rate); #endif template <typename Dtype> void AdaGradSolver<Dtype>::ComputeUpdateValue(int param_id, Dtype rate) { CHECK(Ca...
06c5d27109f5bf8cc248f5ff58588a3f735a632e06d685ce67e9cfa51da2d889
C++
2,185
68
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
ddb2b6bd08c2ba3e82629b07da52dca2e617d4ad04b1589a05c0d6814fc088cd
C++
2,193
74
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
e3f71087e040094aae4593a05d5a2fbe54769db64f4b30748e177bf0205f38a5
C++
2,194
70
#include <vector> #include "caffe/sgd_solvers.hpp" namespace caffe { #ifndef CPU_ONLY template <typename Dtype> void rmsprop_update_gpu(int N, Dtype* g, Dtype* h, Dtype rms_decay, Dtype delta, Dtype local_rate); #endif template <typename Dtype> void RMSPropSolver<Dtype>::ComputeUpdateValue(int param_id, Dtype r...
17cede3db1e51266f259473f307c205133b87c1a04e0314ee6b91b19b4a67c87
C++
2,195
67
#include <vector> #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/layers/infogain_loss_layer.hpp" #include "caffe/test/test_caffe_main.hpp" #include "caffe/test/test_gradient_check_util.hpp" namespace caffe { template <typename TypeParam> c...
30d06bda6664cb8d0cc4ae2de990cf134d64f72adcbd4d1d8be4e38c1625dbe5
C++
2,212
53
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
e4e401bdb1d7a59371369f2a4f44a3c739b7292e754ec2c484091f323a1117c9
C++
2,219
74
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2017 Imperial College London * Copyright 2013-2017 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
b04066607943df5e097c54242f1525dab7e27de959f912fa7ee24f4c0a023e1e
C++
2,238
61
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
899de1d6a62688e052a421d9b0958529dee8aef25b93ea4cc18e94069f121bee
C++
2,261
61
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
6190ba482c6fafadadeff60c91f148daf904ac1e063130f16229f24aa1e62cb2
C++
2,264
63
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
b82fbfbf4efe82b0c384bad6c89975369052f03e905c26e648c1f31783f051af
C++
2,298
69
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
6e5df35ade3d28b0065a766ecfc542421e39a5fc7f7aa02734e99681cd39507f
C++
2,305
60
#include "mex.h" #include "math.h" /*************************************************************************/ /* */ /* This function computes the correlation between vectors x and y. */ /* The algorithm is quite fast and is considered numerica...
1164313869aaa919014b78ab7f6136256f6349f25a73cead3b1ad9993cbe3a59
C++
2,311
66
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
97d177a0d576d7803058178ec6cbba5182f9b7942d45ec71f6e438a448c0e99b
C++
2,316
66
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
56c739a21511f9572c664cb681c288512f50b9e0486ee0aa4ddb39c853545825
C++
2,319
80
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
0d1e4c29e9c03e3bf2d1075e2d67262a8cf7d8ea2b160945e3740533db59f7a3
C++
2,342
65
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
3a49fd2246ead0430980f933a9fb073f0d761bfd42b26c1f22b01aa6cb5ad427
C++
2,343
65
/* * Copyright 2022 Google LLC. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
a1a876ed944da8c298db9de5ee17e056167e8541695a9e0d617763dcf147e1b0
C++
2,343
75
// TODO (sergeyk): effect should not be dependent on phase. wasted memcpy. #include <vector> #include "caffe/layers/dropout_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void DropoutLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom, const vector<Blob...
8bde4f9638102b3586522de272f2bb6e71b5448c473367de3db36211540dcaa4
C++
2,349
74
#include <cmath> #include <vector> #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/layers/hinge_loss_layer.hpp" #include "caffe/test/test_caffe_main.hpp" #include "caffe/test/test_gradient_check_util.hpp" namespace caffe { template <typenam...