sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
593fa967eb24b01f2866b919a2efad3b6b50952794acd4bf8806aa54d4fe0aab
C++
28,043
890
//*********************************************************************************************** // // Copyright (c) 1993-1997 Axon Instruments. // All rights reserved. // Permission is granted to freely to use, modify and copy the code in this file. // //************************************************...
0eff39940bf7500eec5e5cd32a293022fe5475908795878af3beb1ebf95a773b
C++
28,099
873
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software F...
31a472126fd3a2cc9cec676e72e0c83d01f1258f346038fc23835e615ed1abbd
C++
28,268
1,027
/* Portions of this code are under: Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. */ #include "hip/hip_runtime.h" #include "src/acc/settings.h" #include "src/acc/hip/hip_kernels/hip_device_utils.h" #include "src/acc/hip/hip_kernels/helper.h" #include "src/acc/hip/hip_settings.h" #include <hip...
0bb205b9ece1cf300b46cd52f969e8a667220d9605acd679dbdadffa5e39fe2c
C++
28,297
747
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/AdaptivePooling.h> #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/cpu/vec/vec.h> #include <ATen/cpu/vec/functional.h> #include <ATen/native/Pool.h> #include <ATen/native/cpu/utils.h> #include <c10/util/...
4481cc4f73920b49c7e4df9f381ab56a03dc7cf5143107414f3626fcdd18c2dd
C++
28,298
616
#include "../dep/laynii_lib.h" #include <sstream> int show_help(void) { printf( "LN2_SNAPCAST: Create snapshots of isometric projections over the cardinal axes.\n" " It is intended to be used as a fast way to visualize subdural and\n" " leptomeningeal brain surfaces.\n" "\...
54278d922c6c0218a7ddf138b4b0e597a0926f9134f6f751fccfb21880e648fc
C++
28,365
1,155
// This is copy-pasted (with modification) from the following llvm file: // - https://github.com/llvm/llvm-project/blob/main/libcxx/include/complex // // -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM E...
583e258bc8beec688e7084a0665da2b7106ea59afe27e744372b07d6ba8f4d1d
C++
28,456
595
// Copyright (c) 2018 MathInf GmbH, Thomas Viehmann // Licensed under the BSD-3-Clause license // This is the CPU implementation of the Connectionist Temporal Loss. // We mostly follow Graves. // 1. Graves et al.: http://www.cs.toronto.edu/~graves/icml_2006.pdf // We use the equations from above link, but note that [1]...
0d3c13276b55c1a7007c5639b299474b976fbf5e3f3a19e47b7e2b0481246a20
C++
28,538
729
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/cpu/vec/vec.h> #include <ATen/native/Padding.h> #include <ATen/native/cpu/utils.h> #include <c10/util/irange.h> namespace at::native { namespace { struct PaddingParams { in...
0d5e73b8cb28c45a335558e9ff4ece0aeb89487062ca16e77273ae5a2d5b49e5
C++
28,560
668
#include <vector> #include <algorithm> #include "../dep/laynii_lib.h" int show_help(void) { printf( "LN2_LLOYD: Lloyd's algorithm.\n" "\n" "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" "!! BEWARE! WORK IN PROGRESS... USE WITH CAUTION !!\n" "!!!!!!!!!!!!!!!!!!!!!!!!...
2e250ec5c9c1c114400b4975c3288b260a82d7a93e5eb00993f490133226b9b1
C++
28,698
764
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/Context.h> #include <ATen/core/Tensor.h> #include <ATen/cpp_custom_type_hack.h> #include <ATen/native/mkldnn/MKLDNNCommon.h> #include <ATen/native/quantized/PackedParams.h> #include <ATen/native/quantized/cpu/ACLUtils.h> #include <ATen/native/quantized/cpu/Onedn...
33c716b7dd49b7d6f41831ecacb9f4ec546d549e729a9cf6a8441339c6535133
C++
28,706
706
#include <ATen/core/CachingHostAllocator.h> #include <ATen/cuda/CUDAContextLight.h> #include <ATen/cuda/CUDAGeneratorImpl.h> #include <ATen/cuda/CUDAGraph.h> #include <ATen/cuda/CUDAGraphsUtils.cuh> #include <ATen/cuda/Exceptions.h> #include <ATen/cuda/MemPool.h> #include <ATen/Functions.h> #include <c10/cuda/CUDAAlloc...
8cbdcc3ca6fb337355d6d5ddcbc35f4bbbf0c096210427f4f466a82fddba1af6
C++
28,714
923
#include "../libstfnum/fit.h" #include "../libstfnum/funclib.h" #include <gtest/gtest.h> #include <cmath> #include <fstream> /* global variables to define our data */ const static int tmax = 100; /* length of data in ms */ const static float dt = 1/100.0; /* sampling interval of data in ms */ //const static double ...
d08ca3188948c978b5d67c621b273445f6398abd3b2e9fbad71af4fcbc09ae79
C++
28,779
1,478
# include <cmath> # include <cstdlib> # include <ctime> # include <iostream> using namespace std; # include "brent.hpp" namespace brent{ //****************************************************************************80 double glomin ( double a, double b, double c, double m, double e, double t, func_base& f, doubl...
d2ce783970116fff670474a617ca93cc1bb71bfe3d3805a3d7ac5ef30ebc08ca
C++
28,899
1,117
/*************************************************************************** * * Author: "Jasenko Zivanov" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foun...
38242c17ae4b6aab487f7283b2e43e8ed79aa67c8cd00e2bb35935329ea205d5
C++
28,905
675
// Copyright (c) Facebook, Inc. and its affiliates. // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include <ATen/functorch/BatchRulesHelper.h> #include <ATen/functorch/PlumbingHelper.h> #include <ATen/Opera...
40c0b24ebb6001b20aaee694fb139d5034813101bbd76cd652f2094325f66351
C++
29,044
694
// Copyright (c) Facebook, Inc. and its affiliates. // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include <ATen/functorch/BatchRulesHelper.h> #include <utility> #include <ATen/Operators.h> #include <ATen/...
a93d322ababb478f3ee9e88212bcad7c7c4d06550848ff44a30de0179228768f
C++
29,204
888
#include <unistd.h> #include <string.h> #include <fstream> #include <src/args.h> #include <src/image.h> #include <src/fftw.h> #include <src/complex.h> #include <src/metadata_table.h> #include <src/backprojector.h> #include <src/euler.h> #include <src/jaz/single_particle/image_log.h> #include <src/jaz/single_particle/...
31420664a58682c659a4fac25a716f9a18f25b122980063c75fe6973fe0e7886
C++
29,406
847
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/Activation.h> #include <ATen/core/Tensor.h> #include <ATen/Config.h> #include <ATen/Dispatch.h> #include <ATen/TensorIterator.h> #include <ATen/TensorOperators.h> #include <ATen/OpMathType.h> #include <ATen/ScalarOps.h> #if defined(C10_MOBILE) && defined...
f3f9c8e8c132442e7a764ab954c0954750a63da85330c0726fd3840c4ae9c4cf
C++
29,685
1,068
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <algorithm> #include <cfloat> #include <chrono> #include <cmath> #include <functional> #incl...
dcb62b9e09c00da427009b990976942410909a4da9e51b9768376348ceb35736
C++
29,739
896
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software F...
7b3ff978bc462bdec66eab867fd32ee66af350c7805cdbe0efcdd3d3daef5223
C++
30,015
952
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/TensorUtils.h> #include <ATen/native/ConvUtils.h> #include <ATen/native/CPUBlas.h> #include <ATen/native/vol2col.h> #include <utility> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include...
c5c91da9ed9f30e50f783722044ca8a2c62d774e3da9112257ac05f3da88103a
C++
30,078
1,223
#include "defocus_refinement.h" #include "aberration_fit.h" #include <src/jaz/tomography/projection/projection.h> #include <src/jaz/tomography/projection/Fourier_backprojection.h> #include <src/jaz/tomography/reconstruction.h> #include <src/jaz/image/centering.h> #include <src/jaz/image/padding.h> #include <src/jaz/tom...
251023f2dcf3a3fac9104e225bad696d5ae76b32ac01cc850ba6d626221d2857
C++
30,326
951
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software F...
34ef532b7e794164872d6a6c51c6b971f7e85633023ac2aae2a73fa9b33c81ab
C++
30,360
887
// This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // This program is distributed in the hope that it will be use...
78967ba2bf85062f546b6ef3808a8c01b4b2a14850c256ce4443c1c41413b37d
C++
30,856
836
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software F...
8cdefee3f54edbcdcc1ce4809218c3e9158a99c14b930e7b9279041d4b0bcc72
C++
31,041
1,077
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <cmath> #include <cstddef> #include <cstdlib> #include <cpuinfo.h> #include <gtest/gtest.h>...
0be0cdeb0ac519051c34ba247b5dd4bec2611de06605a5de1b6e13c3e6fc4629
C++
31,281
782
#include <cstdint> #include <limits> #include <c10/util/typeid.h> #include <c10/util/Exception.h> #include <c10/util/SmallVector.h> #include <c10/core/Scalar.h> #include <c10/core/ScalarType.h> #define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/Context.h> #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> ...
e41bf8bd9c66e7fe65b84886c54af82bea79295bc12fb9cfa6d381073b22b31a
C++
32,018
832
#define TORCH_ASSERT_NO_OPERATORS #include <ATen/native/IndexKernel.h> #include <cmath> #include <iostream> #include <ATen/Context.h> #include <ATen/Dispatch.h> #include <ATen/Dispatch_v2.h> #include <ATen/Parallel.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/cpu/AtomicAddFloat.h> #include <ATen/n...
b9ce013cb129c8176a48761939d359a8b0ae126d38d605697a8b7b4fbb38011e
C++
32,473
875
#include "../libstfnum/measure.h" #include <gtest/gtest.h> #include <cmath> #include <fstream> #if (__cplusplus < 201103) #include <boost/random.hpp> #include <boost/random/normal_distribution.hpp> #else #include <random> #endif #define PI 3.14159265f #define N_MAX 1000 /* limit tolerance value to sampli...
0031954950fba61c61a0c9bf9fc22ad4ca67fb29e2c812e86710d5e9b7cba230
C++
32,491
766
// Copyright (c) Facebook, Inc. and its affiliates. // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include <torch/library.h> #include <ATen/native/ResizeCommon.h> #include <ATen/native/TensorShape.h> #incl...
5e71069facf14bb4a11a60fc2b1811844101010420f7570d13a5bcc9641e8364
C++
32,589
862
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/native/AdaptivePooling.h> #include <ATen/Parallel.h> #include <ATen/cpu/vec/vec.h> #include <ATen/cpu/vec/functional.h> #include <ATen/native/cpu/utils.h> #include <c10/util/irange.h> #include <ATen/OpMat...
ae1ef7aaf8e96ca913409acee3806301fbdf659fd4b8ff77cc8b28711318ffc8
C++
32,636
1,155
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <cpuinfo.h> #include <gtest/gtest.h> #include <qnnpack/isa-checks.h> #include <qnnpack/q8ga...
f330ee9e5f3c8ad2515061ea395d5b5abc59b0bb59d338951d9025810c79e149
C++
32,951
929
// This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // This program is distributed in the hope that it will be use...
7160e42040c8a60b36a916e6cf8469ff9a6fb54f9c1ba7d8be9a72ff34ea15c0
C++
33,064
898
#define ARMA_WARN_LEVEL 1 #include "paramEst.h" #include "computeMatrices.h" #include "utils.h" #include<RcppArmadillo.h> #ifdef _OPENMP #include <omp.h> #endif #include<cmath> // [[Rcpp::depends(RcppArmadillo)]] // [[Rcpp::plugins(openmp)]] // using namespace Rcpp; // All functions used in parameter estimation arma...
824b7e2625d645d92b2de76d12d49cb0d084b42267b690a6aefa901fb36ca259
C++
33,537
748
// TODO(Renzo): There are the comments about copying the same voxel to itself // when the distance is smaller than 1.7. remove this stuff. #include "../dep/laynii_lib.h" int show_help(void) { printf( "LN_COLUMNAR_DIST : Calculates cortical distances (columnar structures) \n" " based on ...
7ceff3fc35f02cbd4ba0d3176800c13f75c78539a6005c89b7b40ed315d6d129
C++
33,658
876
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <utility> #include <vector> #include <ATen/core/Tensor.h> #include <ATen/core/List.h> #include <ATen/Context.h> #include <ATen/native/quantized/PackedParams.h> #include <ATen/native/quantized/cpu/fbgemm_utils.h> #include <ATen/native/quantized/cpu/init_qnnpack.h> #in...
b02bb001f37358624b3cc1f284ba3f3150736e74f84a190730f9438d61407864
C++
34,167
1,086
// Original TunableOp is from onnxruntime. // https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/core/framework/tunable.h // https://github.com/microsoft/onnxruntime/tree/main/onnxruntime/core/providers/cuda/tunable // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. // // Adapting Tu...
efb22e6399fa6657d67a6b1d9d20c1e82d147078b82ffa088cddb76eb041cc0e
C++
34,640
1,221
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software F...
4fac72fd52d126244407e809fefcafde3986ce8c2e259cfb47f817cb7ccdb554
C++
34,770
1,067
#include <ATen/Config.h> #include <ATen/Context.h> #include <c10/core/CPUAllocator.h> #include <algorithm> #include <array> #include <atomic> #include <cctype> #include <string> #include <string_view> #if defined(USE_ROCM) && defined(__has_include) && \ __has_include(<ATen/ROCmCKSDPAConfig.h>) #include <ATen/RO...
82d1c46c5995ae82e6dfdd01ec8447b52800c4c7e6d1ec3673590f898fdead70
C++
34,808
1,070
#include <ATen/core/Dict.h> #include <ATen/core/dynamic_type.h> #include <ATen/core/enum_type.h> #include <ATen/core/function.h> #include <ATen/core/function_schema.h> #include <ATen/core/jit_type.h> #include <c10/macros/Macros.h> #include <c10/util/env.h> #include <c10/util/Exception.h> #include <c10/util/flat_hash_ma...
bc7fb1f72d6e196a1715caef881b334be17d9179090e20f42e9a2ff8d942fabe
C++
34,824
731
#include <ATen/core/dispatch/OperatorEntry.h> #include <ATen/core/op_registration/infer_schema.h> #include <ATen/core/dispatch/Dispatcher.h> #include <ATen/core/dispatch/ObservedOperators.h> #include <c10/util/irange.h> #include <array> #include <utility> #include <vector> namespace c10::impl { namespace { #ifndef S...
be51acd1643dde5bb1faecd1cbce0b64f3a97ab826b5e9d20a7c791d8483744d
C++
35,647
847
//*********************************************************************************************** // // Copyright (c) 2005 Molecular Devices. // All rights reserved. // Permission is granted to freely to use, modify and copy the code in this file. // //****************************************************...
39bfdece70fb3b799e6025c74651474cb01bbc1165944a0e79b83b02544f42af
C++
35,701
756
#include <gtest/gtest.h> #include <ATen/core/boxing/impl/test_helpers.h> #include <ATen/core/op_registration/op_registration.h> #include <ATen/core/Tensor.h> #include <torch/csrc/jit/frontend/function_schema_parser.h> #include <torch/library.h> #include <ATen/core/LegacyTypeDispatch.h> using c10::RegisterOperators; ...
3bcdfc76783720259cf201f411bcd637e189ef9fb0f3c44752d4d5173a10ab3b
C++
35,772
1,075
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/ExpandUtils.h> #include <ATen/MemoryOverlap.h> #include <ATen/NumericUtils.h> #include <ATen/Parallel.h> #include <ATen/ScalarOps.h> #include <ATen/TensorIterator.h> #include <ATen/TensorMeta.h> #include <...
b5c1da4fcfa694c5e498c9d0a30db53b2297122a3cd56f7b8b9835d1e0fe33a9
C++
35,978
803
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN_3DCOLUMNS : Calculates cortical distances (columnar structures) \n" " based on the gray matter (GM) geometry.\n" "\n" "Usage:\n" " LN_3DCOLUMNS -layers layers.nii -landmarks landmarks.nii \n" " ../LN_3DCO...
582d68d3c53df907df9d5c36c985b70df1fabcd9e3a3c6b648e5be857984b9cd
C++
36,180
952
#include "reconstruct_tomogram.h" #include <src/jaz/tomography/projection/projection.h> #include <src/jaz/tomography/extraction.h> #include <src/jaz/tomography/reconstruction.h> #include <src/jaz/tomography/tomogram.h> #include <src/jaz/image/normalization.h> #include <src/jaz/image/centering.h> #include <src/jaz/gravi...
d51d3d1c97ca51a792a404b59b2cc30a6d5c8d8acb1c710434cc110da3949607
C++
36,804
926
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/native/Resize.h> #include <ATen/native/xnnpack/Engine.h> #include <ATen/WrapDimUtilsMulti.h> #include <ATen/TensorOperators.h> #include <c10/util/irange.h> #include <c10/core/GradMode.h> #include <c10/core/SymInt.h> #include <c10/ut...
f4bd3e4f2bdb42503c4fc61dd74a90de08a043ddfa276a4b0532003ccc5b9b52
C++
37,939
1,160
/* Portions of this code are under: Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. */ #undef ALTCPU #include <sys/time.h> #include <stdio.h> #include <time.h> #include <math.h> #include <ctime> #include <iostream> #include <fstream> #include <hip/hip_runtime.h> #include <signal.h> #include "sr...
74ea09c53da93e84068c8ce483cfb437889544c0e9fa7d8b0c6aa1aa1bdcf544
C++
38,030
1,231
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software F...
37c7635791e46a2d4fbdad97be240c9d0a1cfe689437cfc823d6afabe15f092f
C++
38,189
1,119
#include <limits> #define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/Dispatch.h> #include <ATen/Dispatch_v2.h> #include <ATen/ScalarOps.h> #include <ATen/TensorIndexing.h> #include <ATen/TensorMeta.h> #include <ATen/TensorOperators.h> #include <ATen/TensorSubclassLikeUtils.h> #include <ATen/WrapDimUtils.h> #incl...
08fc303733334afcabcb80b46712218ca7174abacceef743074eb5a723a012c1
C++
38,240
937
#define TORCH_ASSERT_NO_OPERATORS #include <ATen/native/UnaryOps.h> #include <cmath> #include <limits> #include <type_traits> #include <ATen/Config.h> #include <ATen/Context.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/cpu/vec/functional.h> #include <ATen/cpu/vec/vec.h> #include <ATen/cpu/v...
ee230a5fff343de7123954fb8ec203ca3cdbc348d2994a1cafdbb0486fcf6807
C++
38,470
797
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <vector> #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/native/UpSample.h> #include <ATen/Parallel.h> #include <ATen/TensorIterator.h> #include <c10/util/irange.h> #include <ATen/cpu/vec/vec.h> namespace at::native { namespace { using scale...
fcd8591308a89405b55430fb66553e12d90f19d5e8f43610e1f9c30b866f55d1
C++
38,535
1,078
// // CPlot2D.cpp // // A simple class for plotting xy values and // generating a PostScript output, aimed at // easy integration into C/C++ programs. // // You are granted use of the code, but please // be a nice guy and acknowledge where you got // it from by giving credit! // // If you have any comments, que...
1c90c0fd2948989f465b64c5c9c236c782ff30cf188174d2a605990438008076
C++
38,672
1,264
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software F...
fd0c642cb90505a40cd5a9bb17b48174302a376e67b596e188e2c23d61bacd1a
C++
38,779
1,518
/*************************************************************************** * * Author: "Jasenko Zivanov" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foun...
d16df0848c447a66be77788f8af57ea38c89a39efbbb96050858fee55b2a9122
C++
38,878
1,271
#include <ATen/core/List.h> #include <gtest/gtest.h> using namespace c10; namespace { // Ts cover the three shapes ListElementReference's conversion takes. template <class T> using ListIter = c10::impl::ListIterator<T, c10::detail::ListImpl::list_type::iterator>; template <class... Ts> constexpr bool list_iterat...
bcebf164b95b5b5913ee103cc44426468d3f6b0f12779cda6aba41b0e9e4818f
C++
39,517
1,182
#include "wx/wxprec.h" #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include <wx/listctrl.h> #include "./../../res/arrow_down.xpm" #include "./../../res/arrow_up.xpm" #include "./../app.h" #include "./smalldlgs.h" BEGIN_EVENT_TABLE( wxStfFileInfoDlg, wxDialog ) END_EVENT_TABLE() wxStfFileInfoDl...
af0dd6eaa44bcf8f90aeb45231eb9eb85280ad932ca45b9de50476bf6dca87dc
C++
39,565
1,240
#include <string> #include <sstream> #include <iostream> #include <exception> #include <chrono> #include <cassert> #include <exception> #include <limits> #include <algorithm> #include "src/acc/sycl/sycl_dev.h" #define PRINT_DEV_INFO(sd, x) std::cout << " "#x": " << sd.get_info<sycl::info::device::x>() << std::endl #...
5cfbfe234915d5db9f3b591be12884d81998481e593a4380429384ba233682ce
C++
39,643
988
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/native/AdaptivePooling.h> #include <ATen/Parallel.h> #include <ATen/cpu/vec/vec.h> #include <ATen/cpu/vec/functional.h> #include <ATen/native/cpu/utils.h> #include <c10/util/irange.h> #include <ATen/OpMat...
924cdea07529fc3d5032260a9ece578d846c58139ae72ac766ae52d5030de9ca
C++
39,670
1,209
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <gtest/gtest.h> #include "max-pooling-operator-tester.h" #include <qnnpack/params.h> TEST...
8744e270cc7ae5777531d8f50b91b391ce28b1670f7c0db2b0d24b23eb6e0dff
C++
39,911
1,101
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Context.h> #include <ATen/Parallel.h> #include <ATen/native/quantized/cpu/fbgemm_utils.h> #include <ATen/native/quantized/cpu/QnnpackUtils.h> #include <ATen/native/quantized/cpu/OnednnUtils.h> #include <ATen/native/quantized/cpu/ACL...
d80209a4c6fde5b2451888f538708e8a315735dfc9b0c259fc09572048d7766b
C++
40,989
1,252
#include <ATen/core/Dict.h> #include <ATen/core/Formatting.h> #include <ATen/core/class_type.h> #include <ATen/core/enum_type.h> #include <ATen/core/function.h> #include <ATen/core/ivalue.h> #include <ATen/core/jit_type.h> #include <ATen/core/stack.h> #include <ATen/core/type_factory.h> #include <c10/util/Exception.h> ...
6f6c2b51daa7ed224721c6d8c1ffce78a1dd12aebf7199e5ba00a8c2db795ca6
C++
41,067
887
// Copyright (c) Facebook, Inc. and its affiliates. // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include <ATen/core/grad_mode.h> #include <ATen/functorch/BatchRulesHelper.h> #include <algorithm> namespa...
c55882f910afbb34008343505e17196eec35c877496e162e0909dc5caf149e88
C++
41,132
853
#include <gtest/gtest.h> #include <ATen/core/boxing/impl/test_helpers.h> #include <ATen/core/op_registration/op_registration.h> #include <ATen/core/Tensor.h> #include <torch/csrc/jit/frontend/function_schema_parser.h> #include <torch/library.h> #include <ATen/core/LegacyTypeDispatch.h> using c10::RegisterOperators; ...
48f6d06d07dc73a5c8d8604c0fac3998ace0ea445f5de2067ea613ae86440915
C++
41,227
1,092
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software F...
ea128ea0ffb97ff21ea869812ea19478ab1fae9436b8a277aaab26690af8c554
C++
41,243
1,138
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/OpMathType.h> #include <ATen/cpu/vec/vec.h> #include <ATen/cpu/vec/functional.h> #include <ATen/native/Pool.h> #include <ATen/native/cpu/utils.h> #include <c10/util/irange.h> na...
7b27ff51e16c39a07436ca15326b78e165dc3babf9009f8f369fd6143204de7e
C++
41,453
1,229
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software F...
5b3920d3ed4385e5335770991d2160b2ca7ba677ebbf8791e1ae56adbec717e2
C++
41,472
1,539
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software F...
4f399feaf347f41ba447ef6d19d82e13a8775b082ef537b4b02c50b0569132dc
C++
42,124
1,300
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/cuda/CUDAConfig.h> // for the definition of AT_CUDNN_ENABLED #if AT_CUDNN_ENABLED() #include <ATen/core/Tensor.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #else #include <ATen/ops/empty.h> #include <ATen/ops/empty_like.h> #include <ATen/ops...
cffbef9e46564d87051cb51e46bec3bd429cd6792ed350638ccfd01e216aae9a
C++
42,488
995
#include <gtest/gtest.h> #include <ATen/core/boxing/impl/test_helpers.h> #include <ATen/core/op_registration/op_registration.h> #include <ATen/core/Tensor.h> #include <torch/csrc/jit/frontend/function_schema_parser.h> #include <ATen/core/LegacyTypeDispatch.h> using c10::RegisterOperators; using c10::OperatorKernel; ...
648261b78e3f36787bd98e6e4bff0dae2de853343abd933c15d74b922eebefad
C++
42,577
884
// Copyright (c) Facebook, Inc. and its affiliates. // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include <ATen/functorch/BatchRulesHelper.h> #include <ATen/functorch/PlumbingHelper.h> namespace at::funct...
129e79ff905ae436214961f7e8482b3633180560893facc152bcd0476c086f0d
C++
42,872
1,028
#include <gtest/gtest.h> // This intentionally tests a deprecated API #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #include <ATen/core/boxing/impl/test_helpers.h> #include <ATen/core/op_registration/op_registration.h> #include <ATen/core/Tensor.h> #include <torch/csrc/jit/fro...
65eb95c24e0f257034d801f94f942222094814d6f4b0a1e29f736c7c04c2bfac
C++
42,958
1,100
#include <ATen/native/nested/NestedTensorMath.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #include <ATen/NestedTensorImpl.h> #include <ATen/TensorIndexing.h> #include <ATen/TensorOperators.h> #include <ATen/TensorUtils.h> #include <ATen/W...
eefa0f1cc2758b4570106d157efb598687e97e41f13745e4054784636a3110a8
C++
42,994
1,269
#include <ATen/OpMathType.h> #include <ATen/native/mkldnn/xpu/detail/Attr.h> #include <ATen/native/mkldnn/xpu/detail/Utils.h> #include <ATen/native/mkldnn/xpu/detail/oneDNN.h> #include <ATen/ops/ones.h> #include <ATen/ops/scalar_tensor.h> #include <ATen/ops/where.h> #include <oneapi/dnnl/dnnl.hpp> namespace { using n...
544e62ab571f54e11d227a5ac1c4afb997be184078998d2572f9d920d24e1e57
C++
43,213
1,120
/*************************************************************************** * * Author: "Shaoda He" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation...
512d2f48f36b7eebbf9fc4121deb89ac5c41d118098c929f576e0e6f30d0c4ca
C++
43,806
952
#include "../dep/laynii_lib.h" #include <sstream> int show_help(void) { printf( "LN2_IFPOINTS: Iterative farthest points finder.\n" "\n" "Usage:\n" " LN2_IFPOINTS -domain domain.nii -nr_points 10\n" "\n" "Options:\n" " -help : Show this help.\n" " -domain : S...
cd35d590fa0772926a196021231b757425eb1e316fe8ce74324fe69cdcd5c9a6
C++
43,950
1,168
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software F...
8b0eab08e2c9d326b1e8bbe88fb99103d1dbfe149364e417f3ba8e2ededb3bdd
C++
44,066
962
#include <ATen/FunctionalTensorWrapper.h> #include <ATen/core/IListRef.h> #include <ATen/core/LegacyTypeDispatch.h> #include <c10/util/Exception.h> #include <c10/util/irange.h> #include <atomic> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #else #include <ATen/ops/_propagate_xla_data.h> #include <AT...
4d1a6718d884595353c9de32a078fe0d08231d5a9653fb2b9c1b7e25e3845626
C++
44,081
1,041
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/ExpandUtils.h> #include <ATen/ScalarOps.h> #include <ATen/TensorIterator.h> #include <ATen/TensorOperators.h> #include <ATen/native/Resize.h> #include <ATen/native/UnaryOps.h> #include <ATen/native/ComplexHelper.h> #include <c10/u...
678466a7d94b7218062de83e74ae9a79162c1fc923edc9fd21105f90998dc4a2
C++
44,840
1,134
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software F...
fc5f6f321e95eb0357ea75eb7632ca50b80132e0346513b2bdafe5ebd7200e13
C++
44,896
1,098
#include <gtest/gtest.h> // This intentionally tests a deprecated API #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #include <ATen/core/boxing/impl/test_helpers.h> #include <ATen/core/op_registration/op_registration.h> #include <ATen/core/Tensor.h> #include <torch/csrc/jit/fro...
8a49d0f097857b201af82c01c0d3da5edbc12fec9eb3bd8c496638069f67dcef
C++
44,938
1,074
#include <memory> #define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/cpu/SoftmaxKernel.h> #include <ATen/native/cpu/LogSoftmaxKernelImpl.h> #include <algorithm> #include <iterator> #include <numeric> #include <vector> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/TensorIterator.h...
14804d90d10b2da8e747ab83f6bef9b46252961d97b04e4e1bcd0caa03d0a281
C++
45,143
1,161
#include "subtomo.h" #include <src/jaz/tomography/dynamo/catalogue.h> #include <src/jaz/tomography/projection/projection.h> #include <src/jaz/tomography/projection/Fourier_backprojection.h> #include <src/jaz/tomography/reconstruction.h> #include <src/jaz/tomography/tomogram_set.h> #include <src/jaz/tomography/tomo_ctf_...
36b3b6175a0b8bf78bf8f2f1f248c289a3e38c682458bad9892c3a6d87daa87e
C++
45,340
1,730
/*************************************************************************** * * Author: "Jasenko Zivanov" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foun...
c7e08e27daf46aef0adb742817f72eb4751b138e4295e3127c6ee996997d5677
C++
45,818
1,208
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/NonEmptyUtils.h> #include <ATen/native/DispatchStub.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/TensorAdvancedIndexing.h> #include <ATen/core/Tensor.h> #include <ATen/Config.h> #include <ATen/Dispatch.h> #include <ATen/Dispatch_v2.h> ...
1556495daa0d872a532d395c9edd496ae77e77a3f31cf0167023394749cf8907
C++
45,941
1,238
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/Config.h> #include <torch/library.h> #include <ATen/core/Tensor.h> #include <ATen/native/ConvUtils.h> #include <ATen/native/mkldnn/Conv.h> #include <ATen/native/utils/ParamUtils.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/NativeFunctions.h> #include <ATen...
6631e55571a96ba1e2ff35999d2103f76a4e182c33a3675bde99952f63106977
C++
46,270
1,383
#include <type_traits> #define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/cpu/vec/functional.h> #include <ATen/cpu/vec/vec.h> #include <ATen/native/cpu/int_mm_kernel.h> #include <ATen/native/cpu/utils.h> #include <cmath> #includ...
027d8459e18aabf87a6c2859161a07dedf63644fd82b9c797c20f103643f90ee
C++
46,398
1,224
/*************************************************************************** * * Author: "Sjors H.W. Scheres" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software F...
e615d7d15980fec7893ccfefc8ca86987b770d7857b8783c217a950b990f1bb3
C++
46,595
1,019
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <algorithm> #include <cfloat> #include <chrono> #include <cmath> #include <functional> #incl...
28a715380b459aa1946169be858285cf4592fa7461e2edfc76571f4badff79f8
C++
47,007
1,124
/*************************************************************************** * * Author: "Shaoda He" * MRC Laboratory of Molecular Biology * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation...
df0bcf479a2c2819bdf3478e69352bc1fb7ebfec07df8b0cff891962cc6c6e57
C++
47,165
1,515
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/CPUBlas.h> #include <ATen/native/mkl/LinearAlgebra.h> #include <ATen/native/mkldnn/Matmul.h> #include <c10/util/SmallBuffer.h> #include <c10/util/irange.h> #include <climits> #if !defined(__s390x__ ) && !defined(__powerpc__) #include <cpuinfo.h> #endif ...
cc0842d0d92ac0810f64efe85a244fe09123a74d9ac5e080fab979d1adea5ac0
C++
48,251
896
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN_GROW_LAYERS: Calculate layers based on GM & CSF borders from rim file.\n" "\n" "Usage:\n" " LN_GROW_LAYERS -rim rim.nii -N 21 \n" " LN_GROW_LAYERS -rim rim.nii -N 21 -vinc 40 \n" " ../LN_GROW_LAYERS -rim sc_rim.nii ...
8ef6a70a49b89361606e99769708fcd495a9a1d570f082f6d6faeac77779d7b5
C++
48,291
1,424
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/BlasBackend.h> #include <ATen/WrapDimUtilsMulti.h> #include <ATen/ceil_div.h> #include <ATen/native/LinearAlgebraUtils.h> #include <ATen/native/Resize.h> #include <ATen/native/ScaledBlasUtils.h> #include <ATen/native/mkldnn/xpu/detail/oneDNN.h> #include <ATen/na...
7d58c51d6a66b1fee58093bc400d4dc6b2628b6aa655558ed16d6819896ff036
C++
48,449
1,222
#include <cstdint> #include <c10/util/typeid.h> #include <c10/util/Exception.h> #include <c10/util/SmallVector.h> #include <c10/core/Scalar.h> #include <c10/core/ScalarType.h> #define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/ExpandUtils.h> #include <ATen...
2e77b79c6f340fe01b15e442ea9dd319649087579a31906c08f6afe2c86ec482
C++
48,671
1,277
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/cpu/vec/vec.h> #include <ATen/cpu/vec/vec_half.h> #include <ATen/cpu/vec/functional.h> #include <ATen/native/CPUBlas.h> #include <ATen/native/cpu/utils.h> #include <ATen/native/...
9dc3e87b64ab2b6fe2f9455bcdb286902dbd764ffab5337fc02a7ab03efc74f6
C++
48,774
1,978
#include "ctf_refinement.h" #include <src/jaz/tomography/projection/projection.h> #include <src/jaz/tomography/projection/Fourier_backprojection.h> #include <src/jaz/tomography/reconstruction.h> #include <src/jaz/image/centering.h> #include <src/jaz/image/padding.h> #include <src/jaz/tomography/tomo_ctf_helper.h> #incl...
b2a8851fb3f47eb3b0b48c8fb1bda5ab287d5966888211aaedda6f8a0b293ab2
C++
48,783
986
// dear imgui: Renderer Backend for modern OpenGL with shaders / programmatic pipeline // - Desktop GL: 2.x 3.x 4.x // - Embedded GL: ES 2.0 (WebGL 1.0), ES 3.0 (WebGL 2.0) // This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) // Implemented features: // [X] Renderer: User texture b...
22b9ac2a5102c361af8082b9a1bed9767ac670b2901875a04ffa59089418a4fb
C++
48,913
1,040
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/ScalarOps.h> #include <ATen/TensorIterator.h> #include <ATen/TensorMeta.h> #include <ATen/TensorOperators.h> #include <ATen/TensorUtils.h> #incl...
e5655b23641e5efe83d3d89bb6da13890350a783282f90f939a0e45e32c9af3c
C++
49,130
1,491
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <gtest/gtest.h> #include <qnnpack/params.h> #include "average-pooling-operator-tester.h" ...
d9332fd4c79a6d8de3113f5568c5583ff9c3662037611e1c602476514a82357b
C++
49,180
1,324
/* LICENCE The Software remains the property of the University Medical Center Freiburg ("the University"). The Software is distributed "AS IS" under this Licence solely for non-commercial use in the hope that it will be useful, but in order that the University as a charitable foundation protec...