sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
a865d3f5f56e9ab241afdfcd0ec6f747200e73138ad47215f237e57f3f3d91fd | C++ | 2,355 | 83 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2016 Imperial College London
* Copyright 2016 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
*
* htt... |
9f8c82649df91e32a5d27fd0db55a191de1b870ba055b21b0f9c4da92702d191 | C++ | 2,361 | 84 | /*
* 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
*
... |
d06cf20e18063c2ce9d25cdc5710eb96939367899435b2117cd2f813180e63bb | C++ | 2,370 | 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... |
c416d99bbf4386a1a4c7c0057f73551242cd4bd40d8af980c768c8a674de2898 | C++ | 2,372 | 68 | #include <vector>
#include "caffe/layers/exp_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void ExpLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
NeuronLayer<Dtype>::LayerSetUp(bottom, top);
const Dtype base ... |
76b27cf0d76c6ca6aacf99bc539d6c291dced1e079004061ebd7bd3d39de8245 | C++ | 2,375 | 70 | /*
* 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... |
31c37ae25dc41d47c0542f323ac22c27cba459601908680eacebf33c409f9d6c | C++ | 2,382 | 59 | /*
* 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... |
757a932234a5cf30ab28a5a5ecdc3c542e48611dc322cbc0ff35579ab77589bb | C++ | 2,390 | 64 | /*
* 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... |
f71abe794fee35658d48011972cf05fda111185898f0340646fee1e919239302 | C++ | 2,393 | 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
*
... |
82e2ad3de6be799efc3987eb1beceb43e7d9385cf000a099218a93ed32420deb | C++ | 2,395 | 78 | #include <algorithm>
#include <vector>
#include "caffe/layers/hinge_loss_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void HingeLossLayer<Dtype>::Forward_cpu(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
const Dtype* bottom_data = bott... |
ae2c106fbbe10e441753681c0d6f5e57432978ed1338d386f2424c9bae654435 | C++ | 2,409 | 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... |
93b532761c80263328ed8f7be077d50693223a7637d6f87ecb0c2250bcdc1469 | C++ | 2,410 | 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... |
2d064a62009131d8da19ff1da6e957c6f30993eb24146b1e32c73a6ed000c1b1 | C++ | 2,417 | 71 | #include "behaviorcam.h"
#include "newquickview.h"
#include "videodisplay.h"
#include <QQuickView>
#include <QQuickItem>
#include <QSemaphore>
#include <QObject>
#include <QTimer>
#include <QAtomicInt>
#include <QJsonObject>
#include <QJsonDocument>
#include <QJsonArray>
#include <QQmlApplicationEngine>
#include <QVec... |
4acc214afc38c9d4382e09c9c617580dc1a7bb58e2deef2ffadda072fd0850ef | C++ | 2,458 | 73 | /*
* 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... |
d43bac9236b71245956dffc4497d8e60fba01e9a8c0185e838a92409045c2028 | C++ | 2,464 | 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... |
ef00a66e3a0a0ddab2b1641401e0df6417968f4466dcfa64ac6c6aea78b34aac | C++ | 2,467 | 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... |
c24a1bd85b856f8d31383bb4c4f919e407436275bde4977546ecc9273e03af97 | C++ | 2,475 | 129 | #include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <mex.h>
#include <math.h>
#include "matrix.h"
#define tol 1e-8
/*
-------------------------- Function prf_lb -----------------------------
Euclidean Projection onto l1 Ball (prf_lb)
min 1/2 ||x- c||_2^2
s.t. ||x||_1 <= t
Usage (i... |
59aa87e566be792748408484b147084cbba2aa4855ec2ad1df49c6e4a827da9d | C++ | 2,500 | 80 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2008-2015 Imperial College London
*
* 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
*
* http://www.apache.org/licenses... |
daa4025497582c17e6169c84e8c2a034cff8ed75ed3d2b3448d40d49a919960f | C++ | 2,511 | 80 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2008-2015 Imperial College London
*
* 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
*
* http://www.apache.org/licenses... |
8dba9365a38e4b596c0255f4c46b352a200aa836f310940cf4c186233bfbf1d3 | C++ | 2,531 | 89 | /*
* 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... |
8107c3b3c07b8c93fbc6f6c3ff60762666d37562abfd29aebb09ed2ea748ef06 | C++ | 2,563 | 92 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2016 Imperial College London
* Copyright 2016 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
*
* htt... |
f1429737aadf03ad089b072a0f50db86c160c0b27d9eea3d5bb0a9e8ed0c48ac | C++ | 2,564 | 80 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2016 Imperial College London
* Copyright 2016 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
*
* htt... |
b555bf8067b45ea66c78bc9f6ec02e28a5288fb75bbf502c1458d2b9371a11fa | C++ | 2,567 | 74 | #include <vector>
#include "hdf5.h"
#include "hdf5_hl.h"
#include "caffe/layers/hdf5_output_layer.hpp"
#include "caffe/util/hdf5.hpp"
namespace caffe {
template <typename Dtype>
void HDF5OutputLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
file_name_ = this->la... |
3e49e429d9103081b8889534b5843105a98a79d0bc5d5c2f44681ff87b042db8 | C++ | 2,575 | 90 | #include <boost/thread.hpp>
#include "gtest/gtest.h"
#include "caffe/common.hpp"
#include "caffe/util/benchmark.hpp"
#include "caffe/test/test_caffe_main.hpp"
namespace caffe {
const float kMillisecondsThreshold = 30;
template <typename TypeParam>
class BenchmarkTest : public MultiDeviceTest<TypeParam> {};
TYPED... |
23b8f21036c35b435ebe397bc4ff1a46de4f661412bd03dbff4e38baf114892a | C++ | 2,589 | 97 | /*
* 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... |
2d213f892cdf0954df70e1245e517ca6da0230c0527dd816f3b912c19bb6714d | C++ | 2,598 | 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... |
9a6027154b7ceacf84873c0582e7e59f191c65c4c7d86e8a85b48ea913053497 | C++ | 2,610 | 79 | /*
* 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
*
... |
77495b323d6d121706742558f238cdd9495cad538925a5ab5fa7f9da553e31fb | C++ | 2,622 | 102 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2016 Imperial College London
* Copyright 2016 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
*
* htt... |
1b16abebc37a54ee3c7048d64dff78c62734dffed5f898e49663ac6dbb513e32 | C++ | 2,648 | 81 | /*
* 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 ... |
d27e10c5cec1a81b448b58de0b8f2d9a66bc421114b52217c388646331348a62 | C++ | 2,649 | 96 | /*
* 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
*
... |
c44e62b0aae2f837ffc6c933e82ccecfb9f9cb55b82635457c14d1aae81bb635 | C++ | 2,680 | 81 | /*
* 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... |
a2236e95e64c4fb932fc85bfc78b66ac3b20a97a7c1ac59e2630dcf3fd4b8259 | C++ | 2,682 | 105 | /*
* 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... |
42ee7cec23d8ff86e8795e3703fc761898e28e5d6d68b1b1ecec707fdd8c5238 | C++ | 2,686 | 78 | #include <vector>
#include "caffe/layers/batch_reindex_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template<typename Dtype>
void BatchReindexLayer<Dtype>::Reshape(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
CHECK_EQ(1, bott... |
e24e61ec0196681327b9772309623cd53301b5b6a6ad57d7a99e0b4a83cb2255 | C++ | 2,693 | 77 | /*
* 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... |
88d9dcce4a60ac69761e7d9798cbd155282f71ef7b197c017f10422fa5fe56cb | C++ | 2,696 | 76 | /*
* 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... |
b0ecf3fe994a408518e5794a37aa3687a94d70767b0ce9afab0b7caf64b9ab89 | C++ | 2,703 | 93 | /*
* 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... |
d831dea5c926290b36cd635f4b421c65285df2c6c4ae511942bc0ce026617135 | C++ | 2,705 | 69 | #include "twistcalculator.h"
#include <cmath>
namespace {
constexpr double kTwoPi = 6.283185307179586476925286766559;
}
void TwistCalculator::configure(const QVector3D &headstageAxis, const QVector3D &commutatorAxis,
double fallbackThreshold, FallbackMode fallbackMode)
{
m_headsta... |
e1b62ecb3217c1054bc80d52ec7d995ee2f3d77f64e435af159311b077e7783a | C++ | 2,715 | 100 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2016 Imperial College London
* Copyright 2016 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
*
* htt... |
e20de1d3722a1492d20ee60b7704e91522a15fa6d35a7f6853a9975e1df220cd | C++ | 2,731 | 100 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2016 Imperial College London
* Copyright 2016 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
*
* htt... |
52c81799bf465e254082f2e175e7596301450e551941644a7eca4066b0df29aa | C++ | 2,738 | 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... |
a1a2fdc6aebf6bb6bf26e1aac74c72f9d1057f012e3fce48932c76017367cc89 | C++ | 2,739 | 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... |
8a98df6c8c5f8169dfe877fe3753ffc4b1df85e601c0b428c1eafc6fe50a2758 | C++ | 2,749 | 81 | /*
* 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... |
d77db35446459d702b9ac7a74429d6cfb47e0a63d7222eea501bb6486f0ddc7a | C++ | 2,769 | 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... |
0589351eeeeb3a362447c26c11b86c4bb72010a10bf20b90a58af4dab78c42b3 | C++ | 2,777 | 96 | /*
* 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... |
91fd05143eae44c4f1c35ef548236ce84e5b3c4560c79f2f6d092946700202f3 | C++ | 2,796 | 91 | /*
* 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... |
903ad76e8e31eadd854a1d073dc5c0cb722f65750ea723b7a4aa92dcdf2d18fc | C++ | 2,797 | 82 | /*
* 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
*
... |
92078f60cb1a46937344f7061d0f7081c68348d3f5168eff0e2c1b7a82dc9150 | C++ | 2,801 | 77 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2013-2016 Imperial College London
* Copyright 2013-2016 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
*
... |
97636cff982641e12f922fa2b360d8f884e2515ee3a0c678de3c0710bd37cf4c | C++ | 2,851 | 119 | // Predicts class scores using a trained ELM model.
//
// scores = mexElmPredict( inW, bias, outW, X );
//
// INPUT :
// inW - input weights matrix (trained model)
// bias - bias vector (trained model)
// outW - output weights matrix (trained model)
// X - samples matrix (vectors in columns)
//
// OUTPUT :
// score... |
c56d7b5c06b03a85b7c4cb25bda5598327e5151ee83a45e9daef4bdb23d54ff0 | C++ | 2,851 | 109 | /*
* 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 ... |
24f28285e6d2c5cd9ca4ff39eb21ff0411647907e1d4edb6c190c0e087282ecd | C++ | 2,870 | 96 | #include <RcppArmadillo.h>
using namespace Rcpp;
// [[Rcpp::depends(RcppArmadillo)]]
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////
//' Urgency functions
//'
//' @description ... |
b6ef60ed8ee48ddd0d6f1c0a7846fe361adb323cb3714f155fcc389ee050c93f | C++ | 2,904 | 101 | #include <algorithm>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/tanh_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
double tanh_naive(d... |
922bb6a6d340fd097cfce16a21a53e0c3e74c1a9ae20606238f2f744b8ba41a8 | C++ | 2,913 | 85 | #include <QtTest>
#include "miniscopeprotocol.h"
#include "uvcrequest.h"
using namespace UVCRequest;
// Expected values hand-computed from UVC 1.1 section 4.2: wValue carries the
// control selector in its high byte, wIndex the unit ID (high byte) and the
// VideoControl interface number (low byte). A mistake here a... |
4a9c1e1e8b09d6832284edd2fad9c6ede1cd25ff2a1e002ab2e5444d1c981593 | C++ | 2,927 | 87 | #define _SECURE_SCL 0
#define _SCL_SECURE_NO_WARNINGS
#include <iostream>
#include <fstream>
#define BOOST_DISABLE_ASSERTS
#define BOOST_UUID_RANDOM_PROVIDER_FORCE_POSIX
#ifdef PROFILE
#include "gperftools/profiler.h"
#endif
#include "version.h"
#include "delly.h"
#include "filter.h"
#include "merge.h"
#include "teg... |
16406daf51655ce18e828e5307e7c4ad77703c7d7c813f4b81817338c9283725 | C++ | 2,933 | 115 | #include <boost/bind.hpp>
#include <glog/logging.h>
#include <signal.h>
#include <csignal>
#include "caffe/util/signal_handler.h"
namespace {
static volatile sig_atomic_t got_sigint = false;
static volatile sig_atomic_t got_sighup = false;
static bool already_hooked_up = false;
void handle_signal(int signal... |
be5d5af2ab57165565ecde0a6edd2dc99609b9072eccd711faa65ea811115a0d | C++ | 2,936 | 88 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2017 Imperial College London
* Copyright 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
*
* htt... |
5bcfc869be73193e3d2d95d19892a26b6bd25bfcc782058aedde031751af0d73 | C++ | 2,939 | 94 | #include <vector>
#include "caffe/sgd_solvers.hpp"
namespace caffe {
template <typename Dtype>
void AdamSolver<Dtype>::AdamPreSolve() {
// Add the extra history entries for Adam after those from
// SGDSolver::PreSolve
const vector<Blob<Dtype>*>& net_params = this->net_->learnable_params();
for (int i = 0; i ... |
b1acfcc289ef35f8cc711d33fc5869e2c24a5862698f7de14143ac614347bc25 | C++ | 2,959 | 78 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2008-2017 Imperial College London
* Copyright 2008-2013 Daniel Rueckert, Julia Schnabel
* 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 ... |
0b88741b02e3acd76b41729b05c73a11d97e4d575c5d15b1ce0109e259a6037c | C++ | 2,971 | 83 | /*
* 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... |
13a66bd4d4ae7a46dfbcc497784404ec09c254ab872235c89856cd2141ebee22 | C++ | 2,978 | 81 | #include <vector>
#include "caffe/layers/conv_layer.hpp"
namespace caffe {
template <typename Dtype>
void ConvolutionLayer<Dtype>::compute_output_shape() {
const int* kernel_shape_data = this->kernel_shape_.cpu_data();
const int* stride_data = this->stride_.cpu_data();
const int* pad_data = this->pad_.cpu_data... |
cc9d78542580d9d813bbb4cc55d9524eec8f6ab5c344421d7bfe6653fb6bd483 | C++ | 2,984 | 85 | #include <vector>
#include "caffe/layers/log_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void LogLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
NeuronLayer<Dtype>::LayerSetUp(bottom, top);
const Dtype base ... |
0d3b1b8743a9962782164e894f90750bc3331eac6e244af2c8000e371fcfe597 | C++ | 2,987 | 112 | #include "mex.h"
#include "math.h"
#include "matrix.h"
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
int h, i, j;
int mrows1 = mxGetM(prhs[0]);
int ncols1 = mxGetN(prhs[0]);
int ngroups = mxGetM(prhs[1]);
int ncols2 = mxGetN(prhs[1]);
int numthread = mxGetScalar(prhs[2]);
int chunk... |
0ea06ea05542f4765e6854e0bc28286ec65d498f3eb1b4090a16f76a9a7714e3 | C++ | 2,988 | 88 | /*
* 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... |
47ca4ef60806447afd85311badff70c3843cb5ff68a168e87990171c82876b0c | C++ | 2,993 | 109 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2016 Imperial College London
* Copyright 2016 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
*
* htt... |
5c7ba908cf35e9739db5cd5a47a13e1ef6c6997ab63902d0a6023837f8cbcf21 | C++ | 3,013 | 109 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2016 Imperial College London
* Copyright 2016 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
*
* htt... |
0ec6345eeb4eae513144767a81cb732d68cfe135dbcfbc8237f523c81e9f9ad3 | C++ | 3,028 | 98 | /*
* 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... |
dc4ff433442af04b4f739d97beee2e18b76f4b5a2bfd9136d8acaacb3a318935 | C++ | 3,041 | 109 | #include <string>
#include <utility>
#include <vector>
#include "google/protobuf/text_format.h"
#include "gtest/gtest.h"
#include "caffe/common.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/sgd_solvers.hpp"
#include "caffe/solver.hpp"
#include "caffe/test/test_caffe_main.hpp"
using std::ostringstream;
nam... |
973b3ed4f760bf2f7c60c853936ee9540bd30e2674d273962c800fdfcaf2bcb3 | C++ | 3,044 | 105 | /*
* 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
*
... |
2f8dc0cc2bf831711fa60f86c73541b5dc267dc2d829127b9485cb58861a2b12 | C++ | 3,053 | 103 | /*
* 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
*
... |
a275b552124f4bd7724496c479fbafb0b7f5f15876a7ff1325a3d2b0879aadd5 | C++ | 3,053 | 89 | #include <cmath>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/euclidean_loss_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
template <typ... |
2544cccefbd8a5c29b38039471b76c27e4df3e1c6e3d716b48a936684fc46d1f | C++ | 3,078 | 88 | /*
* 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... |
a4a3a0b6c32ce32c5b8870be1bd477755b3a3bb7bd9a28978588842850dd8e53 | C++ | 3,110 | 94 | /*
* 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... |
a89386da88244b6f44ac3552c9fd3fa6f2e97daba9fc98ce823c6de433be9aad | C++ | 3,113 | 101 | /*
* 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
*
... |
6dbdf23ea3cc019cb753a70b40b58478192059508bca8c9c05f06ed744c536a4 | C++ | 3,124 | 113 | #ifdef USE_LMDB
#include "caffe/util/db_lmdb.hpp"
#include <sys/stat.h>
#include <string>
namespace caffe { namespace db {
void LMDB::Open(const string& source, Mode mode) {
MDB_CHECK(mdb_env_create(&mdb_env_));
if (mode == NEW) {
CHECK_EQ(mkdir(source.c_str(), 0744), 0) << "mkdir " << source << " failed";
... |
4fe27753dde7630799750a9cfb408dd0aa2abb1b31cba220774ef79443a459a9 | C++ | 3,144 | 92 | /*
* 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... |
43bd83c4fa8252aeca4465f206ce9cbe3b23d695ed0eef16a097dbd666c28bd3 | C++ | 3,145 | 84 | #include <vector>
#include "caffe/layers/deconv_layer.hpp"
namespace caffe {
template <typename Dtype>
void DeconvolutionLayer<Dtype>::compute_output_shape() {
const int* kernel_shape_data = this->kernel_shape_.cpu_data();
const int* stride_data = this->stride_.cpu_data();
const int* pad_data = this->pad_.cpu_... |
7f3fb3b8d5413df67e39c0fcb1a16cc6ebd6e3bd219ea91b955f9044c2f0450a | C++ | 3,152 | 97 | /*
* 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... |
4c8ddb549c672600ea3389ca41367c81b247e9fa90983b488d17ce5b1bb9ee72 | C++ | 3,182 | 84 | /*
* 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... |
5ce720fa90c7015c080a7f0a4bbe9bca41aa4df9497dc21d8deb6fde8626302e | C++ | 3,186 | 97 | /*
* 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... |
edeff4694e2c0ae5123d947493742d8b19911c1d849e744a891ffc56cb4f70d3 | C++ | 3,195 | 98 | /*
* 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
*
... |
343fc9d64a789df51ca7da964358d5f6fbbb046bae0725dd169899a21e311d06 | C++ | 3,217 | 83 | /*
* 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... |
5172a90282376edd3ae9cfbc99be621c2f142a4e26c54e2e187736eee4563c4b | C++ | 3,220 | 108 | /*
Copyright (C) 2025, Oak Ridge National Laboratory
Copyright (C) 2021, Anand Seethepalli and Larry York
Copyright (C) 2020, Courtesy of Noble Research Institute, LLC
File: main.cpp
Authors:
Anand Seethepalli (seethepallia@ornl.gov)
Larry York (yorklm@ornl.gov)
This file is part of RhizoVision Explorer.
RhizoVisio... |
2adcaca70ad938dad916a1660c32f81fd6b8ab0999c7ebcf1823629201eb8a4e | C++ | 3,256 | 101 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2017 Imperial College London
*
* 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
*
* http://www.apache.org/licenses/LICE... |
4615f4900e332b79e71c6af53cc1af82c3a7a20f1b724622fcc86330c5d42032 | C++ | 3,258 | 119 | #include <boost/thread.hpp>
#include <map>
#include <string>
#include <vector>
#include "caffe/common.hpp"
#include "caffe/data_reader.hpp"
#include "caffe/layers/data_layer.hpp"
#include "caffe/proto/caffe.pb.h"
namespace caffe {
using boost::weak_ptr;
map<const string, weak_ptr<DataReader::Body> > DataReader::bod... |
2e09b65d0c4be3d5f89a7b642b84499cf69208fe9634444ffa40fef3fb54c2a3 | C++ | 3,276 | 98 | #include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/threshold_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
namespace caffe {
template <typename TypeParam>
class ThresholdLayerTest : public MultiDeviceTest<TypePa... |
35394f746b4590d701b0893c4bdf218820975a84a90fc4d744a0ea17b136b1b1 | C++ | 3,284 | 91 | /*
* 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... |
3a306c1b0087fe3e3695e8e2e3e8ceeea5acf53cf2afcc1c47a8f69e81052d40 | C++ | 3,302 | 100 | /*
* 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 ... |
aaab7fac6bfcef8c4f23edf770799d69fc4710e29b0fc3c1853ab5bc236aaa0b | C++ | 3,310 | 157 | #include "caffe/common.hpp"
#include "caffe/syncedmem.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
SyncedMemory::~SyncedMemory() {
if (cpu_ptr_ && own_cpu_data_) {
CaffeFreeHost(cpu_ptr_, cpu_malloc_use_cuda_);
}
#ifndef CPU_ONLY
if (gpu_ptr_ && own_gpu_data_) {
int initial_device;
... |
0756d06038bf31c2d0e9ad71351b9451b7ee757417148370c19b90c9cf63db1d | C++ | 3,346 | 101 | /*
* 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 ... |
27caf6ab96db9b6c3a152fe7bc7b5d01deaef9f6ae5ca2ca2999d91bdd68f985 | C++ | 3,351 | 104 | /*
* 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... |
ae46edb631b86bbf2c0edd2030b54f46c4a115ecb2ac654e9dc50e8a1cf80194 | C++ | 3,352 | 93 | /*
* 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... |
fc8de9f828068428d5e539135a045a6087b774869d1160be31e5ba7d3879f26b | C++ | 3,352 | 100 | /*
* 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 ... |
886737ed9eae6556cf22a175d2bebb2a29d3bc950395dba837409c96e5a5b1c9 | C++ | 3,363 | 105 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2008-2017 Imperial College London
* Copyright 2008-2013 Daniel Rueckert, Julia Schnabel
* 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 ... |
be2dfe51d0651f36f43dc8d3665091c4649eb668e18b1b7326e39635dd0e0436 | C++ | 3,367 | 89 | /*
* 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... |
049dc7aa592684f694b040cc111e854a6df8db5a71919a573651f73018b4c0b9 | C++ | 3,375 | 101 | #include <algorithm>
#include <functional>
#include <utility>
#include <vector>
#include "caffe/layers/argmax_layer.hpp"
namespace caffe {
template <typename Dtype>
void ArgMaxLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
const ArgMaxParameter& argmax_param =... |
df47c93ff4355b1292869d8e92f2ffea7ee7c021c5214792cbdf49b013187858 | C++ | 3,431 | 116 | /*
* 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... |
0385cb58d2616b43c51e2b28625c86f9ea9e0c170f78379ca9d8df9b33545419 | C++ | 3,474 | 103 | /*
* 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... |
6628a816994f1a412b45fad2f4a829fa2706f0ccffdbdf8dac3d9693fc6c7b3f | C++ | 3,502 | 139 | // Trains an ELM model on the provided dataset.
//
// [inW bias outW] = mexElmTrain( X, Y [, nhn, C ] );
//
// INPUT :
// X - samples matrix (samples in columns)
// Y - labels vector
// nhn - number of hidden neurons (default: dims / 2)
// C - regularization parameter (default: 1)
//
// OUTPUT :
// inW - output we... |
47980cb8c98796f3c09f72005045dc51ed345383897e12a1238d276d33d1b493 | C++ | 3,519 | 107 | #include <algorithm>
#include <cmath>
#include <vector>
#include "caffe/layers/infogain_loss_layer.hpp"
#include "caffe/util/io.hpp"
namespace caffe {
template <typename Dtype>
void InfogainLossLayer<Dtype>::LayerSetUp(
const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) {
LossLayer<Dtype>::La... |
2cdefd3da427f0f7667d9f880159420e28fa7945878a142b6ed10ec53ca364cf | C++ | 3,523 | 123 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2008-2015 Imperial College London
*
* 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
*
* http://www.apache.org/licenses... |
7322e83f80a64fae714816d422b084083abfd0b857a54f2c99c4e1b28178d1ff | C++ | 3,523 | 118 | #include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/batch_reindex_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
template<typename TypeParam>
cl... |
3b704aff041a402ea6d3c5cd9c9e0b2ecc10aa14fc00b05dbc72567a6fecf9cc | C++ | 3,530 | 95 | #include <algorithm>
#include <vector>
#include "caffe/layers/softmax_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void SoftmaxLayer<Dtype>::Reshape(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
softmax_axis_ =
bottom[0]->Canon... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.