sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
7c67421dabaf156113bf3524f903998db14fff07237516709f74532c4b535f95
C++
8,070
370
/* * WXWIN driver for VOGL (c) 1996 by Bernd Feige (Feige@ukl.uni-freiburg.de) * * To compile: * * 1) add WXWIN to device.c and mash-up your makefiles for MsDOS 2) compile with * DOBJ=-DPOSTSCRIPT -DHPGL -DWXWIN and MFLAGS=-O2 * * To run: * * set VDEVICE=wxwin * */ #ifdef __GNUG__ #pragma implementati...
c2380dab3999477fed65fbe60617183d81fcd3b8483b3d8c718458d4e278ac4b
C++
8,071
351
#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/...
7f1583111417c24148976c64bb217c6427903d6e03b4567983f78f45d75792a5
C++
8,074
250
//*********************************************************************************************** // // Copyright (c) 1993-1999 Axon Instruments. // All rights reserved. // Permission is granted to freely to use, modify and copy the code in this file. // //************************************************...
8c2378f7f630adf04aef0a1bd4dc74215b339cc1a735804cb6e736ae32265188
C++
8,085
247
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Context.h> #include <c10/util/irange.h> #include <torch/custom_class.h> #include <ATen/native/quantized/cpu/init_qnnpack.h> #include <ATen/native/ao_sparse/quantized/cpu/fbgemm_utils.h> #include <ATen/native/ao_sparse/quantized/cpu...
69c16cc97348ebb3135eb8c1d0f175736aa7190799266dee7421b0d642690f17
C++
8,092
230
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/ExpandUtils.h> #include <ATen/ExpandBase.h> #include <c10/util/irange.h> namespace at { namespace internal { TensorBase expand_slow_path(const TensorBase &self, IntArrayRef size) { return OptionalTensorRef(self)->expand(size); } } // namespace internal name...
b18dcb98bc35ebb70e4e6870d7a636132f635931f14e18d6ba95743008fe02cf
C++
8,092
229
// 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/LegacyVmapTransforms.h> #include <ATen/functorch/DynamicLayer.h> #include <c10/uti...
d16e637c133da20b1fa14e9f0dd02066a8f7b34a096dfaae2c9b6a2224365c0e
C++
8,146
291
//*********************************************************************************************** // // Copyright (c) 1999 - 2002 Axon Instruments, Inc. // All rights reserved. // //*********************************************************************************************** // MODULE: SimpleStringCache....
a999ea8b7be86b039a49ac194c8f03273fb25a4d3ea11177ecad91e57aeb4d50
C++
8,157
323
/** \file znzlib.c \brief Low level i/o interface to compressed and noncompressed files. Written by Mark Jenkinson, FMRIB This library provides an interface to both compressed (gzip/zlib) and uncompressed (normal) file IO. The functions are written to have the same interface as the standard file IO functi...
38b41037c7955a62b4c97418290f76b457079d99255f86cdf12f6bcd325994ed
C++
8,214
196
#include <vector> #include <cmath> #include <algorithm> #include <cstdint> #include <mex.h> /** http://blog.ivank.net/fastest-gaussian-blur.html */ std::vector<size_t> boxesForGauss(double sigma, size_t n) // standard deviation, number of boxes { double wIdeal = std::sqrt((12*sigm...
de71786f0f8d12aee1420d60e170a4165943c959caadeb0cc8def545a42abfa0
C++
8,265
262
/*************************************************************************** * * Author: "Takanori Nakane" * 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...
de2d70fe3c0983824bb9407ddaba49793797fa63fbd5166194b62f5562d55786
C++
8,289
198
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/AmpKernels.h> #include <cmath> #include <ATen/DeviceGuard.h> #include <ATen/Dispatch.h> #include <ATen/OpMathType.h> #include <ATen/core/Tensor.h> #include <ATen/native/ForeachUtils.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/cpu/Loo...
a07d673d5c74c4ecb8a3bc7646025507e4e12705a4be457af3eac52def739228
C++
8,293
183
// 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...
cb610bc867a58b09eff116a4cbb6741433b2d8cb7e88247c417be87473734693
C++
8,313
281
#include <vector> #include <ATen/native/ConvUtils.h> #include <ATen/native/mkldnn/Common.h> #include <ATen/native/mkldnn/ConvPrepack.h> #include <ATen/native/mkldnn/MKLDNNCommon.h> #include <ATen/native/mkldnn/OpContext.h> #include <ATen/native/utils/Factory.h> #include <ATen/native/utils/ParamUtils.h> #include <c10/u...
640aca03a7206f254710bfaaa3ee081dc24ea46df7095405b0c0c9f6d3e2c22a
C++
8,325
231
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/core/DistributionsHelper.h> #include <ATen/native/Copy.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/UnaryOps.h> #include <ATen/native/cpu/Loops.h> #include <c10/util/irange.h> #ifndef...
4476fbd18d623f0199c9231ec049d95e958b89524ec0695a973df51771c621a7
C++
8,327
266
#include <ATen/ExpandUtils.h> #include <ATen/core/Tensor.h> #include <ATen/ops/empty.h> #include <Attr.h> #include <Utils.h> #include <c10/core/ScalarType.h> #include <oneapi/dnnl/dnnl.hpp> namespace at::native::onednn { sycl::event matmul( at::Tensor& result, const at::Tensor& mat1, const at::Tensor&...
5d3e44a66bf1e6253c9b1180f2c0554c2383e2a0f6a2ca411cb51c417d91b901
C++
8,341
206
#include <c10/core/impl/TorchDispatchModeTLS.h> #include <c10/core/impl/PythonDispatcherTLS.h> #include <ATen/core/PythonFallbackKernel.h> #include <ATen/record_function.h> namespace { // This TLS is used to track the state of the dispatcher to be able to restore // it when calling back into python. // It has the fol...
68ac2f476ec5ce8cbe5445bee13fe5979acfaac45ac465db50baccea3b3edb10
C++
8,347
425
#include "tile_ctf_cost.h" #include <src/jaz/image/centering.h> #include <omp.h> TileCtfCost::TileCtfCost( RawImage<float>& tiles, int tw, int th, RawImage<double>& tileOffZ, RawImage<float>& background, double pixelSize, double voltage, double Cs, double Q0, double hand, int num_threads, int r0, int r1) : ...
b5570abb527def9907465b95c52f56651d150a00e861323248b952ac681a9b39
C++
8,368
236
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/native/UpSample.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/_empty_affine_quantized.h> #include <ATen/ops/_upsample_nearest_ex...
fc70ecd997daf5e8efa9c616c6d63cdff2a16a3da0bcb2e2ad975cfc0b764656
C++
8,378
227
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/native/ReduceOps.h> #include <ATen/native/ReduceAllOps.h> #include <ATen/native/ReduceOpsUtils.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/TensorIterator.h> #include <ATen/OpMathType.h> #include <ATen/n...
570038d0bf351095eb78523631d55d0a6719bc7af7ae33d8b660587284d96d53
C++
8,385
264
#ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #else #include <ATen/ops/empty.h> #endif #include <ATen/core/IListRef.h> #include <gtest/gtest.h> using namespace c10; static std::vector<at::Tensor> get_tensor_vector() { std::vector<at::Tensor> tensors; const size_t SIZE = 5; tensors.reserve(SIZE); ...
55d389d3a9c993905efb0cdbecb6d365779b7510b20998aef1e78aa5dc0aa27a
C++
8,424
251
/*************************************************************************** * * 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...
0bbac4d77eb1c7e5b6f56ffbf74a4e058377c8551a01c8729e5205ead14fc49e
C++
8,445
118
//*********************************************************************************************** // // Copyright (c) 1993-1997 Axon Instruments. // All rights reserved. // Permission is granted to freely to use, modify and copy the code in this file. // //************************************************...
83f36f755089a29663755b24f1fc0a974d6c1c9f1dc506322d45af3aac71de00
C++
8,504
235
#include <ATen/native/mkldnn/MKLDNNCommon.h> #include <ATen/OpaqueTensorImpl.h> #include <c10/core/Allocator.h> #include <torch/library.h> #if AT_MKLDNN_ENABLED() #include <ideep.hpp> #include <dnnl.hpp> namespace at::native { /** * `IntrusivePtrTargetWrapper` wraps a custom storage handle of a tensor * (as temp...
c49fbe7b10f913feffa58a11b7a828b8f75929d00a56497efca5ba1bed1673d0
C++
8,542
235
/*************************************************************************** * * 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...
b488560456f8a1a703302f33e139352c5e46c0f1cbb0a1fd1eb5c82b8b11cf95
C++
8,555
277
#include <torch/library.h> #include <ATen/native/mkldnn/xpu/detail/oneDNN.h> #include <ATen/native/mkldnn/xpu/qlinear.h> #include <c10/core/ScalarType.h> using namespace at::native::onednn; namespace at::native::xpu { inline c10::ScalarType QLinearOnednnXPU::qlinear_decide_out_dtype( const at::Tensor& act, ...
8e439c8b1bca027b1484de0735fb7959e77bfd586cc15a95a7a7ef9a47f9c4ec
C++
8,572
247
#include <ATen/ATen.h> #ifdef USE_FBGEMM #include <ATen/native/ao_sparse/quantized/cpu/fbgemm_utils.h> #endif #ifdef USE_PYTORCH_QNNPACK #include <ATen/native/ao_sparse/quantized/cpu/qnnpack_utils.h> #include <utility> #endif namespace ao::sparse { namespace { /** - Wrap a vector in a Tensor, copying data into it...
94d7a0321100533d07fe73e33699e3f91d7b9d86d2dc05f4eb30800316f9f2e5
C++
8,598
228
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/ExpandUtils.h> #include <ATen/native/mkldnn/Matmul.h> #include <ATen/native/mkldnn/Linear.h> #include <ATen/native/Resize.h> #include <ATen/native/GroupedMMUtils.h> #if !defined(__s390x__) && !defined(__p...
2a6b8acac03e88441fe891743599a98b6f0480c6b50387699f935f73f8d2a971
C++
8,602
223
#include "../dep/laynii_lib.h" #include <sstream> int show_help(void) { printf( "LN2_GRADIENTS: Compute image gradients (spatial derivatives).\n" " Uses 1-jump voxel neighbors for computations.\n" "\n" "Usage:\n" " LN2_GRADIENTS -input Smagn_t-001.nii.gz\n" "\n" "Option...
1740d7f695d57269b7d1c510134e276126d1decbfe26b38dffe5beb4f1abd451
C++
8,612
237
#include <ATen/ATen.h> #include <ATen/Dispatch.h> #include <ATen/NativeFunctions.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/cpu/Loops.h> #include <ATen/native/quantized/FakeQuantAffine.h> // FakeQuantize Op for PerTensorAffine quantization scheme. namespace at::native { // Use REGISTER_DISPATCH...
fac4a95128512ec34f7522d88c7bde25b152327c73ddffb5f38e29974d61c9a7
C++
8,612
332
// Visit http://www.johndcook.com/stand_alone_code.html for the source of this code and more like it. #include <cmath> #include <sstream> #include <iostream> #include <stdexcept> #include "Gamma.h" // Note that the functions Gamma and LogGamma are mutually dependent. double Gamma ( double x // W...
ac7f11b80d69f2fff38a80d0d891d7e4cf09f20d53b788ed499d0eeaff99d2ec
C++
8,662
259
#include "../dep/laynii_lib.h" #include <sstream> #include <set> #include <unordered_set> int show_help(void) { printf( "LN2_WINDOWED_COUNTER_2D: Count uniquely labeled voxels using circular windows.\n" " Expects isotropic input.\n" "\n" "!!! EXPERIMENTAL !!!\n" "\n" ...
51c50829091fe9a23f8e102b3c556b6eebd45f652dd7156636ee21244843f55c
C++
8,663
278
/*************************************************************************** * * 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...
f3f2461c5dab177f783280d1141fc0c746ccd9cbdb83ccc99ac34a1a3140213e
C++
8,686
185
#include <vector> #include <cmath> #include <mex.h> //------------------------------------------------------------------------- // Statistics //------------------------------------------------------------------------- class SampleStatistics { protected: std::vector<int > numEntries; std::ve...
98b0654fcf2ed59021e25dcc900af93466612c119c2175d9df20a63f9a93018c
C++
8,799
240
#include <ATen/functorch/ADInterpreters.h> #include <ATen/functorch/DynamicLayer.h> #include <ATen/functorch/TensorWrapper.h> #include <bitset> namespace at::functorch { constexpr size_t default_bitset_size = 64; static void checkForInvalidMutationOnCaptures( const c10::OperatorHandle& op, const torch::jit::...
9a019531b65db193dc66a03fc7d73e8bd34c6dcfac5b07e94b5985fd8e9cac1e
C++
8,806
210
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/TensorMeta.h> #include <ATen/native/Pool.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/max_pool2d_with_indices_backward_native.h> #include <ATen/ops/max_po...
a7a78749761493f85fd06b6a453fbbba03debdaccd3a94becd76887a652a9415
C++
8,831
299
/* * This file is part of Healpix_cxx. * * Healpix_cxx 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. * * Healpix_cxx is...
009c4c44761a9f9557c09b3571a5e38c5be428739f6d2d4a35defade4577373b
C++
8,852
320
#include <ATen/Config.h> #if AT_PARALLEL_NATIVE #include <ATen/Parallel.h> #include <ATen/ParallelFuture.h> #include <ATen/PTThreadPool.h> #ifndef C10_MOBILE #include <c10/core/thread_pool.h> #include <c10/util/irange.h> #else #include <caffe2/utils/threadpool/pthreadpool-cpp.h> #endif // C10_MOBILE #include <atomic>...
1e10e4bdc352e2b2e82e9c1ca7ae273af38c71ddaa64354c0547ad67dc921148
C++
8,881
231
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN_NOISE_KERNEL: Estimates functional point spread function by looking at\n" " shared sources of variance across different directions.\n" "\n" "Usage:\n" " LN_NOISE_KERNEL -input timeseries.nii -kernel_size 11 \n"...
43a258b9f0539b245e2b7029653e7b25b111ec32cf00683840f203519ac640dd
C++
8,887
246
#include <ATen/core/grad_mode.h> #include <ATen/record_function.h> #include <c10/core/ScalarType.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/native/mkldnn/xpu/detail/oneDNNContext.h> #include <one...
ad300883bebcb64e838e5592898d2f2bd3013b77014e83bf9476d0952f7b0875
C++
8,902
350
/* * 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/x8zi...
646afc972de8e4c48e8c521d4e15c692ff11f61b52af780a6c3b9b2082627ef1
C++
8,919
195
#include <ATen/ATen.h> #include <ATen/MemoryOverlap.h> #include <ATen/native/DispatchStub.h> #include <ATen/native/quantized/IndexKernel.h> #include <ATen/native/TensorAdvancedIndexingUtils.h> #include <c10/core/QScheme.h> #include <ATen/native/TensorAdvancedIndexing.h> namespace at::native { DEFINE_DISPATCH(masked_f...
3ccbc6a38a3bf61110d77e3a0c21bdba626e07b6c7fb10bc4dd77c666fca205c
C++
8,936
259
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Parallel.h> #include <torch/custom_class.h> #include <torch/library.h> #include <ATen/native/ao_sparse/quantized/cpu/fbgemm_utils.h> #include <ATen/native/ao_sparse/quantized/cpu/packed_params.h> #include <c10/util/irange.h> #ifnd...
41969459a815f374c4e1fe0a3ed703e50d639d3223f67fcdf00539d2a6d839e2
C++
8,947
273
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Parallel.h> #include <ATen/OpMathType.h> #include <ATen/native/DispatchStub.h> #include <ATen/native/FusedSGD.h> #include <ATen/Dispatch.h> #include <ATen/cpu/vec/vec.h> #include <ATen/cpu/vec/functional.h> namespace at::native { n...
d4f88838185a7fde7010290d74ede1cd6bd8764d43ebfe3a54a7d0a4b87679c2
C++
8,965
379
/* * 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...
f08bca7504db817a9bf4df1aff8e0825fbb766a857420262a84da5fcbf42ca9e
C++
8,965
237
#include "plot_server.h" #include <chrono> PlotServer::PlotServer() : running_(false), plot_package_(std::make_unique<PlotPackage>()), zmq_context_(1), zmq_pub_socket1_(zmq_context_, ZMQ_PUB), zmq_pub_socket2_(zmq_context_, ZMQ_PUB), zmq_pub_socket3_(zmq_context_, ZMQ_PUB), zm...
83566ec5edf2497f5c5a4d49395dda61f5e90497c16e61cd5828549571809231
C++
8,989
283
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/native/cpu/mixed_data_type.h> #include <ATen/native/group_norm.h> #include <c10/util/accumulate.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/empty.h> #inc...
f7694df04ab83e15908b59b520b2b32a6b73699a544e3d9d57c51e18ae5ebdda
C++
9,021
235
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN_DESPIKE: Voxel-wise despiking for timeseries based on robust z-scores.\n" " Outliers are imputed with simple averaging of the neighboring\n" " time points (t-1 t+1).\n" "\n" "Usage:\n" " LN_DESPIKE -i...
38c6656adc2c603768bfc0244e69ff91ceeba3c87631656bf1bc2d1fcebde3fd
C++
9,042
340
/*************************************************************************** * * 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...
4bfe5a4e6ffa955c757905c1163eb98773cf02485e8ada55ebcc1c30245ccf35
C++
9,055
238
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/native/SobolEngineOpsUtils.h> #include <c10/util/irange.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/_sobol_engine_draw_native...
99907b589f4acc0d894270c56217f6b254250c23e9d947444309dd2764abb2fa
C++
9,073
298
// Copyright (C) 1996,1997,2001,2018,2026 Bernd Feige // This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). /*{{{}}}*/ #include "ConvexMesh.hh" extern "C" { #include <optimize.h> #define FTOL 1e-4 } #define ALLOWED_TYPICAL_LENGTH 8 /*{{{ do_spherefit(optimize_struct *ostructp)*/ LOCAL OP...
0dbb397c31ecd7e5e01b8aa6081dfb321811676b3305cafd07b6a4d2f5f541ec
C++
9,109
205
#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/library.h> #include <ATen/core/LegacyTypeDispatch.h> using c10::RegisterOperators; using c10::DispatchKey; using c10::Stack; using std::make_u...
564297a54df7beb645073ad3070a07ed98fa7857a58d3e5bce6d112b6aa79184
C++
9,121
219
// 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...
d264a1245c1bf76e35400ad5ded2944b89ef11aa8a068d714be99bd2cd95abea
C++
9,138
274
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/TensorUtils.h> #include <c10/util/Exception.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/empty.h> #include <ATen/ops/empty_like.h> #include <ATen/ops/miop...
8ae8e7373b6bc6d0299d8b80ed900a531876bcac3ae7b156ff1c5abf8286b537
C++
9,199
253
#define TORCH_ASSERT_NO_OPERATORS #include <ATen/native/cpu/PixelShuffleKernel.h> #include <ATen/core/TensorBase.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/native/cpu/utils.h> #include <ATen/cpu/vec/vec.h> #include <c10/util/irange.h> namespace at::native { namespace { template <typenam...
eaa6b6aecef769a326a60e277905d4c8706955305e1ff4a45483a52a6c713b72
C++
9,216
252
#include <ATen/TensorOperators.h> #include <ATen/core/Tensor.h> #include <ATen/native/RNN.h> #include <ATen/native/mkldnn/xpu/detail/Utils.h> #include <ATen/native/mkldnn/xpu/detail/oneDNNContext.h> #include <ATen/ops/cat.h> #include <ATen/ops/empty.h> #include <ATen/ops/stack.h> #include <ATen/ops/zeros.h> #include <o...
c38ace05513aff747e3cafd9807b2397074ba3689c0deb45b2e90a73a3856bb0
C++
9,261
270
#define TORCH_ASSERT_NO_OPERATORS #include <limits> #include <ATen/native/Sorting.h> #include <ATen/core/TensorBase.h> #include <ATen/Dispatch.h> #include <ATen/Dispatch_v2.h> #include <ATen/Parallel.h> #include <ATen/NumericUtils.h> #include <ATen/TensorIterator.h> #include <ATen/cpu/vec/functional.h> #include <ATen...
084e4b4a061426a81cd9aedb54c1ec45b48dc417c9eacd3240ccc868625a6e1e
C++
9,263
320
/*************************************************************************** * * 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...
5725c1a59604cda4552336531e534590ea4a7f9c7984f59efe9a9f00419ca729
C++
9,268
278
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/cpu/MaxUnpoolKernel.h> #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/native/cpu/utils.h> #include <c10/util/irange.h> #include <optional> namespace at::native { namespace { template <typename scala...
4a4a4a9fe8e3c75b82f2a0acc355ff256ce20266f6cbc3400f6689a3fe08b484
C++
9,370
242
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/empty.h> #include <ATen/ops/empty_like.h> #include <ATen/ops/miopen_batch_norm_native.h> #include <ATen/ops/miopen_batch_norm_b...
59af45b8a3284100b421e8ab812e4fd524058f0a1b4c8e66c79ded5efc257a59
C++
9,381
269
/*************************************************************************** * * 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...
1b59278272a2baa2edbc77e0003aff52acd0f0d3ae6cf84636c09069b9efe799
C++
9,435
298
/* 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 <vector> #include <iostream> #include "src/ml_optimiser.h" #include <hip/hip_runtime.h> #inc...
3bb8945c8dc64abb4f077d216582d52f07bbc4ecdbbe6658046142f0d865cf32
C++
9,452
315
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Config.h> #include <c10/util/error.h> #include <thread> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/_nnpack_available_native.h> #include <ATen/ops/_nnpack...
cda6bb444893735e6bf64fc598f5add02c80ee7ccf18d6ee79d31197f8898d99
C++
9,552
251
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN_LEAKY_LAYERS: Layering algorithm based on iterative smothing.\n" "\n" " This program derives 20 layers from GM/WM and GM/CSF border lines.\n" "\n" "Usage:\n" " LN_LEAKY_LAYERS -rim rim.nii -dim 2 \n" " ../LN_LEA...
221634424794624afd51a6a1693efd1dd897591bc93c07dc7b50b617c0976397
C++
9,610
367
/*************************************************************************** * * 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...
70e8821857fd93a10e7dfedab170ff8ebaa3bbb2d4c5d3fc8e6f8b4f2da6b354
C++
9,613
296
#include <ATen/native/quantized/AffineQuantizer.h> namespace at::native { DEFINE_DISPATCH(quantize_tensor_per_tensor_affine_stub); DEFINE_DISPATCH(quantize_tensor_per_channel_affine_stub); DEFINE_DISPATCH(quantize_tensor_per_channel_float_qparams_stub); DEFINE_DISPATCH(dequantize_tensor_per_tensor_affine_stub); DEFI...
5e5cc1d15aef840a177a385dc3bb75c2f95190026c13b92191b880f5e4314c60
C++
9,616
245
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN_DIRECT_SMOOTH : Smoothing in specific directions only.\n" "\n" "Usage:\n" " LN_DIRECT_SMOOTH -input activty_map.nii -FWHM 1 -direction 1 \n" " LN_DIRECT_SMOOTH -input bico_VASO.Mean.nii -FWHM 0.5 -direction 3 -laurenzian \n...
5c69f4f10e056d43a8dfd88ac3f672ba9e60638401f70b1ba235dc589e97076d
C++
9,640
323
/*************************************************************************** * * 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...
fabb6682ea81fee9011595749eed33fed8fdf55c086913aa176949062c37e74f
C++
9,677
334
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/native/LossMulti.h> #include <c10/util/irange.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/emp...
1858a4e88d3c3cc305b799b4f32fb19156b27369e7d919e8739c18840e9cb728
C++
9,685
246
/*************************************************************************** * * 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...
96ed4f2eed58ee7c60f55d42ad1c727e60a8b78e7fc6bc8dbba5670e4022afcd
C++
9,698
320
#include <ATen/core/op_registration/op_registration.h> #include <ATen/native/mkldnn/xpu/detail/oneDNN.h> #include <ATen/native/mkldnn/xpu/qconv.h> #include <c10/core/MemoryFormat.h> #include <c10/core/ScalarType.h> #include <torch/library.h> using namespace at::native::onednn; namespace at::native::xpu { inline c10:...
1378080ed3df3ae82bba18f26052eb02ed520834f6e3ce163d8ec3c87caa6a62
C++
9,710
310
/*************************************************************************** * * 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...
00760fbe852b39136eeb7ede7fcd1767055e2b446a07c67e3087e4be61045665
C++
9,724
276
#include <ATen/functorch/DynamicLayer.h> #include <torch/library.h> #include <ATen/ATen.h> #include <ATen/functorch/BatchedTensorImpl.h> #include <ATen/Dispatch.h> #include <c10/util/irange.h> #include <c10/util/Exception.h> #include <ATen/native/LinearAlgebraUtils.h> #include <ATen/native/xnnpack/Engine.h> #include <...
c61f15876135fb43a17344114930661673b325d182b401ae350c28861ba85553
C++
9,758
284
#include <pytorch_qnnpack.h> #include <qnnpack/log.h> #include <qnnpack/operator.h> #include <qnnpack/pack.h> #include <qnnpack_func.h> #include <cstring> namespace qnnpack { PrePackConvWeights::PrePackConvWeights( const pytorch_qnnp_operator_t convolution, const uint8_t* kernel_zero_points, const uint8_t...
64bcd52a4426a40d6dcc49355f92100d86114d15838545c678e33164b3b0348e
C++
9,767
378
/* * 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...
e8f378158058782958b02a21a9b7c55765da5e7a00b16b8c3249085f6fb5fb5a
C++
9,796
255
//****************************************************************************************************************************************************** // Processor.cpp // Author: Kevin Iamiceli // Modified March 9, 2003 // Version 3.00 //********************************************************************************...
53b5f5de4dd728fd095fbc90ec8dee4bdf4df557424d328bc56d3838d67f731e
C++
9,799
244
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN2_MASK: This program is intended to help with voxels section for layer-profile extraction\n" " It generatees binary masks that span across all cortical depths. This is done to\n" " minimize circularity of only extracting...
f73de1e4d814b7056cad0c747ba10743432f1501b93abdcf9c48e64020082044
C++
9,873
215
// Dear ImGui: standalone example application for SDL2 + OpenGL // (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan/Metal graphics context creation, etc.) // Learn about Dear ImGui: // - FAQ https://dearimgui.com/faq // - Getting Started https://dearimg...
117e956625afb63b762ce7b592acb04572d2ec9c6820dc70ca2b06fa0418478b
C++
9,875
260
//******************************************************************************************************************** // Processor.cpp //******************************************************************************************************************** #include "ProcessorEV.h" //*************************************...
00257c14f03dd2f8c8f2d8a586c63890e093f368edcbd6219100886dc6aa76ee
C++
9,880
288
#include <ATen/native/quantized/AffineQuantizerBase.h> #include <c10/util/irange.h> #include <limits> #ifdef USE_FBGEMM #include <fbgemm/QuantUtils.h> #endif #ifdef __ARM_NEON__ #include <arm_neon.h> #endif namespace at::native { namespace { template <typename T> void checkZeroPoint(const std::string& fn_name, int...
5d29e2ed78947e665420166f97dc94b85cf727a7940becd7e9b8cea488af7ab9
C++
9,881
333
/*************************************************************************** * * 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...
929720fd17900a2333f59d94a61831a41123fe38caf6df5f70829a9d0365ed8e
C++
9,883
356
#include "star_converter.h" void StarConverter::convert_3p0_particlesTo_3p1(const MetaDataTable &in, MetaDataTable &outParticles, MetaDataTable &outOptics, std::string tablename, int box_size, bool do_die_upon_error) { int ver = in.getVersion(); int curVer = MetaDataTa...
fa8bde72bb00d2a350d41757664a4bc5dfd43d323290223555fafdabde209c64
C++
9,970
311
#include <ATen/CPUGeneratorImpl.h> #include <ATen/EmptyTensor.h> #include <ATen/core/MT19937RNGEngine.h> #include <algorithm> namespace at { namespace detail { /** * CPUGeneratorImplStateLegacy is a POD class needed for memcpys * in torch.get_rng_state() and torch.set_rng_state(). * It is a legacy class and even ...
117e11ce83e07b897b142325d531d081eebca2a086d655127cfa9decba8ecbbd
C++
10,009
265
#include <ATen/ATen.h> #include <ATen/Dispatch.h> #include <ATen/NativeFunctions.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/cpu/Loops.h> #include <ATen/native/quantized/FakeQuantAffine.h> #include <c10/util/irange.h> // FakeQuantize Op for PerChannelAffine quantization scheme. namespace at::nat...
fe098ea14f5465795fa99fb1d6851f5e1cf2b07fe02b079298e906b3ca676560
C++
10,022
262
//******************************************************************************************************************** // Processor.cpp //******************************************************************************************************************** #include "ProcessorVT.h" //***********************************...
8a212f3bb1c5975c4abd24838215d583238b2aeb59b39c0c7d0464841c1daaca
C++
10,051
255
//****************************************************************************************************************************************************** // Processor.cpp // Author: Kevin Iamiceli // Modified March 9, 2003 // Version 3.00 //***************************************************************************...
be6aa8eae3c946451a802bf1f99606965691b201f02cb7d1ea0c662856a9c1c4
C++
10,062
371
//******************************************************************************************************************** // TimeBuf.cpp: implementation of the SpikeBuf claTime. //******************************************************************************************************************** #include "TimeBuf.h" #ifd...
472e5a4d2bcbab7c2ea8e3feca0fe50ba2d3bdffc2015be9b9182d5c0c80278c
C++
10,075
246
#include <ATen/ATen.h> #include <ATen/NestedTensorImpl.h> #include <ATen/native/nested/NestedTensorUtils.h> namespace at::native { static TensorOptions verify_empty_parameters( const at::Tensor& self, std::optional<ScalarType> dtype, std::optional<Layout> layout, std::optional<Device> device, std...
5345cf0dd1838448fc842daa71b4b164b55b82b208c2ea5b205131176fe12b91
C++
10,079
250
#include "../dep/laynii_lib.h" #include <sstream> int show_help(void) { printf( "LN2_LAYERDIMENSION: This program switches the layer dimensions into nifti time dimension.\n" " This can be useful to browse layer profiles using the time course viewers\n" " of FSLEYES...
ba05520f19f2fe9859574e0e9755ceb49d37294623c6556984f16c4aa8430650
C++
10,084
397
/* * 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 "add-operator-tester.h" TEST(ADD_OP, zero_batch) { AddOperatorT...
482e258d8fb0259cbb065422150c386412e787d9b6ee156c4ad5088d2748651b
C++
10,105
257
#include "../dep/laynii_lib.h" #include <sstream> int show_help(void) { printf( "LN2_PHASE_GRADIENTS: Compute spatial gradients of a phase image using circular.\n" " difference. Uses 1-jump voxel neighbors for computations.\n" "\n" "Usage:\n" " LN2_PHASE_GRADIENTS -input ...
5bd27c6de862e21b00b3b09e9291f0d4ce5ffd756caffa46a7f8f6aaa1c009e5
C++
10,135
260
//******************************************************************************************************************** // Processor.cpp //******************************************************************************************************************** #include "ProcessorEV.h" //********************************...
ff5d1578c1fd7f607b87bb57de41ff7e77cb3bcfac376fa7507f05b586093ae0
C++
10,136
282
#include <ATen/cuda/CachingHostAllocator.h> #include <ATen/cuda/CUDAEvent.h> #include <c10/core/thread_pool.h> #include <c10/cuda/CUDAAllocatorConfig.h> #include <c10/cuda/CUDAGraphsC10Utils.h> #include <c10/util/Gauge.h> #include <cuda_runtime_api.h> #include <future> namespace at::cuda { namespace { using Block =...
f276eeaec4eac6984c846d0d95972fa96285c2555b351db384cea303f9ed0c2e
C++
10,145
292
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/native/Pool.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/empty.h> #include <ATen/ops/max_pool3d_with_indices_backward_native.h> #include <ATen/ops/max_poo...
13db502eecdf9e440b242002a98f1c67b4adc0ec0144fcc1851d3bab03e510a8
C++
10,164
243
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/_pack_padded_sequence_backward_native.h> #include <ATen/ops/_pack_padded_sequence_native.h> #include <ATen/ops/_pad_packed_sequ...
27c0c7a906d19625d1538783535ddc3ad0e300fc79ecc53a064cbe744ebf89df
C++
10,211
240
/** Resamples f(t) by computing the average in bins of width deltaT aligned to t0 (t0 is constrained to be a bin center). */ #include <mex.h> #include <vector> #include <cmath> #include <algorithm> template<typename Number> void copyRow(std::vector<Number>& target, const mxArray* source, const mxClassID...
650b957125c822dc94464f980a056f1b4e73fd7704c3218476d8dc4ead38b3f0
C++
10,251
269
#include "wx/wxprec.h" #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "./../../stf.h" #include "./eventdlg.h" #include "./../app.h" enum { wxID_COMBOTEMPLATES, wxID_CRITERIA, wxID_POLARITY, wxDETECTIONCLEMENTS, wxDETECTIONJONAS, wxDETECTIONPERNIA }; BEGIN_EVENT_TA...
2b4942b1392ee0359e20f67841358896a28c9664136ab0245985e616f1add32a
C++
10,262
377
/*************************************************************************** * * 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...
99ec2141d87ff4c5e4e1ce92dbd177978140d6d05bf332564bbdeaa5798c9e3a
C++
10,284
262
//******************************************************************************************************************** // Processor.cpp //******************************************************************************************************************** #include "ProcessorVT.h" //****************************...
b11d4cc2991e26e3fc66af61021ea3e90282cdc7e5e0d00d6c945061faf0ea10
C++
10,300
268
#include "udp_receiver.h" #include <iostream> #include <cstring> #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> #include <stdexcept> #include <vector> UDPReceiver::UDPReceiver(UDPClient& udp_client) : udp_client_(udp_client), running_(false), ready_(false), recv_pkg_fd_(-1), ...
6dc876a44be79c72c2b4fc222e85c075139e5ea55b71fa7c3300f49b2e02e1c0
C++
10,318
329
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/TensorUtils.h> #include <ATen/native/LossMulti.h> #include <c10/util/irange.h> #include <utility> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <AT...