sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
03d789d389f9f259f59331ae49e6945e3da764ded96ff5ddf055af2ed11979b1
C++
10,375
247
// 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 <c10/core/SymIntArrayRef.h> namespace at::functorch {...
9ccf1b52de07bf2a73582b7c81af6ecb9d42f101d999e9b124e728c4fb29dd87
C++
10,402
419
#include "prediction.h" #include "particle_set.h" #include "projection/fwd_projection.h" #include "reconstruction.h" #include "tomo_ctf_helper.h" #include "tomolist.h" #include "tomogram.h" #include "reference_map.h" #include <src/jaz/image/centering.h> #include <src/jaz/image/power_spectrum.h> #include <src/jaz/image...
f1bbe0ea86e0954cbdddbfe3c1a83d43d301547419b81719761266d0d018d282
C++
10,416
255
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN_INTPRO: Do maximum and minimum intensity projections. For example,\n" " this is useful for visualizing vessels.\n" "\n" "Usage:\n" " LN_INTPRO -image file.nii -min -direction 3 \n" " ../LN_INTPRO -image sc_U...
08dbf8813284a1f8d94a2f660b20e364112d0e97b89423b950471f184c8137f5
C++
10,433
371
//******************************************************************************************************************** // TimeBuf.cpp: implementation of the SpikeBuf claTime. //******************************************************************************************************************** #include "TimeBuf.h" ...
af687bef97ea8dbd3ffbe98b48091e4ed5234d69df3dbf494772278900d0a756
C++
10,441
315
#include "wx/wxprec.h" #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include <wx/stdpaths.h> #include <wx/dir.h> #include <wx/checkbox.h> #include "convertdlg.h" #include "./../app.h" enum { wxCOMBOBOX_SRC, wxCOMBOBOX_DEST, wxGENERICDIRCTRL_SRC, wxGENERICDIRCTRL_DEST }; BEGIN_EVENT_TABLE( wxStfConv...
d7b289b6190bd63006b0ac2c84a21f4095028491db7ea58a8c46a3cd12524780
C++
10,466
370
/* Provides the implementations of MKL Sparse BLAS function templates. */ #define TORCH_ASSERT_NO_OPERATORS #include <ATen/mkl/Sparse.h> #if AT_USE_MKL_SPARSE() #include <ATen/mkl/Exceptions.h> #include <ATen/mkl/SparseBlas.h> namespace at::mkl::sparse { namespace { template <typename scalar_t, typename MKL_Compl...
7e62e0a11f839dab20eabc830bccfb4d270c20b90677353b8698001f5a15901f
C++
10,525
246
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/native/BucketizationUtils.h> #include <ATen/native/Resize.h> #include <c10/util/irange.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #else #include <ATen/ops/em...
ca8834dcbc64d05806ac607e8cd6b50cff8890cf33f73e78eabefbfecef95da2
C++
10,555
465
/*************************************************************************** * * 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...
ab150a34fa12b5f89ffba06777b9fd55cba477759820c1aeaeed699988cd4fe3
C++
10,567
286
#include <ATen/native/nested/NestedTensorMath.h> #include <ATen/ATen.h> #include <ATen/AccumulateType.h> #include <ATen/WrapDimUtils.h> #include <ATen/core/op_registration/op_registration.h> #include <ATen/native/layer_norm.h> #include <ATen/NestedTensorImpl.h> #include <ATen/native/nested/NestedTensorUtils.h> #inclu...
657bf2d3e5e83ae2ecb0749237f1bcb9f6bbc083761d61756af8630c9522ef41
C++
10,592
271
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/PadNd.h> #include <ATen/core/Tensor.h> #include <c10/util/irange.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/_pad_circular.h> #include <...
e5e6f76aafe699d78475ab62c5e9d19afa692019666b01075b01759f7585b5ac
C++
10,649
317
/*************************************************************************** * * 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...
d9d8276c28e4df1bddb8014a5345bcaaafdf56b142244f0d50a787ff8a3907d8
C++
10,669
297
// 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 useful, ...
32f68929a416fc72d0a54b34fd3215ace2c340daa04416544dead7b912be406e
C++
10,689
446
#include "spectral_ctf_cost.h" #include <src/jaz/image/interpolation.h> using namespace gravis; #define DEFOCUS 0 #define ALPHA 1 #define BETA 2 #define SCALE 3 #define BFAC 4 #define ZETA 5 #define PARAM_COUNT 6 #define Z_SCALE 1e2 #define B_SCALE 1e-4 SpectralCtfCost::SpectralCtfCost() : num_threads(1), k0(0),...
9c73304aaecccc68939fd807cec1d75dc51a1c12a69c0dcb0a592b8bc298e5d6
C++
10,699
303
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/TensorMeta.h> #include <ATen/native/UpSample.h> #include <c10/util/irange.h> #include <ATen/Parallel.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else ...
36f426aacefaecd6ceeec23ce2bbf3a92e48a18345a18188174e7be6a0ca8252
C++
10,716
278
#include <torch/extension.h> #include <cuda.h> #include <cuda_runtime.h> #define CHECK_CUDA(x) AT_ASSERTM(x.type().is_cuda(), #x " must be a CUDA tensor") #define CHECK_CONTIGUOUS(x) AT_ASSERTM(x.is_contiguous(), #x " must be contiguous") #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x) #define CHECK_ARRAY(x)...
89754bc4bb782d9840a5446b32ece609234d95d4cf18303beba59b597f8fc11e
C++
10,754
369
/*************************************************************************** * * 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...
3f402212ce8ac7cb44c61a1350827c061507cb25aeb3f0a0afdc787235382565
C++
10,813
262
#include <pybind11/pybind11.h> #include <pybind11/numpy.h> #include <algorithm> #include <cmath> #include <complex> #include <stdexcept> #include <vector> namespace py = pybind11; // Use pybind11's ssize type (portable across Windows/Linux/macOS) using ssize = py::ssize_t; static inline ssize rfft_len(ssize n) { re...
eb13079e97fcccb441ee82ab1283e780648cf809561a954108e782cc5441b4f9
C++
10,827
406
#include <ATen/core/Formatting.h> #include <c10/util/irange.h> #include <fmt/compile.h> #include <fmt/format.h> #include <fmt/ostream.h> #include <cmath> #include <cstdint> #include <iostream> #include <iterator> #include <string> namespace c10 { std::ostream& operator<<(std::ostream& out, Backend b) { return out <...
c9a178ae762ab684b14be0e8b52a62c74b74015babf478a98e73c2540ed5c13b
C++
11,000
502
/* * 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/sgem...
64684eee42024bac64b9b3f88dae8e3c8603eddecd641bddd433e184c152beca
C++
11,006
431
/*************************************************************************** * * 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...
046be34768d61fa7ce49cba96d6191f4c859d32579a8f341a99cd77b0a595b9e
C++
11,035
419
#include "template_picker.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/image/power_spectrum.h> #include <...
3d61551573000be00500ca378cc2aca700991420748ea829e0466a3c295a033b
C++
11,052
253
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/CPUGeneratorImpl.h> #include <ATen/Dispatch.h> #include <ATen/Generator.h> #include <ATen/core/DistributionsHelper.h> #include <ATen/native/Distributions.h> #include <ATen/native/cpu/DistributionTemplates.h> #include <ATen/native/UnaryOps.h> #ifndef AT_PER_OPE...
61263ed052cf6352a7c3c5a95c52b4829b233550cee2b8c6bdfa2c1924f72002
C++
11,065
326
#include "../dep/laynii_lib.h" #include <fstream> int shoq_help(void) { printf( "LN2_COLTRIAN: WORK IN PROGRESS... EXTREMELY EXPERIMENTAL!\n" " Column triangulation.\n" "\n" "Usage:\n" " LN2_COLTRIAN -input1 columns.nii\n" "\n" "Options:\n" " -help : Show this ...
6579028e89eb440ab0e979dff3d525cbb895f712c616624aed4cd9e15b28ec72
C++
11,071
283
#include <mex.h> #include "utilities.h" mxClassID createArrayLike(const mxArray* inArray, mxArray*& outArray, const mwSize nDimensions, const mwSize* outSize) { const mxClassID dataClass = mxGetClassID(inArray); switch (dataClass) { case mxCELL_CLASS: outArray = mxCre...
18f868bfa7a48c75be47846a390315ed51291f14518fbaf3aced6ee7398b700b
C++
11,160
561
#include "convert_projections.h" #include <src/jaz/tomography/projection/projection.h> #include <src/jaz/tomography/extraction.h> #include <src/jaz/util/image_file_helper.h> #include <omp.h> using namespace gravis; void ConvertProjectionsProgram::run() { t3Vector<long int> stackSize = ImageFileHelper::getSize(tsFn)...
1ca290d206c69dcaae5105568df33a262e995dcb3413a2520ba22693fa21622f
C++
11,187
322
#include <c10/xpu/XPUFunctions.h> #include <ATen/native/mkldnn/xpu/detail/Attr.h> #include <ATen/native/mkldnn/xpu/detail/DnnlExt.h> #include <ATen/native/mkldnn/xpu/detail/Utils.h> #include <oneapi/dnnl/dnnl.hpp> #include <cstdint> namespace at::native::onednn { void woq_matmul_int4_impl( Tensor& result, c...
7f5e58ba8f3b96a1715ee228ddaf796b0a555fa06093a2d51753901c04f2e1ce
C++
11,240
399
#include <ATen/core/dynamic_type.h> #include <string> #include <ATen/core/class_type.h> #include <ATen/core/ivalue.h> #include <ATen/core/jit_type.h> #include <ATen/core/type_factory.h> #include <c10/util/Exception.h> namespace c10 { namespace { bool contains(DynamicType::Tag lhs, DynamicTypeBits rhs) { return (...
f2ae1323f8b4c6e48c01647505b1b022ed9212b101384ff14d66e1a1e89cbfd2
C++
11,264
455
/*************************************************************************** * * 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...
c2967475ea96489feb8a79c3db7e5b6abd45a2f4425feeebdabbcb2ffdf678c0
C++
11,265
265
// Ternary and higher-order pointwise operations #define TORCH_ASSERT_NO_OPERATORS #include <ATen/Dispatch.h> #include <ATen/native/PointwiseOps.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/cpu/Loops.h> #include <c10/core/Scalar.h> #include <ATen/cpu/vec/functional.h> namespace at::native { namespac...
4178323609b2c6dd61a9e60dfe249db5bfc78f892a67651c31d91cc1501ef8df
C++
11,290
348
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/cuda/CUDAConfig.h> #include <ATen/cuda/CUDAGraphsUtils.cuh> #if AT_CUDNN_ENABLED() #include <ATen/cudnn/Descriptors.h> #endif #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #incl...
be1e745ef5724dbf99df8710e34b8e95825e12bd8cbc7d31ad6d302d60ec59b1
C++
11,304
253
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <iostream> #include "../dep/nifti2_io.h" #include "../dep/laynii_lib.h" int show_help(void) { printf( "LN_CONLAY: This program consenses the layers on a lower resolution grid \n" " This can be useful, when the layerification has b...
2664f1d135494e0f93f721ec890f8f4debf35f9d415dd05511392e75639bd71c
C++
11,339
376
/*************************************************************************** * * 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...
026cff5cc38669f827bce00f237081a6e1410ef3262afae9953bb0eda55c8b15
C++
11,344
407
#include "frame_alignment_program.h" #include <src/ctf.h> #include <src/jaz/tomography/tomogram.h> #include <src/jaz/tomography/motion/proto_alignment.h> #include <src/jaz/tomography/projection_IO.h> #include <src/jaz/tomography/prediction.h> #include <src/jaz/tomography/extraction.h> #include <src/jaz/image/interpolat...
620998265cad8566d921f2bf710bc73c5120d7e7a7425ab55b6e7267aedff26d
C++
11,348
295
#include <ATen/LegacyVmapTransforms.h> #include <c10/util/irange.h> namespace at { // Checks if the batch dims in `bdims` appear at the front of the tensor. static bool areBdimsAtFrontInOrder(BatchDimsRef bdims) { for (const auto idx : c10::irange(static_cast<int64_t>(bdims.size()))) { if (bdims[idx].dim() != i...
0776a8705fbdb13e9567cbc0ffeb45c910df05d97b52c39f5cb60cc29e36551a
C++
11,398
581
#include "imod_import.h" #include <src/jaz/tomography/projection/projection.h> #include <src/jaz/tomography/extraction.h> #include <src/jaz/util/image_file_helper.h> #include <src/jaz/util/log.h> #include <src/jaz/util/zio.h> #include <omp.h> using namespace gravis; ImodImport::Mapping ImodImport::import() { if (in...
275236bfa18dd9a83dcb4ec701f870bec9d3209d4468f8388ee06980c720c0f2
C++
11,402
291
#include "../dep/laynii_lib.h" #include <sstream> #include <vector> #include <algorithm> #include <numeric> // ============================================================================ // NOTE(Faruk): From <https://stackoverflow.com/questions/1577475/c-sorting-and-keeping-track-of-indexes> template <typename T> vec...
0ddec2739e41473e47f37474ebb6bd0edb29cd6d1e339cc87c33ce513f3ff459
C++
11,428
343
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Context.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/native/quantized/cpu/QuantizedOps.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen...
3f2e7e3341b8d5e99351070d05ce8520b45456455c4a0470eceb0d94ed0aa70a
C++
11,431
398
#include "aberration_estimator.h" #include "tilt_helper.h" #include "ctf_refiner.h" #include <src/jaz/single_particle/obs_model.h> #include <src/jaz/single_particle/reference_map.h> #include <src/jaz/single_particle/img_proc/image_op.h> #include <src/jaz/single_particle/complex_io.h> #include <src/jaz/single_particle/...
235cf8b6d381a1a94a7f1c8cacf172b1490dc3941a7e0506118fccc4edeea54e
C++
11,442
321
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/native/Resize.h> #include <ATen/native/ResizeCommon.h> #include <ATen/TensorSubclassLikeUtils.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/NativeFunctions.h> #else #include <ATen/ops/resize_as_native.h> #include <ATen/ops/resi...
104df8522fe6fc7e09e2074ba310c5a6a550cef6daf5f10584f4180ccd64867e
C++
11,461
291
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Parallel.h> #include <ATen/native/quantized/cpu/EmbeddingPackedParams.h> #include <ATen/native/quantized/cpu/fbgemm_utils.h> #include <ATen/native/quantized/cpu/qembeddingbag.h> #include <ATen/native/quantized/library.h> #include <c...
8008a56727be554d27bf7c12fc15367a1c7af80ccbd60c7599c7acc7a83f7ae1
C++
11,526
375
#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/matrix2d.h> #include <src/jaz/single_particle/image_log.h> #include...
4ab8552a565db530f7cf37de25d9af6a26b162f5561770de933d5022c163da0e
C++
11,608
254
#include <ATen/InitialTensorOptions.h> #include <ATen/SparseCsrTensorImpl.h> #include <ATen/SparseCsrTensorUtils.h> namespace at { SparseCsrTensorImpl::SparseCsrTensorImpl( at::DispatchKeySet key_set, at::Device device, at::Layout layout, const caffe2::TypeMeta data_type) : SparseCsrTensorImpl( ...
f557600134fcc1276351b3a96148c38ef04ddab0d7d9f98557ba086ce172a77f
C++
11,655
509
/*************************************************************************** * * 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...
dc8ee59e08c787913d752be12bb078ff587ec21fcd56da42f8cc4fd14f89e1f3
C++
11,666
509
#include "motif.h" #include "motif_alignment.h" #include "motif_refinement.h" #include <src/jaz/mesh/mesh_builder.h> #include <src/jaz/optimization/lbfgs.h> #include <src/jaz/optimization/gradient_descent.h> #include <src/jaz/optimization/nelder_mead.h> #include <omp.h> using namespace gravis; Motif::Motif() { } Mo...
a115a999a39b545c0d981842009952b0fff116191de05b4263b9a8ce584c1022
C++
11,697
291
#include "../dep/laynii_lib.h" #include <sstream> int show_help(void) { printf( "LN2_PHASE_LAPLACIAN: Compute spatial Laplacian of a phase image using circular.\n" " differences. Uses 1-jump voxel neighbors for computations.\n" "\n" "Usage:\n" " LN2_PHASE_LAPLACIAN -input...
8835cebee30e413a4b4c5869cf8641ef1e7f8872683ac6918abc7ee89c2e1271
C++
11,751
282
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN_SKEW: Calculates mean, standard deviation, tSNR, skew, kurtosis, \n" " autocorrelation of timeseries and more. This is helpful for\n" " artifact hunting (e.g. ghosting).\n" "\n" "Usage:\n" " LN_SKEW -input ...
0c6a1a13bae8c775532923c1a507307c8c783d6889b8537c9e2a1177675e9377
C++
11,752
332
#include <ATen/native/nested/NestedTensorMath.h> #include <ATen/native/nested/NestedTensorBinaryOps.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #include <ATen/NestedTensorImpl.h> #include <ATen/ScalarOps.h> #include <ATen/TensorIndexing....
55d29a8e91b029bb36a74b6fd9194889c168043f1eb31b49da003f8e2b69cf68
C++
11,781
308
/*************************************************************************** * * 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...
f98a7c649023b1de52316109ec7fdf77ed45a8be10c6a2a2b61b41eaf5c1adde
C++
11,788
289
#include <ATen/cuda/detail/LazyNVRTC.h> #include <ATen/cuda/nvrtc_stub/ATenNVRTC.h> #include <ATen/DynamicLibrary.h> namespace at::cuda::detail { namespace _stubs { at::DynamicLibrary& getCUDALibrary() { #if defined(_WIN32) static at::DynamicLibrary lib("nvcuda.dll"); #else static at::DynamicLibrary lib("libcu...
f7c293a4b2016bb55a264f9814bd66e5cf7d220b1d904e3689bd7d6629b7de0d
C++
11,790
349
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <c10/util/irange.h> #include <ATen/native/AdaptivePooling.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/_a...
d931b8ec2a489065c2dd278ca99961b7e6443cb77eab9dd2717d41555670fa7d
C++
11,814
316
#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> #endif namespace ao::sparse { namespace { constexpr int64_t serialization_version_index [[maybe_unused]] = 0; constex...
c87f7cd97e28052a3317d3ff5d56a14c4e7c9648da0ec36c431b13b9c9711149
C++
11,859
359
// 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...
11580d1d5be6502e51d5cc6903e67d9d4b4c63e93183778968ae23197a12b847
C++
11,882
315
#ifndef __AXIDMA_CPP__ #define __AXIDMA_CPP__ #include "axi_dma_klib.hpp" Axidma_k::Axidma_k(void) : MIN_READ_TRANSFER_LENGTH_BYTES((unsigned int) pow(2, 3)), MAX_READ_TRANSFER_LENGTH_BYTES(BUFFER_SIZE*sizeof(uint32_t)), MAX_WRITE_TRANSFER_LENGTH_BYTES(BUFFER_SIZE*sizeof(uint32_t)) { read_transfer_length_bytes = ...
56b040d20dcf121e1a633ab39b1b2f770657ca36ddbfcb9c1f5b98bdbdcc9cc0
C++
11,883
328
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/RangeFactories.h> #include <ATen/native/RangeUtils.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/TensorIterator.h> #include <c10/util/irange.h> #include <cmath> #ifndef AT_PER_OPERATOR_HEADERS #i...
586d9911aea0402f29a3ba179b64dd0a31d67cd053552e66f7411e3bdaafec29
C++
11,995
389
// 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...
fd697d4dac187c385bde2c903d16ae32923fed0a28182686fff5be473112f792
C++
12,064
474
/*************************************************************************** * * 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...
a13d13302b63e9595485dbdb45ea20e76bfbb58ae25e59921a9fa4d752c226f9
C++
12,089
412
/*************************************************************************** * * 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...
3bdb91dcd32e34a3a2d7b39710d2a3570b7fb9e0e38acdb7c63c7750b013b4d6
C++
12,099
472
#include "tomogram.h" #include "projection_IO.h" #include "tomo_ctf_helper.h" #include <src/jaz/optics/damage.h> #include <src/jaz/image/power_spectrum.h> #include <src/jaz/tomography/particle_set.h> using namespace gravis; Tomogram::Tomogram() { } void Tomogram::setProjectionMatrix(int f, RFLOAT xtilt, RFLOAT yt...
0fe56dd08c859fd7f090a491521263550a8786b60e745bceb0948d0417853e45
C++
12,108
314
#include "../dep/laynii_lib.h" #include <sstream> #include <set> int show_help(void) { printf( "LN2_SKELETONIZE: Compute skeleton.\n" "\n" "!!!EXPERIMENTAL!!!\n" "\n" "Usage:\n" " LN2_SKELETONIZE -input input.nii\n" " ../LN2_SKELETONIZE -input input.nii\n" "\n" "Options:\n...
63ba6d0e766cd4fb4e10345db1c82a8ae84423087e92a04fb1a8928f2c2c36c4
C++
12,113
318
#include <torch/library.h> #include <ATen/core/dispatch/Dispatcher.h> #include <fmt/format.h> namespace torch { namespace { // TODO: Consider representing debug info as a struct instead so you // don't have to allocate strings all the time std::string debugString(const char* file, uint32_t line) { #ifdef STRIP...
d186fa69ee12efc059e8f267d3567cc70a3333557c5cd4736a82da0904aa3857
C++
12,125
432
/*************************************************************************** * * 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...
d33bb83eb8c5e33e9cbade6cdf10a4fd173a4b56fe8228934627b499fb0d57a9
C++
12,230
543
/*************************************************************************** * * 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...
681ff9f1163094f8176cca6be569a7adc7652af4e45c80d96e5e16a0f3ad3742
C++
12,272
430
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/DispatchStub.h> #include <array> #include <c10/util/Exception.h> #include <c10/util/env.h> #if !defined(__s390x__) && !defined(__powerpc__) #include <cpuinfo.h> #endif #include <algorithm> #ifdef HAVE_ZVECTOR_CPU_DEFINITION #include <sys/auxv.h> #endif...
2a2f6d705130814b0607bf75005628f838ad2cf5028b35d4928789b3e5e3a83b
C++
12,275
363
// Copyright 2007, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
8938643a26c2f4996fe8bfe8201a4ddb59ab0929f5efa797eecf6eec90bc3e9f
C++
12,367
400
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/TensorMeta.h> #include <ATen/native/FractionalMaxPooling.h> #include <c10/util/irange.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctio...
86328fd1e24fe37e1ea78b7f29c93c4e7652db80eb42bcfd3d9bf5fb8eee4006
C++
12,388
365
/*************************************************************************** * * Author: "Sjors H.W. Scheres" and "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 ...
2a8a51a4b2dba6ebbf39ee389c32cdc8025838f42919d11624035d4cbf4fc99a
C++
12,566
382
#include <ATen/core/Tensor.h> #include <ATen/ops/empty.h> #include <ATen/native/mkldnn/xpu/detail/Attr.h> #include <ATen/native/mkldnn/xpu/detail/Utils.h> #include <oneapi/dnnl/dnnl.hpp> namespace at::native::onednn { constexpr int src_batch_size_dim = 0; constexpr int weight_dst_channels_dim = 0; dnnl::memory::d...
ec3c936e5276c01c243cde02dad5a1831f7604c3af87c6e909b997c46f71b1e7
C++
12,604
517
/* * 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 "deconvolution-operator-tester.h" _STATIC_AND_RUNTIME_TEST(DECONV...
9c41554ed1a0df2cd0e953bc82bffffb14d777ff1ed335a9fd79e343cd04eb00
C++
12,659
265
// // cellsxfun.cpp // Copyright Stuart Yarrow 2010/03/24 (s.yarrow@ed.ac.uk) // All rights reserved. // // Based on mAryCellFcn.ccp by Michael Brost (michaelbrost@yahoo.com). // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as pu...
218e8c620f39a8ee78124cd7ace01e10e622e0208d1acb3aa2d1108d4aa30d7c
C++
12,671
457
#include "computeMatrices.h" #include<RcppArmadillo.h> #include<Rcpp.h> #include "utils.h" // [[Rcpp::depends(RcppArmadillo)]] // [[Rcpp::plugins(openmp)]] using namespace Rcpp; arma::vec computeYStar(arma::mat X, arma::vec curr_beta, arma::mat Z, arma::mat Dinv, arma::vec curr_u, arma::vec y, a...
f056f2e8046d099af1af6ca501b37f6520c2b4ecf341b559877195139549cc86
C++
12,719
438
#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 <c10/util/irange.h> #include <c10/util...
40612556a6969607cabec8d9c154c9d29fd48360756b10d800d162093584c49b
C++
12,735
308
#include "../dep/laynii_lib.h" #include <limits> #include <sstream> int show_help(void) { printf( "LN2_INTPRO: Intensity projections. Useful for e.g. highlighting vessels.\n" "\n" " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" " !!! WIP: Need to add maximum projection !!!\n" " !!!!!!!!!!!!!!...
c3086613157fdc6fcea7100677957a1f80370deee5a755ea51f007a085d1b9d9
C++
12,792
346
#include "../dep/laynii_lib.h" #include <sstream> int show_help(void) { printf( "LN2_PEAK_DETECT: WIP... maximum filter to detect image peaks.\n" "\n" "Usage:\n" " LN2_PEAK_DETECT -values activation.nii -max\n" "\n" "Options:\n" " -help : Show this help.\n" " -values ...
86c3b65fe15f15687cac44e2b19b527cdfef9686cc0cb831b3e5aa020b8d90dc
C++
12,815
531
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/native/Unfold3d.h> #include <ATen/Config.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <c10/util/irange.h> #if AT_MKL_ENABLED() #include <mkl.h> #endif // AT_MKL_ENABLED() namespace at::native { namespace { b...
cd4eb3ad963b35b167fa48d7ed756b69d14e682bdb8e35bbdbde5374ef5784bb
C++
12,817
342
/*************************************************************************** * * 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 ...
1bcde0589d77c4723a95c042f6dde873f9d9f71d782bc4724bd55d4345823021
C++
12,851
359
#include <ATen/native/quantized/cpu/ACLUtils.h> #if AT_MKLDNN_ACL_ENABLED() #include <ATen/Parallel.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #else #include <ATen/ops/empty.h> #endif #include <arm_compute/core/Helpers.h> #include <arm_compute/core/Types.h> #include <arm_compute/core/Utils.h> #inc...
b84ab227ff5b6a6f40369a83ef8431c429873cfabae250c766f9f95afc609478
C++
12,920
386
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Context.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/native/Pool.h> #include <ATen/native/quantized/cpu/init_qnnpack.h> #include <ATen/native/quantized/cpu/QnnpackUtils.h> #include <ATen/native/quantized/c...
d3894c3e50fd5abc47d51ba75c5b27e358c9f1c38b180e229fa8bbeb61ea0aee
C++
12,995
531
/*************************************************************************** * * 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...
77448f62d31bcb96e0873023991dc48b30503de910393d68d8dc21407fa7a1f6
C++
12,999
364
#include <ATen/ATen.h> #include <ATen/WrapDimUtils.h> #include <ATen/NestedTensorImpl.h> #include <c10/core/DispatchKey.h> #include <c10/core/DispatchKeySet.h> #include <c10/util/Exception.h> #include <c10/core/TensorImpl.h> #include <c10/util/Logging.h> #include <numeric> #include <functional> #include <utility> nam...
5ceeaf934c2235a5289cd3aaa668abfcb936d47a7088f2bdc022dd8093fe1eb5
C++
13,032
348
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN2_BORDERIZE: Reduce rim file to its borders.\n" "\n" "Usage:\n" " LN2_BORDERIZE -input rim.nii\n" " LN2_BORDERIZE -input rim.nii -jumps 3\n" "\n" "Options:\n" " -help : Show this help.\n" " -input : A...
306ef10372facf69e35a4270df44692195170d50549d917a5d92c63aae2c6367
C++
13,152
401
#include <ATen/ATen.h> #include <ATen/NativeFunctions.h> #include <ATen/native/Resize.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/quantized/cpu/QuantUtils.h> #include <ATen/quantized/QTensorImpl.h> #include <ATen/quantized/Quantizer.h> #include <c10/util/irange.h> #include <cmath> #include <utili...
ceb5c411b48471adabb1e192d7708ecb739ec137c3b44e4cf4e832626638f4db
C++
13,196
281
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Config.h> #include <tuple> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/NativeFunctions.h> #else #include <ATen/ops/_batch_norm_with_update_native.h> #include <ATen/ops/batch_norm_backward_native.h> #include <ATen/ops/_native_bat...
8a14b295e55cc764630decf632bae266e5fe2acbe8d27cb51b9a222fe64a3ac7
C++
13,240
298
// Note [BatchLinearAlgebraLib split implementation files] // // There are two files that implement the interfaces found in // BatchLinearAlgebraLib.h // - BatchLinearAlgebraLib.cpp // - BatchLinearAlgebraLibBlas.cpp (this file) // // In order to support the ROCm build target, the use of cublas and // cusolver APIs nee...
25ee123056ceaddaf19dea14365d36e1615614944b5c1f37e4702058007a4551
C++
13,276
622
#include "filament_fit.h" #include "filament_model.h" #include "filament.h" #include "coordinate_conventions.h" #include <src/jaz/util/zio.h> #include <omp.h> using namespace gravis; FilamentFit::FilamentFit( const Filament& filament, const FilamentMapping& mapping, const std::vector<gravis::d4Matrix>& proj,...
1572b987b39a3258b868d94b66447f0650715919ec11cb23cd3b869ac367919d
C++
13,319
324
#include "../dep/laynii_lib.h" int N_rand = 1000; double_t lower = -10; double_t upper = 10; double verteilung(double x); typedef double ( * Functions)(double); Functions pFunc = verteilung; double_t arb_pdf_num(int N_rand, double ( * pFunc)(double), double_t lower, double_t upper); double adj...
cbfe9961836ccc70a57519476beffda9cecd7a11366ac290fba2daaf5b2b5056
C++
13,382
385
//*********************************************************************************************** // // Copyright (c) 1993-2000 Axon Instruments. // All rights reserved. // Permission is granted to freely to use, modify and copy the code in this file. // //******************************************************...
b64d2d31664d1b4582498aa5b0f35e98492c78532808f93969602d7d4a9923dc
C++
13,384
339
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN2_RIM_BORDERIZE: Hollow out filled segmentations aside from gray matter.\n" " This helps LayNii to compute faster in programs using\n" " 'rim files' such as LN2_LAYERS will compute faster.\n" "\n" ...
1950c794c7ef55bfd3319d84b461b897a152949a651cffb4d1f6ac8ef4463686
C++
13,391
314
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/Histogram.h> #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <c10/util/irange.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/aminmax....
098594b8add00b215864596416a2fbba3dacddaa82eabadaa9e3ee6492f6b5c9
C++
13,408
614
/*************************************************************************** * * 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...
6eb09ff9f7e77f50f6d574c994d439aa1d5ad4c32b61245e0c7fbe6c92fabab8
C++
13,440
382
#include <mex.h> #include <limits> #include <cmath> #include <vector> #include "private/Gamma.h" /* Confidence level estimators for a Binomial distribution. For a detailed discussion see: "Interval Estimation for a Binomial Proportion", L. D. Brown, T. T. Cai and A. DasGupta, 2001, Statistical...
f939d4a0146d87da2c9611fb2a71307d47ad13920902383024c504ebf884ff5f
C++
13,446
359
#include <ATen/native/nested/NestedTensorTransformerFunctions.h> #include <ATen/ATen.h> #include <ATen/NativeFunctions.h> #include <ATen/NestedTensorImpl.h> #include <ATen/native/nested/NestedTensorUtils.h> #include <c10/util/Exception.h> #include <optional> #include <string_view> namespace at::native { namespace { ...
7fa136d104e075b145ecd2facd516de645f038bf7843516c37cf20a1196270a8
C++
13,448
371
#include "gcmi_kernels.hpp" #include <algorithm> #include <array> #include <cmath> #include <cstring> #include <limits> #include <vector> #include <omp.h> namespace gcmi { namespace { template <int Dim> inline bool chol_logdet_upper(double* upper, double& logdet) { logdet = 0.0; for (int col = 0; col < Dim...
692a44c222c55921229bec1eb6de227af7df1c79aacfb9cbd7a6a43b206c9432
C++
13,463
359
// to be compiled without make file as follows : // c++ -std=c++11 -DHAVE_ZLIB -o LN_INFO src/LN_INFO.cpp dep/nifti2_io.cpp dep/znzlib.cpp -I -lm -lz // note the two dependencies of nifti1.h, nifti2_io.cpp, nifti2_io.h, nifti2.h, README.md, znzlib.cpp , znzlib.h #include <stdio.h> #include <math.h> #include <stdl...
4032a1d7e695cf0e3675c6c51adc6d214d01dd7a129d47f81c5d5307b8d63b0b
C++
13,635
358
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN_IMAGIRO : Generates a 3D matrix of columns and layers.\n" " It Does the ORIGAMI backwards; It unfolds stuff.\n" "\n" "Usage:\n" " LN_IMAGIRO -layers equi_dist_layers.nii -columns columnar_coordinated.nii -data dat...
6a947ee45cbf2e72164060ff54ab72b33042edfc2773e8759481c1a4b79b0b4c
C++
13,670
330
#define TORCH_ASSERT_NO_OPERATORS #include <ATen/Dispatch.h> #include <ATen/Dispatch_v2.h> #include <ATen/native/Copy.h> #include <ATen/native/UnaryOps.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/cpu/CopyKernel.h> #include <ATen/native/cpu/Loops.h> #include <c10/util/TypeCast.h> #include <ATen/nati...
303f5b7acb623ea6853e3b4b986e50beaf5c921aad60964900711c37277c5184
C++
13,678
352
#include <torch/extension.h> #include <cuda.h> #include <cuda_runtime.h> #define CHECK_CUDA(x) AT_ASSERTM(x.type().is_cuda(), #x " must be a CUDA tensor") #define CHECK_CONTIGUOUS(x) AT_ASSERTM(x.is_contiguous(), #x " must be contiguous") #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x) #define CHECK_ARRAY(x)...
c7869de8cf48395e7ddd5305fd8881cbe11991f53f7ba4731cfa5093726ad300
C++
13,842
388
#include <ATen/Context.h> #include <ATen/native/mkldnn/xpu/detail/oneDNN.h> #include <ATen/native/transformers/attention.h> #include <ATen/native/transformers/sdp_utils.h> #include <ATen/native/transformers/sdp_utils_cpp.h> #include <ATen/native/transformers/xpu/sdp_utils.h> #include <torch/library.h> // NOLINT(misc-he...
08cf6c3b0b458257b5b6ecaf3c3c3b9ccef7849acbd58c1b80c616da4176d24b
C++
13,929
571
#include "proto_alignment.h" #include <src/jaz/tomography/particle_set.h> #include <src/jaz/tomography/extraction.h> #include <src/jaz/tomography/prediction.h> #include <src/ctf.h> #include <src/jaz/image/centering.h> #include <src/jaz/util/log.h> #include <src/jaz/math/Tait_Bryan_angles.h> #include <src/jaz/image/colo...
57c1a50741aa766650d8c3d063c8c40605ef16cab653f164f3435c1eaf7b0e42
C++
13,949
394
// 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/Operators.h> #include <ATen/core/dispatch/Dispatcher.h> #include <ATen/functorch/BatchRulesH...
ddf6dfedf9cf347bb460e7337c975f401af47be66b687b8de61435cfb3288e5b
C++
14,007
291
#include <vector> #include <cmath> #include <limits> #include <algorithm> #include <numeric> #include <functional> #include <mex.h> #include "private/brent.hpp" /** Computes the threshold at which cdf(data1) and 1-cdf(data2) are equal. Input: data1 : individual data points for set 1 ...