sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
d3cb8162cc46a081560dfd0b5792d176f5f2a45c8b543d23988523d709f23c1d | C++ | 9,268 | 246 | /*
* 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... |
e4720b5bcb1d7ab1d21aa3a0436206dcd2eb42a2022fb7702ff2ceb767ed4673 | C++ | 9,272 | 234 | /*
* 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... |
4a30be4e45942df62078a6b3d0bd41cf58bd195e720676ed42ebe216f8121ad6 | C++ | 9,291 | 234 | /*
* 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... |
34b3b6a42d6a559dda52e0e3f14e9bd104cc6d6756bd479795eb995b9494efe0 | C++ | 9,296 | 234 | /*
* 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... |
e1e7cc3e9e87dae73a325f7b8858ab33e21b4f8723c8374c04abdc7e63d274be | C++ | 9,304 | 281 | /*
* 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
*
... |
2f5ab24c634248585363d3b6deb5c68cd407a7c4dd4955adee4f80ef0c7d8164 | C++ | 9,318 | 286 | /*
* 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... |
e7ae3935f72afc192d2db9b12c45a74d8a25dc116d3064a92bf4a33efd651d5f | C++ | 9,341 | 280 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2008-2016 Imperial College London
* Copyright 2008-2016 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 ... |
1696ab64b2218ec1cb471f1966ad94b60fef7c2865174d126d01aedfa4802271 | C++ | 9,436 | 298 | /*
* 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
*
... |
794e9390d76b568c97c0637e127ca6c593f4f9ac2ca1a6a9c4e0fea32acd6bb3 | C++ | 9,447 | 245 | /*
* 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 ... |
033bcd035a019ac03bdfd16ff3cd77020eabfbdc1fb4dbaa8ac1d721c4a16d33 | C++ | 9,476 | 234 | #include <vector>
#include "caffe/util/im2col.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
// Function uses casting from int to unsigned to compare if value of
// parameter a is greater or equal to zero and lower than value of
// parameter b. The b parameter is of type signed and is always positiv... |
68cccf5bf918b8eaeb8c940617d9cdfb5fbaab274044fa7d06d253f8efff4af7 | C++ | 9,480 | 327 | /*
* 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... |
866f6caa4d3fdff87f68af2cae31f8101ebff4180f4509e12bad28f9b08523e7 | C++ | 9,493 | 239 | #include <algorithm>
#include <vector>
#include "caffe/layers/batch_norm_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void BatchNormLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
BatchNormParameter param = thi... |
9c281a041400cdd9475b296bf499f1c20f603931fbfc158ba1397ff0fabe5a9e | C++ | 9,521 | 261 | /*
* 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... |
c613bea6e8bb61b732e3b174c81d4cf5bf2720b09cac3b97a9d846e85bcb8ae1 | C++ | 9,560 | 269 | /*
* 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
*
... |
e734dc0b68a781a41fa24ed2c1d740eeeb850e09cde9dff114c72c7a74b5ff22 | C++ | 9,598 | 265 | #include "uvccontrolmac.h"
#include <QDebug>
#include <QThread>
#include <functional>
#include <CoreFoundation/CoreFoundation.h>
#include <IOKit/IOKitLib.h>
#include <IOKit/IOCFPlugIn.h>
#include <IOKit/usb/IOUSBLib.h>
#include <IOKit/usb/USBSpec.h>
// The interface typedef behind the opaque handle in the header.
u... |
35fd5d00ce8b1d971082d13346c1c4da3a3a4d41406ac43c609108d09a760450 | C++ | 9,636 | 233 | /*
* 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... |
b03633ecae2f67ef53032b1164b2e6807cd5cec89bedbacc7aed71042d40a02d | C++ | 9,649 | 296 | #include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/reduction_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
template <typename TypeParam>
class... |
d46bf8376b387faa5fe1986c513d7af8699ecf4c2be4fd1eacfdc26ff4d0a4ad | C++ | 9,678 | 301 | /*
* 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
*
... |
69f61780dff6f675b8dc58055ed77aea1bd275104217d8a36ed4894bd8fae466 | C++ | 9,683 | 266 | /*
* 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... |
65ba5e47bcb508748e21e1959d771a300772af6f6340fcd6a39774b404ae1f39 | C++ | 9,701 | 301 | #include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/test/test_caffe_main.hpp"
namespace caffe {
template <typename Dtype>
class BlobSimpleTest : public ::testing::Test {
protected:
BlobSimpleTest()
: blob_(new Blob<Dt... |
85e79ad973549e38651691337d98518f5da1eb9205dc767024e7dc07fab91f65 | C++ | 9,743 | 232 | /*
* 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... |
b9693919031a75b4fb7182f1bf323c8d2293b26e7335a1dafc1763ca8221e1c5 | C++ | 9,766 | 282 | /*
* 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... |
1ccd3ab8115f2f4575ef7810b15ce2dc4870224fc75ac63d15358d4288c3254d | C++ | 9,778 | 294 | /*
* 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... |
87c239929e18a63487738ee89f6026ad18956f8247c2e6868e8de2da4922bd5d | C++ | 9,792 | 289 | /*
* 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... |
c5dd785c88e1b2e2a84c08926c537accaa2acc607660b922df196313d45f8fd8 | C++ | 9,854 | 303 | /*
* 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... |
e1a63469da8316d7b3081a63f0571cacf6f156d065c54a08c558c0f8ccd9ea63 | C++ | 9,888 | 258 | /*=========================================================================
Library : Image Registration Toolkit (IRTK)
Module : $Id$
Copyright : Imperial College, Department of Computing
Visual Information Processing (VIP), 2008 onwards
Date : $Date$
Version : $Revision$
Changes ... |
5ce95ab6cdb6be56a267b25ec7b7905be24f2b56a4ec3157616823a0bc81615a | C++ | 9,927 | 298 | /*
* 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... |
22935861db79bbe167bdeada9eebebe531e7a87f8cbd698dbc313b687c4dde66 | C++ | 9,928 | 270 | /*
* 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... |
562b95da13bb0196c75464c142268bf0b618152ef8afb8726b7e5436609dc8c7 | C++ | 9,956 | 279 | #include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/reshape_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
template <typename TypeParam>
class R... |
cdb437e9b5ba88e7ef2de4f8bd12c294ca70311fc17598048a69553cf01a572e | C++ | 10,059 | 283 | /*
* 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... |
26360dfea72561da67651516aeedb35c941f833c3e7b4f191fcbc22be06ed824 | C++ | 10,105 | 372 | /*
* 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... |
3cd25e57e1875ba88fd2c028058ad8a2bc3e14e05ec79a67c235cae84d141ee2 | C++ | 10,115 | 268 | #ifdef USE_CUDNN
#include <algorithm>
#include <vector>
#include "caffe/layers/cudnn_conv_layer.hpp"
namespace caffe {
// Set to three for the benefit of the backward pass, which
// can use separate streams for calculating the gradient w.r.t.
// bias, filter weights, and bottom data for each group independently
#def... |
247cd55b8020c310803a0a04855747eb8060c3fc199cacaea03294d4669bdb7d | C++ | 10,160 | 245 | /*
* 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... |
b47de506599f22d32621001ccd19745f176dd64399e74a4c07613b7bda8507a0 | C++ | 10,167 | 375 | #include <boost/math/special_functions/next.hpp>
#include <boost/random.hpp>
#include <limits>
#include "caffe/common.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/util/rng.hpp"
namespace caffe {
template<>
void caffe_cpu_gemm<float>(const CBLAS_TRANSPOSE TransA,
const CBLAS_TRANSPOSE TransB, co... |
3538a2a5480adfb957baad7c68310210b2a623e2e4ca72f509bff688edf329d7 | C++ | 10,236 | 249 | #include <QtTest>
#include <QDirIterator>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include "configvalidator.h"
// User-config schema validation and key migration.
//
// Policy under test (lab decision, July 2026): validation warns, never
// blocks; extra keys are always allowed; deprecat... |
4776f98645c8abaea30010dbbd1fcc1580498821e9ad8eaefb5f4ab91135f98d | C++ | 10,253 | 340 | /*
* 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... |
5f9ac6bbf949d27271a773f53eac49ee2b876ab9dbcdc1028a2682836cc93b10 | C++ | 10,291 | 321 | /*
* 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 ... |
a191111c70dd08cad3898cd21fda23c83a35871e7569a731bb148a4bc4b6c2e8 | C++ | 10,307 | 295 | #include "behaviortrackerworker.h"
#include <QObject>
#include <QAtomicInt>
#include <QVector>
#include <QMap>
#include <QDebug>
#include <QString>
#include <QGuiApplication>
#include <QThread>
#include <QDir>
#ifdef USE_PYTHON
#undef slots
#include <Python.h>
#include <numpy/arrayobject.h>
#define slots
#endif
... |
703b305f2a9a59465ef121203ee6a4c19d50a1a90a18510c0e00b84bc04ac5c8 | C++ | 10,332 | 295 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2013-2015 Imperial College London
* Copyright 2013-2015 Stefan Pszczolkowski Parraguez, 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 obt... |
a16105ec9b930b965604b3e90b91ab00615733f9cb42b94834d52d03123d25a5 | C++ | 10,341 | 272 | /*
* 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... |
8d4b885f951c4cf7fa8d30151858eac6fd5b96d583ca7954d0294e9f2ea99ad4 | C++ | 10,425 | 295 | #include <utility>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/argmax_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
namespace caffe {
template <typename Dtype>
class ArgMaxLayerTest : public CPUDeviceTest... |
de7eb64fcae779e18a8d069f05d17bb826be84ac643d640b0a8660bbf867154b | C++ | 10,430 | 283 | #include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/crop_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
template <typename TypeParam>
class Crop... |
939255b1ed5daef1f8b4e225d815ab903c9bbb06bf93b36c1bd9566fb738b6f6 | C++ | 10,434 | 351 | /*
* 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... |
06c2563931b25d226f37adf034b6bc049b729557e278dc3da5c29c80da314ee7 | C++ | 10,453 | 323 | /*
* 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... |
856d49800f222816abfe92e404e39fae1a14bb7909eb1f95358454448720efd9 | C++ | 10,464 | 245 | /*
* 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... |
3969c226455d10b12052c0634cc881b3c3bf000751658e1806ff199d9f308a86 | C++ | 10,520 | 301 | /*
* 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... |
f754648c9fdf0f5295afb121f32a3b0b1b2cb9b081624bd942d830240424c716 | C++ | 10,550 | 273 | /*
* 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... |
101e9fd165991cc667ed88b0da458b66db398f242181606443de06b4937bd2b1 | C++ | 10,567 | 311 | /*
* 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
*
... |
7533a4da0e10b194e5ad83e955dfd1d84d47428e8549555474826d18a7f35374 | C++ | 10,573 | 280 | /*
* 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
*
... |
9ce7827ca3f1e42b37e0f3be603d2972e57a1ac1aa13bd49f85f4e4cdd835ab4 | C++ | 10,614 | 333 | /*
* 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
*
... |
3d9158fa65687714bc87a71a2377158e69b1ae253b3c251ea1e837f6ef774a1d | C++ | 10,643 | 324 | #include <boost/thread.hpp>
#include <glog/logging.h>
#include <cmath>
#include <cstdio>
#include <ctime>
#include "caffe/common.hpp"
#include "caffe/util/rng.hpp"
namespace caffe {
// Make sure each thread can have different values.
static boost::thread_specific_ptr<Caffe> thread_instance_;
Caffe& Caffe::Get() {
... |
d019016facaaa5815b7454e62c87ad363e55507419e748661c2e7bafbe2a81d6 | C++ | 10,666 | 324 | /*
* 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... |
e7bd7244682f2af6c1d1fd6b856f9e07140150c7696b4f298af7f84393ae31c5 | C++ | 10,668 | 288 | #include <cstring>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/lstm_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
template <typename Ty... |
4403e7beb13320e85a4ec49f2bfbea31b5da807d586e7bdc30fe839da1a22bc5 | C++ | 10,680 | 256 | /*
* 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
*
... |
ae4ab734667a4c04d0914b96da802821ff5ddb6124bac24bcfe16f2ecfbaeefe | C++ | 10,694 | 257 | /*
* 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... |
e64ddc405d450dfdeb6a8d505d4cc92d42ab46bef24ee55ce03c267a7724a55f | C++ | 10,701 | 269 | /*
* 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... |
638a90c9e74117983ed2134cd4b7598ee8f862ecab78a050381b574f9b05e3b1 | C++ | 10,741 | 264 | /*
* 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... |
4e3c4c4f27b2815acee337a74ca1a222cf86acf6f28abf399ec1292f97e4ccb1 | C++ | 10,767 | 290 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2008-2016 Imperial College London
* Copyright 2008-2013 Daniel Rueckert, Julia Schnabel
* 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 ... |
e3d0eea6826e7e1d236fee30d807eeebfca2d98c62da43eb19409b3b450afacb | C++ | 10,772 | 291 | /*
* 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... |
eef5bef033dfe05b7341c9fe1e676f6eb3ab51865f81370e90da0b8251cc3b6b | C++ | 10,832 | 257 | #include <vector>
#include "caffe/layers/lrn_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void LRNLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
size_ = this->layer_param_.lrn_param().local_size();
CHECK_EQ(... |
357587e8af79ac13016b5a0b2e26d6d51eed2c60e411876aeda95471d515631b | C++ | 10,857 | 289 | /*
* 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 ... |
2f0f50b6f292fc3b060775718c34fcf2ead9f35c2d894faf1a0664f05ac37130 | C++ | 10,909 | 273 | #include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/highgui/highgui_c.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <fstream> // NOLINT(readability/streams)
#include <iostream> // NOLINT(readability/streams)
#include <string>
#include <utility>
#include <vector>
#include <c... |
0339bea5213e5b44563a25a5b29f7198d19825148c9a3fd2163105ce8a06f212 | C++ | 10,973 | 355 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2008-2016 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... |
ba7fa73c1f448aef999c29266234fb0f447dc59f152f310c76df45b7bd40d01a | C++ | 11,007 | 311 | /*
* 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
*
... |
f40ac2ec868f2685bf80d00aa0e6d675565912a158a0af57fa30301b332db664 | C++ | 11,164 | 242 | /*
* Medical Image Registration ToolKit (MIRTK) LBFGS Library
*
* Copyright 2013-2015 Imperial College London
* Copyright 2013-2015 Andreas Schuh
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in ... |
43a392912c686c9e56909be83644ed7277733a5acca7d0be88a24da36e424a5b | C++ | 11,245 | 302 | /*
* 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... |
f7306aea7a0ae844973fa98c8eeeb8b4981f21be4fec22f3ef92e6a62f3cdc63 | C++ | 11,336 | 344 | #ifdef USE_OPENCV
#include <string>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/data_transformer.hpp"
#include "caffe/filler.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/util/io.hpp"
#include "caffe/test/test_caffe_main.hpp"
namespace ca... |
57e8a7832b7ac89d198e1054ebdf113a4eadaa1ef44628225a8490976eaaad4f | C++ | 11,430 | 299 | #ifdef USE_OPENCV
#include <opencv2/core/core.hpp>
#endif // USE_OPENCV
#include <string>
#include <vector>
#include "caffe/filler.hpp"
#include "caffe/layers/memory_data_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
namespace caffe {
template <typename TypeParam>
class MemoryDataLayerTest : public MultiDe... |
608b8cceb0dbe54d9a1cb229d091dead709f1d11963765b618ab4198aad89bb1 | C++ | 11,494 | 386 | /*
* 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
*
... |
1f701e9a38ab620e726db378d6ded684061678966d1cb389a959db10470b1b6e | C++ | 11,510 | 384 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2011, 2016 Imperial College London
* Copyright 2011 Paul Aljabar
*
* 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
*... |
299ae85518d28455c2dde59f2afd91b840766f9b00d7c2c6ed9d5096fed37245 | C++ | 11,531 | 295 | #include <string>
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layer.hpp"
#include "caffe/layers/recurrent_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void RecurrentLayer<Dtype>::LayerSetUp(cons... |
ae37809d01d52f3aecad12225e2cf4e2a84d2846d72a2a1aa74e0fb5dfc7f4e8 | C++ | 11,532 | 316 | #include <algorithm>
#include <cfloat>
#include <vector>
#include "caffe/layers/pooling_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
using std::min;
using std::max;
template <typename Dtype>
void PoolingLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dty... |
d3fd992a695e54c64f2f51891b62bd84ffe5f15528f06cde246eaa3f62f02037 | C++ | 11,555 | 312 | /*
* 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... |
e51a37d75fcc60f633d23fad5eba0b3997801002b8553cdb21043c0729493985 | C++ | 11,703 | 287 | /*
* 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... |
ccd56a5d18b51911a1c5096d423968731a3b994b05a01649d54a326ed0fab976 | C++ | 11,754 | 336 | #include <cfloat>
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/accuracy_layer.hpp"
#include "caffe/util/rng.hpp"
#include "caffe/test/test_caffe_main.hpp"
namespace caffe {
template <typename Dtype>
class Accurac... |
6d3e11fe2ea6ce739ea996562ce5da9310201c00babcec0a9b5af4e1f061f50e | C++ | 11,776 | 279 | /*
* 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... |
cb4a04860b58dd86f660c7cedbea4bf2dd9b5249a9634d286badc91cce8cf9e1 | C++ | 11,787 | 300 | /*
* 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 ... |
50993a7a6f2525eebb151c399f9719cdc6e80944617620bc3aeac1535fcb2b8c | C++ | 11,890 | 323 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2019 Imperial College London
* Copyright 2019 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... |
617bf22d0e2cbfd8bf233813c0698edf0875d5b69cf4eeeb4d3645429a20dc86 | C++ | 11,892 | 368 | /*
* 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... |
2fe23b7aeb9b2891a8f9775ad8acf42225851290801b0b3ee01f40b194ffac3e | C++ | 11,919 | 292 | /*
* 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
*
... |
97bd8dba986ba70d661cd80b0385b3b390d51bd6100a0ca045b70ef363f8fcaa | C++ | 11,998 | 358 | /*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2020 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*... |
9bcba6705bf8a5b9829bbcd58b509b93b4c3ed8a7c76c534e72d45fc81ba80e3 | C++ | 12,009 | 323 | // Regression tests for DataSaver configuration handling:
// - setHeadOrientationConfig once assigned the filter flag over the enable
// flag (copy-paste bug), silently suppressing the headOrientation.csv
// whenever filterBadData was false.
// - The reserved "date"/"time" directoryStructure tokens were matched... |
74367397ba2ae63fc892eb0dd675a4150bde1c2959f5d8b708c9ee0ce4e46e2b | C++ | 12,096 | 298 | /*
* 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... |
026f2754f0720e051e100da05ad8b1935802e079b4341d3ceb53f6ecaf75e023 | C++ | 12,161 | 304 | #include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/deconv_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
// Since ConvolutionLayerTest checks t... |
a7b3141bdcf76ff4177223eb494063dc5ed83525cd38f36bddb8b18d89dee11e | C++ | 12,215 | 339 | /*
* 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
*
... |
ebe9a522f627858c50464d03abc4ee6c01fa861770765428d95b03dafb8de369 | C++ | 12,221 | 291 | #include "videostreambase.h"
#include <QAtomicInt>
#include <QCoreApplication>
#include <QDebug>
#include <QSemaphore>
#include <QThread>
#include <opencv2/imgproc.hpp>
using namespace MiniscopeProtocol;
Q_LOGGING_CATEGORY(msDiag, "miniscope.diag")
VideoStreamBase::VideoStreamBase(QObject *parent, int width, int h... |
e939b5523e37a9edac24d6217d5b41bb5ec38d6be8ff6c2fc7ae8a24633d7ed6 | C++ | 12,228 | 312 | /*
* 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... |
c1da81dc7d00278056f1108c551bc1007b547b9bfced0060c6877d490805074d | C++ | 12,237 | 359 | /*
* 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
*
... |
de7c924c0a6e0bec4075af9120e0ff550110a479a5e428ebec8a76a95b9eba07 | C++ | 12,250 | 373 | /*
* 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
*
... |
22b030811bd122fdf65f7a67df90e91418170bd842e4f94569236335664a00da | C++ | 12,353 | 334 | /*
* 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... |
4518f392a2669c21c11e579c2fd6550e61f099f38658d3cb7280e78696ee1f85 | C++ | 12,419 | 434 | /*
* 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 ... |
5c3da9b9b9ed2550e9d9e69ae51d862c203ab7db6ef2989c8c548e2e84be88a6 | C++ | 12,474 | 299 | #include "commutator.h"
#include <QSerialPort>
#include <QSerialPortInfo>
#include <QJsonArray>
#include <QTimer>
#include <cmath>
namespace {
// Turn commands smaller than this serialize to "0.000000" in the wire format
// below, so they are not worth a write. The device integrates turn commands, so
// skipping th... |
f6a0d099cba2a0578a6070ae87a20ba0f17b296090263ecf3f0e6842d4189e5f | C++ | 12,622 | 355 | /*
* 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... |
7efad2cdaddb3e9e4987507290894c3997edf542e8b0416555215898001228ee | C++ | 12,627 | 378 | /*
* 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
*
... |
e076a59ddd8164a86493d2d6a32e95c60b199794c7acccb3c9b7d0c0b917a0fc | C++ | 12,672 | 363 | /*
* 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... |
13637fde2d175f6a18330b4a3fd87362c6231c6b10c2ec5c9e852ef6a7b29c04 | C++ | 12,732 | 352 | #include <string>
#include <vector>
#include "caffe/sgd_solvers.hpp"
#include "caffe/util/hdf5.hpp"
#include "caffe/util/io.hpp"
#include "caffe/util/upgrade_proto.hpp"
namespace caffe {
// Return the current learning rate. The currently implemented learning rate
// policies are as follows:
// - fixed: always ret... |
9ad3b682cbb26da94432eba07b6b14426c44d5ad16486cda218eb82b188a8d76 | C++ | 12,890 | 443 | #ifndef CPU_ONLY
#include <cuda_runtime.h>
#endif
#include <glog/logging.h>
#include <stdio.h>
#include <sstream>
#include <string>
#include <vector>
#include "boost/thread.hpp"
#include "caffe/caffe.hpp"
#include "caffe/parallel.hpp"
namespace caffe {
enum Op {
copy,
replace_cpu,
replace_gpu,
replace_cpu_d... |
2df23f8e72e4fa7e68522150d25799d8b5938435ba0e355928cdd4c6f5855a45 | C++ | 12,902 | 331 | /*
* 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
*
... |
5503be35e77802a2b0346f9abbf27b30e583b18f2138668eee424a1a7787dd1b | C++ | 12,945 | 368 | /*
* 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
*
... |
9454a5a2bf63538c7ca1fe10314750228915b916d965336b7fc651b6ae6e3256 | C++ | 12,970 | 361 | /*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.