sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
4a5a698eb697e83b44850ee29cc356802f5f1b60e01beb22cba97c2b8f49f8c1
C++
6,022
170
#include "../dep/laynii_lib.h" #include <sstream> int show_help(void) { printf( "LN2_RECIPROCAL: Compute reciprocal (1/x) of each voxel value.\n" "\n" "Usage:\n" " LN2_RECIPROCAL -input input.nii.gz\n" " ../LN2_RECIPROCAL -input input.nii.gz\n" "\n" "Options:\n" " -help ...
ea100647188fcfcfe962c3e2b862b424a901358cda6d7894a42039c296addc82
C++
6,035
217
#include <unistd.h> #include <string.h> #include <fstream> #include <src/args.h> #include <src/image.h> #include <src/metadata_table.h> #include <src/ctf.h> #include <src/jaz/single_particle/img_proc/filter_helper.h> #include <src/jaz/single_particle/stack_helper.h> #include <src/jaz/single_particle/obs_model.h> #inc...
f278322a50d53001f038cfc517178ed7bf7a8af847c33e9e9c386c0f38d2cfe9
C++
6,042
150
//****************************************************************************************************************************************************** //Modified version by Ueli Rutishauser, Dec 2011 to allow compilation with GCC on Unix. //Originals provided by Neuralynx. // // Mat2NlxCSC.cpp // Author: Kevin ...
15ad8ff169b2a1ee42685911c33a392b8a55a92f7d4bb26022d440e2bb037e23
C++
6,047
178
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/mkldnn/Utils.h> #include <ATen/native/Pool.h> #include <c10/util/irange.h> namespace at::native { std::vector<int64_t> pool_output_sizes( IntArrayRef input_size, IntArrayRef kernel_size, IntArrayRef stride, IntArrayRef padding_l, Int...
073cd8094d63f308198012963b5d19b1d6ece6d817caac48ac3024e28b38b481
C++
6,059
188
#include <ATen/core/function_schema.h> #include <ATen/core/functional.h> #include <ATen/core/jit_type.h> #include <ATen/core/type_factory.h> #include <c10/util/flat_hash_map.h> #include <torch/custom_class.h> #include <torch/custom_class_detail.h> #include <unordered_map> namespace c10 { static ska::flat_hash_map<st...
531bc923036ccf67fd5c06b08c374f45601ab812ef58e604f58e224b65687fd0
C++
6,083
162
//****************************************************************************************************************************************************** // //Modified version by Ueli Rutishauser, Dec 2011 to allow compilation with GCC on Unix. //Originals provided by Neuralynx. // // Mat2NlxSE.cpp // Author: Kevin Iam...
dd9efa2a6e74634947f823a0218bf45e6bbbdde58c255777f8d14426bd7ed4b8
C++
6,089
167
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN_ZOOM: Reduces the nii file to only include the rectangular space \n" " that is different from zero.\n" "\n" "Usage: \n" " LN_ZOOM -input image.nii -mask image_mask.nii\n" " ../LN_ZOOM -mask sc_layers_3dcolumns....
d23f894671228baf555694c757a425f06fe25c838ed40621a53822aa9b267eeb
C++
6,097
187
// A large amount of this code is direct from cuda_ml_optimizer and so could // be shared (but possibly with difficulty since it is enough different that // we either need a lot of #ifdefs, or a lot of macros/some other mechanism to // abstract the differences). The biggest differences are the type of memory // object...
5619f1002090dbea04fc0f7355b814d8dbfcce02e342d4cd06ea441ce15a8fbe
C++
6,098
195
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/Parallel.h> #include <ATen/TensorIterator.h> #include <ATen/TensorIteratorInternal.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #else #include <ATen/ops/empty.h> #endif #include <c10/util/irange.h> /// Contains the implementation of parallel...
f4924432d2f2bcebb50332eb8f37249ce5e63f02b1ad19368a7c7ae9db35e9fe
C++
6,105
151
//****************************************************************************************************************************************************** // Mat2NlxEV.cpp // Author: Kevin Iamiceli // Created Sept 17, 2003 // Version 2.00 //****************************************************************************...
05395bd7468f9898c5fdc34c38c09c927d9d4af8c34afa2f0899e8bd73ca5b86
C++
6,124
159
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/TensorTransformations.h> #include <ATen/native/cpu/PixelShuffleKernel.h> #include <ATen/native/PixelShuffle.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/empty.h> #include <ATen...
b9df72c0e3fe6c7c9b81536a66c42c2a9c869546f6c3587a2ad3325832d35942
C++
6,153
161
//****************************************************************************************************************************************************** // Mat2NlxTT.cpp // Author: Kevin Iamiceli // Created Sept 17, 2003 // Version 2.00 //*********************************************************************************...
095aaf77ce580b0b552667ffa9ce7b8e27aceb578c037ad0d1f039d4a12699b4
C++
6,161
164
#include "../dep/laynii_lib.h" #include <sstream> #include <vector> #include <algorithm> int show_help(void) { printf( "LN2_SPECIFICITY: Compute a voxel-wise measure of functional specificity\n" " from a 4D nifti containing fMRI responses to multiple\n" " (at least 2) ta...
eb9b8fe33062206a3fd3115051655b357873de98b757670c28c46d193689f5bd
C++
6,184
172
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN2_CIRCSHIFT: Circularly shifts voxels along one axis. Useful for wraps\n" " where e.g. occipital pole is wrapped to anterior slices\n" " but is not overlapping with frontal brain tissue." "\n" "Usage:\...
70d3a9d3a02072a1803a2f1776ae83bf9e7936928871b8971950f8cf3bbb7ff0
C++
6,198
217
//---------------------------------------------------------------------------------- // streams.cpp // Downloaded from http://www.intantech.com/files/CLAMP_source_code_v1_0.zip // as of 2017-03-13 // // Copyright information added according to license directory in the original // source code package: // // Inta...
fe6a437a6689b8c700445155f0b797ea2fdb6cfc54fa09b646b9d4647dc32dac
C++
6,200
174
/*************************************************************************** * * 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 * th...
cf99bc59f1a97a7abf9418d603f67b92d64eebafee71ad84cf77829c3ffc116b
C++
6,219
211
// PhysioParse.cpp : Program to parse Siemens Physiolog files files. // The data is written into a tab separated text file with a the name provided // on the command line // // Note: This is larely taken from the idea discussion boards. Thus, I believe // the fist version is from Peter Kochunov. See the site htt...
4a82e0f7b13052decbbd12515de0fb320b376697ddf1213de3b665e0bd5d91c2
C++
6,221
303
/*************************************************************************** * * 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...
7051b0d4f72823d56b9fa38e1466edc45ee63376cf9a9974e6a2cd572e2e2953
C++
6,234
174
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/TensorMeta.h> #include <ATen/native/UpSample.h> #include <c10/util/accumulate.h> #include <c10/util/irange.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/_u...
b048a31947f4f18f978a1630dd0615b4fd6b2c647e4dd350e526a7bf97eadd2f
C++
6,245
162
//****************************************************************************************************************************************************** // //Modified version by Ueli Rutishauser, Dec 2011 to allow compilation with GCC on Unix. //Originals provided by Neuralynx. // // Mat2NlxSE.cpp // Author: Kev...
3f5ce08e902eb9d99f5e9ed1eb21186a0ed9121fb4618203a89df69708cf2fc9
C++
6,301
187
#include <cassert> #include <cmath> #include <vector> #include "jni.h" namespace pytorch_vision_jni { static void imageYUV420CenterCropToFloatBuffer( JNIEnv* jniEnv, jclass, jobject yBuffer, jint yRowStride, jint yPixelStride, jobject uBuffer, jobject vBuffer, jint uRowStride, jin...
3a7d981beb4e9134a1d99147eeb3d5e17d8f773e054c81f1c3cd72a9f49c39eb
C++
6,310
136
#include <ATen/ATen.h> #include <ATen/core/dispatch/Dispatcher.h> #include <ATen/core/op_registration/op_registration.h> #include <ATen/native/UnaryOps.h> #include <ATen/NativeFunctions.h> #include <c10/util/irange.h> #include <torch/library.h> #include <ATen/native/MathBitFallThroughLists.h> namespace at { /* * D...
1d7a7f6744e80f586218e29d0492474b6f1ba7352f36cff5a5e9685a89aba386
C++
6,314
161
//****************************************************************************************************************************************************** // Mat2NlxTT.cpp // Author: Kevin Iamiceli // Created Sept 17, 2003 // Version 2.00 //****************************************************************************...
def170f4242626db16bdf499890f8d321ebb8ac9cb911f0c6ff2bf9bba6b952a
C++
6,326
254
/*************************************************************************** * * 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...
ae999303aa6f10a2c12f2d933689fb7099e983af622e5f21cf85c44c3cc1ee1e
C++
6,360
182
// 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> namespace at::functorch { namespace{ std::tuple<Tensor, std::...
d853aa36ca5ef95ae2a28b3b0bfcd6f6408a0f8698dc93a3fa18c52227662b5b
C++
6,385
211
// Copyright (C) 1996,1997,2011,2018 Bernd Feige // This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). #include "Boundary.hh" Boundary::Boundary(Point* p) { _point=p; } Boundary::Boundary(Triangle* tr) { Boundary* inboundary=this; _point=tr->p1; inboundary=(Boundary*)inboundary->addmemb...
2464558cc6f64c9a4f3dddedcc7963ce0cff616034b98dc1560731c36789e9c4
C++
6,427
189
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/TensorOperators.h> #include <ATen/TensorSubclassLikeUtils.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/complex.h> #include <ATen/ops/corrcoef_native.h> #i...
6cd8ed237710de687d42e5be9f0997f81015514e9d40919d960b38b53bc19568
C++
6,428
187
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/TensorMeta.h> #include <ATen/quantized/Quantizer.h> #include <ATen/native/Padding.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/_empty_affine_quantized.h> ...
cf7e50ea1624f54005b96d8bbdb2a09e0a5a9fff5c18d46fdaa17c74bee4957e
C++
6,453
159
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/TensorUtils.h> #include <ATen/TensorOperators.h> #include <ATen/native/cpu/WeightNormKernel.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/_weight_norm_diff...
8871d9d7ec71ef4fa5e204bd44f7fcafc7387a1ce01832a303a570b421989cc2
C++
6,473
202
#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/TriangularOpsUtils.h> #include <ATen/TensorSubclassLikeUtils.h> #include <c10/util/irange.h> #include <c10/util/Exception.h> #ifndef AT_PER_O...
e48735477026441c9fbbf6eb1bbf2039ccb1d5c666cd6709b8afff4763442fef
C++
6,474
260
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/mkl/SparseCsrLinearAlgebra.h> #include <ATen/native/SparseTensorUtils.h> // Don't compile with MKL for macos since linking the sparse MKL routines // needs some build fixes. // Macros source: // https://web.archive.org/web/20191012035921/http://nadeausof...
16b7faea1ad509d031868679072c0512f5dbf1a49fe52b699ef312e73660c698
C++
6,488
179
#include "../dep/laynii_lib.h" #include <sstream> int show_help(void) { printf( "LN2_PATCH_UNFLATTEN: Inverse of LN2_PATCH_FLATTEN. This program backwards projects\n" " flattened image values to the folded image." "\n" "Usage:\n" " LN2_PATCH_UNFLATTEN -values labels.nii -...
44d5a76402ab208cc2bee3210cb739f14a0d0cb01a9dcbcbd32b4f7c6436d940
C++
6,488
246
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/cuda/CUDAConfig.h> // for the definition of AT_CUDNN_ENABLED #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/cudnn_convolution_add_relu_native.h> #include <ATen...
0684c77da335a40a7d189765cc05f8446237c5eb07b041a326e48d0400bdc827
C++
6,491
186
// 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/BatchedTensorImpl.h> #include <ATen/WrapDimUtils.h> #include <c10/util/Exception.h>...
e0acabe72d31319b6bc7a3d668f3c35814b718fbd2d290c39848f283a0be48c2
C++
6,516
175
#include <ATen/ATen.h> #include <ATen/quantized/Quantizer.h> #include <c10/core/QScheme.h> #include <c10/core/TensorOptions.h> #include <utility> namespace at::native { // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ empty ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // We explicitly pass in scale and zero_point because we don't have...
a8b3742141d1ede5d388d4b2f3cc5f7c78df6f3e6782d4dbce3e3df14db009fc
C++
6,544
140
#include <ATen/FunctionalStorageImpl.h> #include <ATen/EmptyTensor.h> #include <ATen/FunctionalTensorWrapper.h> #include <ATen/SparseCsrTensorUtils.h> #include <ATen/core/LegacyTypeDispatch.h> #include <c10/util/Exception.h> #include <vector> namespace at::functionalization { // Note [Functionalization: Alias Remova...
15ebb68d818d4ffac6ba5403a5a8570d724fb679ecab3b720b5b8a5cbbdad2f9
C++
6,555
194
#include <ATen/native/nested/NestedTensorMath.h> #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #include <ATen/NestedTensorImpl.h> #include <ATen/TensorIndexing.h> #include <ATen/TensorUtils.h> #include <ATen/core/Tensor.h> #include <ATen/native/nested/NestedTensorUtils.h> namespace at::native { #defi...
8d2b7acd375044d4cc6b2f9e05308c5f8c3c8e43795b1a4f31caa4827938d017
C++
6,566
195
#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 <c10/util/accumulate.h> #include <ATen/native/quantized/cpu/QuantUtils.h> #include <ATen/native/quantized/library.h> #include <caffe2/utils/threadpool/...
532724d00530db2ac3fedb480d065918c78cd0c3177e11730263b90275acaf95
C++
6,580
191
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/TensorMeta.h> #include <ATen/native/UpSample.h> #include <c10/util/irange.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/_upsample_nearest_exact3d.h> #inclu...
01df3a1f73370932e272edaae8af3cea691b1e1766dd13e281b154e80386a866
C++
6,600
187
// Adapted from interp.cpp from Caffe util by Pauline Luc // Originally developed by George Papandreou #define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/TensorMeta.h> #include <ATen/native/UpSample.h> #include <c10/util/irange.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Fun...
ddd0b7b20b27a8adf0b7736985a8cacd9e5193b6fa6fe88f5a83d7ad223e75b9
C++
6,613
257
/* * 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 "hardswish-operator-tester.h" #include <qnnpack/params.h> TEST(H...
8480e844f8cea16f981427f8c10af10ec7cbd4136572dc8069cbe90340115a1e
C++
6,632
209
#include <pytorch_qnnpack.h> #include <qnnpack_func.h> #include <qnnpack/indirection.h> #include <qnnpack/log.h> #include <qnnpack/math.h> #include <qnnpack/params.h> #include <cstring> #include <memory> namespace qnnpack { namespace { static size_t compute_output_dimension( size_t input_dimension, size_t inp...
c9dc4bff62abaa71b4b43d09a59d8ddf5ff33a20a17de5d25248f9d684077d54
C++
6,686
294
#include "reference_map.h" #include <src/jaz/image/padding.h> #include <src/jaz/image/centering.h> #include <src/jaz/math/fft.h> #include <src/jaz/util/log.h> #include <src/jaz/util/zio.h> #include <src/jaz/util/image_file_helper.h> #include <src/jaz/tomography/reconstruction.h> #include <src/jaz/tomography/optimisatio...
fb4272fd88731606838ea323171352e4b4fa1a530eeb4fa40159dfcb691d6109
C++
6,705
215
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/native/im2col.h> #include <ATen/native/im2col_shape_check.h> #include <c10/util/irange.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATe...
d13d2e195688c8b9393d291c7d11abbfa81d785b256ae5629a6851fb37586882
C++
6,731
199
#include<RcppArmadillo.h> // [[Rcpp::depends(RcppArmadillo)]] #include "pseudovarPartial.h" using namespace Rcpp; List pseudovarPartial(arma::mat x, List rlevels, StringVector cnames){ // this currently doesn't support sparse matrices - it's not super clear how to do // that concretely without defining some sp...
96ca133e89c1b7f01778bc07f65ccba4245dd14a9647dfbe849c99b99787463e
C++
6,734
165
#define TORCH_ASSERT_NO_OPERATORS #include <ATen/native/Lerp.h> #include <ATen/Dispatch.h> #include <ATen/TensorIterator.h> #include <ATen/native/cpu/Loops.h> #include <c10/util/irange.h> namespace at { namespace native { namespace { template <typename scalar_t> Vectorized<scalar_t> is_lerp_weight_small(Vectorized<s...
94dd177ba6ad48c8f9dab665f78466540823d697c950a8e93b22e33dd62699a6
C++
6,739
184
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN_TEMPSMOOTH : Smooths data within the time domain. It removes high\n" " frequency spikes like a low-pass filter.\n" "\n" "Usage:\n" " LN_TEMPSMOOTH -input timeseries.nii -gaus 1.0 \n" " LN_TEMPSMOOTH -inp...
8c296b777a52a0c5795991fe333828877d53c70a5fdd9a76d70bdb0754c437c5
C++
6,754
197
#include <ATen/cudnn/Descriptors.h> #include <c10/util/irange.h> #include <array> #include <iostream> #include <sstream> // NOLINTBEGIN(*c-arrays*) namespace at::native { namespace { inline cudnnDataType_t getDataType(const at::Tensor& t) { auto scalar_type = t.scalar_type(); if (scalar_type == at::kFloat) { ...
b4f54658498bb929da38fa11eadef876dbdce8edd7306cc7c2f876ff6b746c5c
C++
6,760
214
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/native/UpSample.h> #include <ATen/native/quantized/AffineQuantizer.h> #include <ATen/native/quantized/cpu/QuantizedOps.h> #include <ATen/native/cpu/utils.h> #include <c10/util/ac...
5e4e3399b4c44f3e92e64398b4e21a9ceca68bf3300d8b5e9e9e1758ed57ac53
C++
6,780
182
// 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...
43167319b5210e4b3959f749290aea29ec512799fe69bd2267e1963cca85bf52
C++
6,828
314
#include "motif_refinement.h" #include "motif.h" #include "motif_detection.h" #include "motif_alignment.h" #include "point_cloud.h" #include <src/jaz/math/Euler_angles_dynamo.h> using namespace gravis; MotifRefinement::MotifRefinement( const Motif& motif, const std::vector<PointCloud>& clouds, const std::vec...
ad0c0470ec2aae2c6127c22010476f9de13887cb8717776e0637a8f96c6e6fb0
C++
6,861
131
#include <algorithm> #include <numeric> #include <cstdint> #include <vector> #include <mex.h> template<typename Number> void histcounts(const mxArray* mat_X, const double* weight, const double* edges, const size_t nEdges, double* N, double* bin, const bool includeOverflow, const bool normalize) { const si...
9c3ce1f6d26751cc2a6b842a7561b6b2a91c582ac3318c8464d2d2f6c4a68e99
C++
6,900
172
#ifndef __ZS_AXIDMA_CPP__ #define __ZS_AXIDMA_CPP__ #include "zs_axi_dma_lib.hpp" void* write_thread_routine(void* arg) { usleep(100 * 1000); //TODO remove. Only for test lookpback example log_utilities::high("Creating write thread..."); ZS_axidma* zsaxidma = (ZS_axidma*) arg; while (zsaxidma->is_writ...
1d4ea50e36409cf4b7e13e719bab05ccad86a5f01412d7fc9825011200f9285a
C++
6,908
196
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/TensorOperators.h> #include <c10/util/irange.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/alpha_dropout_native.h> #include <ATen/ops/dropout_native.h> #in...
8a017dc8e66f065d73915d9522790924c79e20687af7a0b1c6ee03db9de96594
C++
6,936
189
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/core/List.h> #include <ATen/Dispatch.h> #include <ATen/WrapDimUtils.h> #include <ATen/core/IListRef.h> #include <ATen/native/cpu/Loops.h> #include <ATen/native/quantized/cpu/QuantizedOps.h> #include <ATen/native/TensorIterator.h> #i...
6ad920bd92bb7c73059e4a1e7e368aa75210fd09e909ee2f1efba97b123d0a80
C++
6,937
183
#define TORCH_ASSERT_NO_OPERATORS #include <cmath> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/cpu/vec/vec.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/Pow.h> #include <ATen/native/UnaryOps.h> #include <ATen/native/cpu/Loops.h> #include <c10/core/Scalar.h> namespace at::na...
0c7fa74956dca4fd9fbdba8f306bc54e0484f11a7c93e6ba746097986537fe02
C++
6,952
268
#include <stdlib.h> #include <string.h> /*#include <cmath>*/ #include <math.h> #include "mex.h" // // template <typename T> // // void fftshift1(const mxArray *mxX, mxArray *mxY, bool isComplex) { // // mwSize M = mxGetM(mxX); // // mwSize N = mxGetN(mxX); // // // // if(M == 1) { // // memcpy(mxGetData(mxY), ...
07fbfea34bd54c688d65031c4f0ea88613ec18d0eac79d07aff31d64e1db5267
C++
6,956
268
#include <stdlib.h> #include <string.h> /*#include <cmath>*/ #include <math.h> #include "mex.h" // // template <typename T> // // void fftshift1(const mxArray *mxX, mxArray *mxY, bool isComplex) { // // mwSize M = mxGetM(mxX); // // mwSize N = mxGetN(mxX); // // // // if(M == 1) { // // memcpy(mxGetData(mxY), ...
65a3e5c2141c25c755fafbde9b6ea01c42fbb390601392449b7f20e092632724
C++
6,979
181
#include <ATen/NestedTensorImpl.h> #include <ATen/native/nested/NestedTensorUtils.h> #include <optional> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/NativeFunctions.h> #else #include <ATen/ops/_nested_tensor_size_native.h> #include <ATen/ops/_nested_tensor_storage_offsets_native.h> #include <ATen/ops/_nested_tensor...
b415b18f609b8e9a956eaaf413485739cfe43fffe2e56ddb7cdc3fbdb05b11cf
C++
7,013
262
#include "aberration_fit.h" #include <src/jaz/util/zio.h> #include <src/jaz/util/log.h> #include <src/jaz/tomography/particle_set.h> #include <src/jaz/tomography/extraction.h> #include <src/jaz/tomography/prediction.h> #include <src/jaz/tomography/tomo_ctf_helper.h> #include <src/jaz/math/Zernike_helper.h> #include <s...
c49e113452e56f98e87951c078ddbbfb32c95f21cf42d80a79f64e89461c1142
C++
7,035
106
#include <ATen/native/kleidiai/kai_ukernel_interface.h> #if AT_KLEIDIAI_ENABLED() namespace at::native::kleidiai { // Kernel Mapping - Groupwise std::unordered_map<kai_kernel_id, kai_matmul_ukernel_f32_qa8dxp_qs4c32p> groupwise_8bit_4bit_kernels = {{kai_kernel_id:: matmul_clamp_f32_qai8dxp1x8_qsi4c32p8...
2ffd3897becccbe671f959dc5b551b3eba6f6b366d3b5b939dca9ed49bf22d40
C++
7,055
214
// 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/TensorWrapper.h> #include <ATen/functorch/DynamicLayer.h> #include <ATen/functorch/...
9bb2dbe6028654dcc74e3ac9d99aeb0b2bd185e1eebfbd038b49c6009a5bc41d
C++
7,071
179
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN2_RIMIFY: Convert segmentation files generated by other software\n" " (fsl, freesurfer, brainvoyager etc) into a 'rim' file that is\n" " commonly used in other LAYNII programs (e.g. LN2_LAYERS).\n" "\n" "Usage...
844719304e747df507582d6dd83aade26712858ab7559f3f9f3b36c4b0385e45
C++
7,089
186
// 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...
16df0076c8d27ea5c9fae721d128f4ce7bc75f1e865172f2b7b7536accf4f536
C++
7,104
249
/* * 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 <cmath> #include <functional> #include <random> #include <vector> #inc...
ecb36ba0bffa90fba941e2a5e47c63c5764bff664ae5fe0fe58f98913618f41a
C++
7,104
200
// 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...
5eb3839dd8b92967f900ac90ddc1d0f621dc58c8ee88628802d65ff3945e6b5e
C++
7,112
157
#define TORCH_ASSERT_NO_OPERATORS #include <ATen/native/mkl/LinearAlgebra.h> #include <ATen/Config.h> C10_DIAGNOSTIC_PUSH_AND_IGNORED_IF_DEFINED("-Wunused-parameter") #if !AT_MKL_ENABLED() namespace at::native { void mkl_gemm_batched( const TransposeType trans_A, const TransposeType trans_B, const MKL_INT ba...
98167705787e346155e3e502886c4b6e60d0e0a8b56d8b9be7ae7c3c84f262d2
C++
7,115
209
#include <cassert> #include <iostream> #include <memory> #include <string> #include <fbjni/ByteBuffer.h> #include <fbjni/fbjni.h> #include <c10/util/irange.h> #include <torch/csrc/jit/mobile/import.h> #include <torch/csrc/jit/mobile/module.h> #include <torch/script.h> #include "caffe2/serialize/read_adapter_interface...
3c9d603edfb3ebc602a05c3715fc2d6c47bd7018879d57aad143d83eeb565195
C++
7,130
218
#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/FusedAdagrad.h> #include <ATen/Dispatch.h> #include <ATen/cpu/vec/vec.h> #include <ATen/cpu/vec/functional.h> namespace at::native ...
8552cc1c87dcb3ce4a3e19f36b28c2fb13564f7799629f5cdd1eb960e0645ed7
C++
7,262
170
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/TensorOperators.h> #include <ATen/WrapDimUtils.h> #include <c10/util/Exception.h> #include <c10/util/irange.h> #include <c10/core/ScalarType.h> #include <c10/core/Scalar.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h...
a04af573918525b9b8285e757dd438546eb517b0435e209bad32bcfa7296e3df
C++
7,404
268
/* * 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 "channel-shuffle-operator-tester.h" TEST(CHANNEL_SHUFFLE_OP, zero...
edce2468b4c36f757f3b853c9603aae09a09494e035ca14b5a23de984d1014c5
C++
7,407
239
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <algorithm> #include <ATen/core/Tensor.h> #include <ATen/core/ivalue.h> #include <ATen/Parallel.h> #include <ATen/SmallVector.h> #include <ATen/native/quantized/PackedParams.h> #include <ATen/native/quantized/cpu/fbgemm_utils.h> #include <ATen/native/quantized/cpu/Qn...
fce540da964bf3238da1d4288826cb301ed0cd7941f4c07d6ff23b2fd818aa1e
C++
7,446
192
// LinearAlgebraStubs.cpp // Mostly a no-op unless BUILD_LAZY_CUDA_LINALG is defined // In that case load library is dynamically loaded when first linalg call is made // This helps reduce size of GPU memory context if linear algebra functions are not used #include <ATen/Context.h> #include <ATen/cuda/CUDAContext.h> #in...
ab824b682cdaa4fc435e2122b6a69472fd6a3a0201e55f94f1a7812d47683ee1
C++
7,449
111
#include <torch/library.h> using torch::CppFunction; namespace at { // Note: [DispatchKey::VmapMode usage] // Whenever we're inside a vmap, all Tensors dispatch on this key. At the moment, // this key is used to disable random operations inside of vmap. If you are looking // for Batching Rules, those are registered ...
b59a21e42c58a5a49739abc7346fc87e926a5c3b2c9e52b6517416654ec00548
C++
7,476
221
#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/avg_pool2d_backward_native.h> #include <ATen/ops/avg_pool2d_native.h> #endif namespace at::meta ...
6822a7a45b5aa83eedfdb1727618743ccc4036f443f35d1bf42e44232d1786be
C++
7,504
205
// 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/WrapDimUtils.h> namespace at::functorch { Tens...
34531079fedd42291d8b4c3012c9181eb482af3f06e2966ababc50e9f20438b3
C++
7,511
223
#include <ATen/cpu/Utils.h> #if !defined(__s390x__ ) && !defined(__powerpc__) #include <cpuinfo.h> #endif #if defined(__linux__) #include <sys/syscall.h> #include <unistd.h> #endif namespace at::cpu { static constexpr const char* get_cpu_architecture() { #if defined(__x86_64__) || defined(_M_X64) return "x86_64"; #...
6960d6394e2b43bafa407184482d5d9b425247fd30a36009eeb5eeda992cb46e
C++
7,529
206
/*************************************************************************** * * 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...
af51b94c91f35b2b6d9f51d2543dccdbcf1415ed2a9d644aca2f0efbf083997a
C++
7,544
250
/*************************************************************************** * * Author: "Jasenko Zivanov & 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 * t...
bac2290f470a3a7f1bc33e48e7eef75d67f334869e361f0e35e0cf595cd13269
C++
7,545
256
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/IndexKernel.h> // for flip_stub #include <ATen/native/TensorTransformations.h> #include <ATen/TensorIterator.h> #include <ATen/WrapDimUtilsMulti.h> #include <ATen/core/DimVector.h> #include <c10/util/Exception.h> #include <c10/util/irange.h> #ifndef AT_...
008bd158bbb1a5328db4b95a74047948fb2de4e7d46c6a9d47b6fe1908ce6efe
C++
7,588
214
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/core/List.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/TensorIterator.h> #include <ATen/TensorOperators.h> #include <ATen/TensorUtils.h> #include <ATen/native/BinaryOps.h> #ifndef AT_PER_OPERATOR_HEADERS ...
6616b9886d70f24fd49d830213482a619f24a52ac9f064ebf9d41f894c20f245
C++
7,620
245
#include <cassert> #include <iostream> #include <memory> #include <string> #include <fbjni/ByteBuffer.h> #include <fbjni/fbjni.h> #include <ATen/record_function.h> #include <torch/csrc/jit/runtime/print_handler.h> #include <torch/script.h> #include "caffe2/serialize/read_adapter_interface.h" #include "pytorch_jni_co...
b7ae9a1a46b747d6e5e469ca30c3e54d880ac5d285a171282db935258e6f2240
C++
7,624
229
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Context.h> #include <ATen/WrapDimUtils.h> #include <ATen/native/quantized/cpu/init_qnnpack.h> #include <ATen/native/quantized/cpu/QuantizedOps.h> #include <ATen/native/quantized/cpu/QnnpackUtils.h> #include <caffe2/utils/threadpool/...
decc13d71e03fc2b0e046860e807dcf363c3a7de40fb80ab357b80d5bd4ac795
C++
7,628
219
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/Parallel.h> #include <ATen/native/UpSample.h> #include <ATen/native/cpu/utils.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/_emp...
f650c984a1652e1c8e9149049815f9ce1f3fa4cd177f5a4a9948dd2346772d46
C++
7,629
200
#include "../dep/laynii_lib.h" #include <sstream> int show_help(void) { printf( "LN2_REGRESS_OUT: Regress one timeseries from another, voxel-wise.\n" "\n" "Usage:\n" " LN2_REGRESS_OUT -input input.nii\n" " ../LN2_REGRESS_OUT -input input.nii\n" "\n" "Options:\n" " -help :...
b999ebc0addf3469bf660f67a228a30e963e75804b03ee37908a556ba0882c0b
C++
7,647
274
#include "../Common/axodefn.h" #include <string.h> #include <wchar.h> int WINAPI AXODBG_printf( char *lpsz, ... ) { printf("%s", lpsz); return 0; } /********************************************************************* * CloseW32Handle (KERNEL.474) * CloseHandle (KERNEL32.@) * * Clos...
0d9121a6030bf5fa798e2fbadc9951da1f6d03e4faaba8f347d380992771e78a
C++
7,721
323
// This file is modified from LLVM, see the following copyright information // // -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. ...
9d1f6432f4c32d44ab894ebf9cb830c4c668d0e3f9161c6ca4f3bada55b184b2
C++
7,726
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...
7b8490281fced7e9f26449ee39d419976a423599f0065b490e373e52a1a6d29e
C++
7,772
196
#include "../dep/laynii_lib.h" #include <sstream> int show_help(void) { printf( "LN2_LAPLACIAN: Compute spatial image Laplacian that is sum of the second \n" " derivatives along the main axes (D_xx + D_yy + D_zz).\n" " Uses 1-jump voxel neighbors for computations.\n" "\n...
432ab0eaabe0bcf554045ea5f5416870d83d4bafd03568e8ac263cb40f3b8115
C++
7,774
230
// 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...
ab29ef86f80561816744d68a0ac2d22f1b5c61a46a5fd92c24dd4a19280e4572
C++
7,793
205
#include "../dep/laynii_lib.h" using namespace std; void plotgray(double val, double mean, double stdev, bool inv ); int show_help(void) { printf( "LN_INFO: Displays the basic features of the nii image and plots some relevant header\n" " information and attempts to get a terminal view of the ima...
9ec336737eb3c7ae5343b8933fc60a93fbfc9554705b8539f9addab358e3daac
C++
7,799
235
/*************************************************************************** * * 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...
213be62c4664e7843295be15c80b92ca8828ae6d5fd346a2ed6c8dae664ad8c3
C++
7,838
297
/* * 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/q8va...
0eda61bd97761a9d3b9e49ad3c3f32a4216d928431ec738f5fafc1b92e08a9b4
C++
7,853
254
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <c10/util/irange.h> #include <cmath> #include <tuple> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/_fake_quantize_per_tensor_affine_cachemask_tensor_qparams.h> #in...
4eb6dfe91be964279a57871135d187af1ab93a17c4e5042fd5c356246ef8d9e8
C++
7,855
210
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN_MP2RAGE_DNOISE : Denoising MP2RAGE data.\n" "\n" " This program removes some of the background noise in MP2RAGE,\n" " UNI images to make themn look like MPRAGE images. This is done\n" " without the phase information. See...
3750129a4edcaae70c9a1086ad07ce5edf691f7b0eaedf87d1d0506eb4e4f739
C++
7,877
208
// 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...
a349b79e19c752892e9f21e739db1063583faffd007323484fc3f2fd48547004
C++
7,884
209
#include <ATen/cuda/CUDADataType.h> #include <ATen/cuda/CUDASparseDescriptors.h> #include <ATen/native/LinearAlgebraUtils.h> #include <ATen/native/cuda/MiscUtils.h> namespace at::cuda::sparse { cusparseStatus_t destroyConstDnMat(const cusparseDnMatDescr* dnMatDescr) { // NOLINTNEXTLINE(*const-cast) return cuspars...
e5b00b105d1592c94b263491f1836aa1e4a2720e054072f7110f5bf29fd4c41f
C++
7,890
223
#include "../dep/laynii_lib.h" #include <sstream> int show_help(void) { printf( "LN2_HEXBIN: Generate hexagonal bins based on UV coordinates generated \n" " from e.g. LN2_MULTILATERATE.\n" "\n" "Usage:\n" " LN2_HEXBIN -coord_uv coord_uv.nii -radius 10\n" "\n" "Options:\n" ...
7a7d71d561e21b263308d247221ddbff1b6980bf8bfaba027c0741e03a475db5
C++
7,902
322
#include "src/acc/sycl/sycl_memory_pool.h" #include <iostream> #include <cstring> syclMemoryBlock::syclMemoryBlock(sycl::queue* const Q, const alloc_kind type, const size_t block_bytes) : _Q {Q}, _mem_type {type}, _block_bytes {block_bytes} { _mem = nullptr; if (_mem_type == alloc_kind::device) _mem = static_cas...
3ac356a5f4d8adbeae32b178c9c9aa2824cc93d6f68e4e099b6b7a02b861b441
C++
7,970
234
/*************************************************************************** * * 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...