sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
603572b7d9d2768f90824188b7b8a5a4ba5855fafdc594981e3d6a98e0af7ec5 | C++ | 19,785 | 613 | #include <ATen/core/function_schema.h>
#include <iostream>
#include <stack>
#include <utility>
namespace c10 {
void FunctionSchema::dump() const {
std::cout << *this << '\n';
}
const std::vector<Argument>& FunctionSchema::getCorrectList(SchemaArgType type) const {
if (type == SchemaArgType::input) {
return ... |
4f31098f8a819dfce4cfcbf92933164ecc3f9228269f9b4c083f2b20133dd7b0 | C++ | 19,829 | 635 | /***************************************************************************
*
* 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... |
58d082cb37323d5c6ac2e4507906c2a3c0bc347bea841ac88cdee0434cd0da4d | C++ | 19,886 | 503 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/core/Reduction.h>
#include <ATen/Dispatch.h>
#include <ATen/TensorIterator.h>
#include <ATen/TensorMeta.h>
#include <ATen/TensorOperators.h>
#include <ATen/native/BinaryOps.h>
#include <ATen/native/PointwiseOps.h>
#include <ATen/nat... |
d3998346fb92c3a323cc70da4b08fefbf2071e1be6c4109e6afc42e4a5e2cc5a | C++ | 19,913 | 576 | //***********************************************************************************************
//
// Copyright (c) 1993-2002 Axon Instruments, Inc.
// All rights reserved.
// Permission is granted to freely to use, modify and copy the code in this file.
//
//*******************************************... |
df4d22a7c65055c11ca770d4da61128fe71e83aa728ac6612e42bee09ca186dd | C++ | 20,057 | 752 | /////////////////////////////////////////////////////////////////////////////
// Name: wx/wxLatexDC.h
// Purpose: wxLatexDC
// Author: Christoph Schmidt-Hieber, based on dcsvg by Chris Elliott and
// dcpsg by Julian Smart, Robert Roebling, Markus Holzhem
// Modified by:
// Created:
// Copyr... |
664f40136a30210ba052da984f4ca3daaca3a77eaa1fddaee6840264f28191e5 | C++ | 20,122 | 622 | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <vector>
#include <algorithm>
#include <omp.h>
#include <src/time.h>
#include <src/metadata_table.h>
#include <src/image.h>
#include <src/renderEER.h>
//#define DEBUG_EER
//#define TIMING
#ifdef TIMING
#define RCTIC(label) (EERtimer.tic(label))
#def... |
03eee7faba78bc4071bb86562678bc89c16044d74303f9922e1101faf19832de | C++ | 20,136 | 565 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/ExpandUtils.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/SpmmReduceKernel.h>
#include <ATen/native/cpu/ReduceUtils.h>
#include ... |
d27b272de96e7697057a5fe98a778cbb0103a23c328400f45c01418e7a2f2541 | C++ | 20,215 | 453 |
#include "../dep/laynii_lib.h"
int show_help(void) {
printf(
"LN2_FRISGO : This program corrects/mitigates the Fuzzy Ripple artifacts\n"
" in dual polarity 3D-EPI fMRI data.\n"
" \n"
"\n"
"Usage:\n"
" LN2_FRISGO -input timeseries.nii -simple\n"
" LN2_FRIS... |
bc40e0e459d935dde748f42a873be9458cda6a0db66b8f3ac3fd27b6cf686dbb | C++ | 20,302 | 546 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/native/cpu/DepthwiseConvKernel.h>
#include <ATen/core/Tensor.h>
#include <ATen/Parallel.h>
#include <c10/util/irange.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/Functions.h>
#else
#include <ATen/ops/empty.h>
#include <ATen/ops/zeros.h>
#endif
#ifdef __AR... |
dfa1c2dada81c16c209f8f33d6740da262ec94947583a88344b136dfaee270b7 | C++ | 20,306 | 502 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/Context.h>
#include <ATen/Dispatch.h>
#include <ATen/Parallel.h>
#include <ATen/cpu/vec/functional.h>
#include <ATen/cpu/vec/vec.h>
#include <ATen/native/cpu/ReducedPrecisionFloatGemvFastPathKernel.h>
#include <c10/macros/Macros.h>
#include <c10/util/Exception.h... |
638624b8e030be2f80a6f78940bd26d5d479c657c9b3203dd2397832f98df3ac | C++ | 20,312 | 666 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/Config.h>
#include <ATen/core/grad_mode.h>
#include <ATen/native/Resize.h>
#include <ATen/native/utils/ParamUtils.h>
#include <c10/util/irange.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/NativeFunctions.h>
#else
#include <ATe... |
f698525bc2914ef6fc6c0d5eeae939e383a224f9b4816a6b85a2475d21af9fe7 | C++ | 20,374 | 491 | #include "../dep/laynii_lib.h"
#include <sstream>
int show_help(void) {
printf(
"LN2_PHASE_JOLT: L1 norm of phase image second spatial derivatives.\n"
" Uses 1-jump voxel neighbors for computations.\n"
"\n"
"Usage:\n"
" LN2_PHASE_JOLT -input Sphase_t-001.nii.gz -int13\n"
"... |
4960be5b995f3fd3085e5acded42a1cb19713a6b6a4b971027a4c50bd698e335 | C++ | 20,450 | 588 | /* ----------------------------------------------------------------------------------
AxoGraph_ReadWrite : functions for reading and writing AxoGraph data files.
See also : AxoGraph_ReadWrite.h
This source code and the AxoGraph data file format are in the public domain.
---------------------------------... |
d59bb1a5105b1083d8771f55bee19dff906c116d9c5cb77e8dec0c221d7174b9 | C++ | 20,589 | 702 | /***************************************************************************
*
* 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... |
40a882925d1f6c67a67669c49362508500a282ad73513e5db40593fbe3841f76 | C++ | 20,678 | 911 | #include "tomo_ctf_find.h"
#include <src/jaz/image/radial_avg.h>
#include <src/jaz/image/power_spectrum.h>
#include <src/jaz/image/centering.h>
#include <src/jaz/image/filter.h>
#include <src/ctf.h>
#include <src/jaz/optics/damage.h>
#include <src/jaz/optics/astigmatism_fit.h>
#include <src/jaz/optics/ctf_equiphase_fit... |
ee5f8cdea80426651132f9af5eecd2da2942b769238240211be17f401f44bd95 | C++ | 20,815 | 478 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/native/Histogram.h>
#include <ATen/native/Resize.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/Functions.h>
#include <ATen/NativeFunctions.h>
#else
#include <ATen/ops/_histogramdd_bin_edges.h>
#include <ATen/ops/_histogramdd_b... |
488522e000cb87c9df637fc4e16d8854888c2694018bdad2644ef3df5594fca1 | C++ | 20,989 | 713 | /***************************************************************************
*
* Authors: "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
* ... |
94c542abb04d232621e131afb657913f67df8fa5c8eeffe4e9e08e2cd2c51734 | C++ | 21,002 | 588 | #include <ATen/autocast_mode.h>
#include <mutex>
#include <ATen/CachedTensorUtils.h>
#include <c10/core/GradMode.h>
#include <c10/core/InferenceMode.h>
#include <c10/util/flat_hash_map.h>
namespace at::autocast {
bool is_autocast_enabled(at::DeviceType device_type) {
at::DispatchKey dispatch_key = get_autocast_dis... |
95dce7596118e180ac034d861cf804143189937df3de236cd1a25072db3f0227 | C++ | 21,173 | 651 | /*
* 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 "global-average-pooling-operator-tester.h"
#include <qnnpack/para... |
43b5f886261613e29b4eedff3b137917ef30caf9a4c7d3f8581d3991c8986cf9 | C++ | 21,191 | 579 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <algorithm>
#include <bit>
#include <ATen/core/Tensor.h>
#include <ATen/Dispatch.h>
#include <ATen/OpMathType.h>
#include <ATen/cpu/vec/vec.h>
#include <ATen/cpu/vec/functional.h>
#include <ATen/native/ReduceOps.h>
#include <ATen/native/Resize.h>
#include <ATen/nativ... |
b059922a3780e3cedd12901193f4e3ecec91c45e7e1295044f451394fa8b0c3f | C++ | 21,203 | 613 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/AccumulateType.h>
#include <ATen/Dispatch.h>
#include <ATen/Parallel.h>
#include <ATen/TensorMeta.h>
#include <ATen/TensorUtils.h>
#include <ATen/TensorIterator.h>
#include <ATen/WrapDimUtils.h>
#include <ATen/native/cpu/SoftmaxKern... |
aade8f7e33b0f35435ad0f7b9e59334b178335a474d79a3e72772b6bbdc9e83f | C++ | 21,250 | 520 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/native/SegmentReduce.h>
#include <ATen/core/Tensor.h>
#include <ATen/Dispatch.h>
#include <ATen/NumericUtils.h>
#include <ATen/TensorOperators.h>
#include <c10/util/irange.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/Functions.h>
#include <ATen/NativeFunc... |
5bcab72467f7c080bb1bffa3c08952caa853d26a5532a304da971355fbb9460a | C++ | 21,327 | 540 | #include <ATen/ATen.h>
#include <ATen/NestedTensorImpl.h>
#include <ATen/native/nested/NestedTensorTransformerUtils.h>
#include <tuple>
namespace at::native::preprocessing {
namespace {
/**
* This builds up the cumulative sequence length for a batch of sequences.
* This is not very dry, but in the backward pass we... |
8395f16790503ddd2841cb39b0ef16c01c2051c8f12b88ee3bafe787cd73338a | C++ | 21,579 | 536 | // Copyright (c) Facebook, Inc. and its affiliates.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <ATen/functorch/BatchRulesHelper.h>
#include <ATen/functorch/PlumbingHelper.h>
#include <ATen/core/... |
d6b1628748011de1b669b025b72c73eee543875e1b70cde2dd7b058b893098d2 | C++ | 21,590 | 754 | #include <vector>
#include <ATen/core/ATen_fwd.h>
#include <ATen/native/mkldnn/xpu/Conv.h>
#include <ATen/native/mkldnn/xpu/FusionUtils.h>
#include <ATen/native/mkldnn/xpu/detail/oneDNN.h>
#include <ATen/native/utils/ParamUtils.h>
#include <ATen/ops/empty.h>
#include <c10/util/Exception.h>
#include <torch/library.h>
#... |
c071928439caad35d13b9fd2961a999d8d9ba504d802dbe3c6c13bcbbf625bf2 | C++ | 21,687 | 583 | #include <ATen/Functions.h>
#include <ATen/Tensor.h>
#include <ATen/cuda/CUDAGeneratorImpl.h>
#include <ATen/cuda/CUDAGraph.h>
#include <ATen/cuda/CUDAGraphsUtils.cuh>
#include <c10/cuda/CUDACachingAllocator.h>
#include <c10/cuda/CUDAFunctions.h>
#include <c10/util/CallOnce.h>
#include <deque>
namespace at {
namespace... |
796110454be5edeec5341dc715af023d5525c19ea6e597229913378d8e371061 | C++ | 21,706 | 584 | #include <ATen/core/dispatch/Dispatcher.h>
#include <ATen/core/PythonOpRegistrationTrampoline.h>
#include <list>
#include <utility>
#include <c10/util/env.h>
#ifdef FBCODE_CAFFE2
#include <c10/util/static_tracepoint.h>
#endif
namespace c10 {
#ifdef FBCODE_CAFFE2
TORCH_SDT_DEFINE_SEMAPHORE(operator_start)
TORCH_SDT_D... |
43414dcc14539f1856de7cf740291b870fa9a68c6a1ad181a541a9c3a7f15192 | C++ | 21,785 | 644 | #include <ATen/MapAllocator.h>
#include <atomic>
#include <random>
#include <string>
#if ATOMIC_INT_LOCK_FREE == 2
#define AT_ATOMIC_IPC_REFCOUNT 1
#endif
#include <c10/util/error.h>
#ifdef _WIN32
#include <c10/util/Unicode.h>
#endif
#if defined(HAVE_MMAP)
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat... |
02a6622110447d3b9314c366c6c913558fc7ed34bbb423f4306424f4710594d9 | C++ | 21,894 | 789 | /*
* 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... |
1029181209af64ad43f10539319956f686929a1f628b79ed63dd90cd80ac28f2 | C++ | 21,928 | 547 | #include "src/local_symmetry_mpi.h"
//#define DEBUG
void local_symmetry_parameters_mpi::read(int argc, char **argv)
{
// Define a new MpiNode
node = new MpiNode(argc, argv);
// First read in non-parallelisation-dependent variables
local_symmetry_parameters::read(argc, argv);
// Don't put any outp... |
3483d8047a49143af349fe37d5c822ee80c02c41ac8c5fc2b18b2693865e01c4 | C++ | 21,930 | 624 | /*
* 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... |
b428d99292b9363c2d5a07cf492c102c90f98f6b50b0ebd0b3f89af237e31668 | C++ | 21,954 | 535 | // 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,
... |
94738c37a63d9fe7af8eb64efeb1410c3b4c6e89ef5a464ba8df49e02dbaf07c | C++ | 21,983 | 814 | /***************************************************************************
*
* 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... |
2c0b85cbcffaa170a1a2a2379add0fb5d465d4cfea706c95e4f32c7b8eb5e10d | C++ | 21,999 | 586 | #include <ATen/native/RNN.h>
#include <ATen/ATen.h>
#include <ATen/Config.h>
#include <ATen/InitialTensorOptions.h>
#include <ATen/MatrixRef.h>
#include <ATen/TensorUtils.h>
#include <ATen/Dispatch.h>
#include <c10/core/GradMode.h>
#include <c10/macros/Macros.h>
#include <c10/util/Exception.h>
#include <torch/library.... |
14c765e7e931ea313bf0ef42b0c9099d7e762c8f3d33ee408e96807435756711 | C++ | 22,476 | 633 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/native/layer_norm.h>
#include <cmath>
#include <tuple>
#include <ATen/core/Tensor.h>
#include <ATen/Dispatch.h>
#include <ATen/OpMathType.h>
#include <ATen/cpu/vec/functional.h>
#include <ATen/cpu/vec/vec.h>
#include <ATen/native/cpu/moments_utils.h>
#include ... |
e93b9c577d35f0a382448f573125884e223e6d55fea2e566040598da6067dd46 | C++ | 22,593 | 649 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/Config.h>
#include <ATen/Context.h>
#include <ATen/core/Tensor.h>
#include <ATen/native/mkldnn/Matmul.h>
#if !AT_MKLDNN_ENABLED()
namespace at::native {
void mkldnn_matmul(
const Tensor &mat1,
const Tensor &mat2,
const Tensor &result,
float b... |
41a34453587d173163ffe29c9abf69ac30c1ae34ef63722d8a53d8e5d6a5d8d3 | C++ | 22,603 | 583 |
#include "../dep/laynii_lib.h"
int show_help(void) {
printf(
"LN2_RIM_POLISH: Smooth the cortical gray matter borders. Default parameters\n"
" are optimized for 0.2 mm isotropic images."
"\n"
"Usage:\n"
" LN2_RIM_POLISH -rim rim.nii.gz \n"
"\n"
"Options:\n"
" ... |
491a9cdf97e58a96e7b6e0c09140758dd30bf580ee6507ffda67fb4bb9195d61 | C++ | 22,680 | 500 | // 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/DynamicLayer.h>
#include <ATen/functorch/BatchRulesHelper.h>
#include <utility>
/... |
05d9ce5feec75a77794a0a37824069630cab9d9787e125dba76c24520a808872 | C++ | 22,688 | 1,084 | /*
* 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/q8co... |
7107ec950e8f78e5d0b7c932b227fb3e2b214507a775b41dbbb0e8503c7143f4 | C++ | 22,757 | 615 | // 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... |
5bfdeb23cb49902e9044f6d65c0f5108f06a89447bf5b7eef3393350cbd63e3f | C++ | 22,779 | 564 | #ifndef __AXIDMA_CPP__
#define __AXIDMA_CPP__
#include "axi_dma_lib.hpp"
Axidma::Axidma(unsigned int axidma_addr_offset, unsigned int source_addr_offset, unsigned int destination_addr_offset) :
MM2S_CONTROL_REGISTER(0x00), MM2S_STATUS_REGISTER(0x04), MM2S_START_ADDRESS(0x18), MM2S_LENGTH(0x28), S2MM_CONTROL_RE... |
212e3d1a8d887a3eaede7070c0423d4731b09813361a4a6c7e7821f890d43cdb | C++ | 22,868 | 937 | /***************************************************************************
*
* 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... |
d3cc2c4148721a834c2ba99dc508b50a654abd0ee76dfe204d408419d5807cb8 | C++ | 22,871 | 613 | // Copyright (C) 1997-1999,2001,2005,2008,2011,2026 Bernd Feige
// This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
/*{{{}}}*/
/*{{{ Description*/
/*
* laplacian.cc method to perform the Laplacian operation on the incoming epochs.
* The algorithm is roughly constructed after \cite{Le:94... |
154dc4339eb3ecb639ea65c185ec53ed20abe8a31bd5be49670546ee96b06b33 | C++ | 22,911 | 788 | /***************************************************************************
*
* 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... |
7c2372279772a532263cd5d6f3670dddf4945df52e276c55e544875ecc8ff6bd | C++ | 23,039 | 578 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/Dispatch.h>
#include <ATen/ScalarOps.h>
#include <ATen/TensorIterator.h>
#include <ATen/detail/CUDAHooksInterface.h>
#include <ATen/native/Resize.h>
#include <ATen/native/SpectralOpsUtils.h>
#inclu... |
f1f8ed931c13dd4736dbbd0c89b29f5f4f1b78c12bdbd355015c0315142e2a21 | C++ | 23,164 | 461 | // 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... |
036c4c458cdd20132567808f58b82a5f69e355d6367b48254eb281d38ac1379f | C++ | 23,176 | 621 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/Context.h>
#include <ATen/Dispatch.h>
#include <ATen/ExpandUtils.h>
#include <torch/library.h>
#include <ATen/quantized/Quantizer.h>
#include <ATen/native/quantized/cpu/ACLUtils.h>
#include <ATen/native/quantized/cpu/BinaryOps.h>
#i... |
55cffd051a392d310cd9ad4947d019a5817fc3514fc00362fbf15bfe34feec58 | C++ | 23,200 | 825 | /***************************************************************************
*
* 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... |
fde24b3a327a67a29ab4a4e5dc8154ca1943b5b2bbd1d31e9ded08c2bd60e8e4 | C++ | 23,246 | 939 | /***************************************************************************
*
* 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... |
47fa8bab75a4078c8ff103e4883ee1bf1ae1cc3cd56c8285eda6601e90608d39 | C++ | 23,408 | 726 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/Dispatch.h>
#include <ATen/SparseCsrTensorImpl.h>
#include <ATen/Tensor.h>
#include <ATen/mkl/Sparse.h>
#include <ATen/native/LinearAlgebraUtils.h>
#include <ATen/SparseCsrTensorUtils.h>
#include <ATen/native/mkl/SparseBlasImpl.h>
#include <c10/core/ScalarType.... |
03475d75bb34110af3f8fd4335d0cec1b045ec2f37419df557d87e35bcf13317 | C++ | 23,421 | 759 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/Context.h>
#include <ATen/Dispatch.h>
#include <ATen/Parallel.h>
#include <torch/library.h>
#include <ATen/native/Pool.h>
#include <ATen/native/MaxPooling.h>
#include <ATen/quantized/Quantizer.h>
#include <ATen/native/quantized/cpu/... |
774d36f41cf196fb838479366fb9bd98801704f64ff9d5e8a8c2e98865369892 | C++ | 23,439 | 716 | /***************************************************************************
*
* 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... |
cefadd3efbb782f9342550dd136e054d5c26f11da66a17512d8e562139a9e348 | C++ | 23,448 | 727 | /***************************************************************************
*
* Authors: Sjors H.W. Scheres and 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
* ... |
7fbd2599afa56ae19658e1a53c08df4e1f2653c4ec3c80b12189f948576a2ad9 | C++ | 23,454 | 694 | #include <ATen/core/class_type.h>
#include <ATen/core/Dict.h>
#include <ATen/core/function_schema.h>
#include <ATen/core/ivalue.h>
#include <c10/macros/Macros.h>
#include <c10/util/irange.h>
#include <ATen/core/function.h>
namespace c10 {
void ClassType::addMethod(torch::jit::Function* method) {
TORCH_CHECK(
... |
7c1be46747ae3c52f7d6ba6962082e6c1211afe6d07cb7905b40499b821c2ade | C++ | 23,505 | 629 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/Config.h>
#include <ATen/Parallel.h>
#include <ATen/core/Tensor.h>
#include <torch/library.h>
#include <ATen/native/mkldnn/Linear.h>
#include <ATen/native/LinearAlgebraUtils.h>
#include <ATen/native/Resize.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/Funct... |
5f5e10b93f127230459c8f612f877e36f5ab76dfcf2c4ba93c5e680e7cfdf2c0 | C++ | 23,514 | 682 | #include <qnnpack/indirection.h>
#include <qnnpack/log.h>
#include <qnnpack/operator.h>
#include <qnnpack/pack.h>
#include <qnnpack_func.h>
#include <cstring>
#include <memory>
#include <numeric>
namespace qnnpack {
struct q8gemm_xzp_context {
size_t k;
size_t k_stride;
size_t n;
size_t n_stride;
const uint... |
15d62a72a8e8665f800e48e37f53ad92e528f52478c320557ec25483b91d19ba | C++ | 23,606 | 579 | #include "../dep/laynii_lib.h"
int show_help(void) {
printf(
"LN2_GEODISTANCE: Measure geodesic distances from a set of voxels.\n"
"\n"
"Usage:\n"
" LN2_GEODISTANCE -domain mask.nii -init points.nii \n"
"\n"
"Options:\n"
" -help : Show this help.\n"
" -init : Ini... |
0727de361754c98f797e3125823621e8bb1169f74bea886f8590cbd57f81e88b | C++ | 23,683 | 948 | /***************************************************************************
*
* 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... |
d9e19a2a6646fc6dac5ea041b8badaf6bd5b8492899899dfff09db650edd5e0d | C++ | 23,903 | 679 | #define TORCH_ASSERT_NO_OPERATORS
#include <ATen/AccumulateType.h>
#include <ATen/Dispatch.h>
#include <ATen/native/ReduceOps.h>
#include <ATen/native/TensorIterator.h>
#include <ATen/native/cpu/Reduce.h>
#include <ATen/native/cpu/utils.h>
#include <c10/util/irange.h>
#include <ATen/cpu/vec/functional.h>
#include <algo... |
43c6f321217ecf227ff7a37f68ce5ce6181a4660af336d2a9ee1002286df893f | C++ | 23,945 | 747 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/Dispatch.h>
#include <ATen/TensorUtils.h>
#include <ATen/native/ConvUtils.h>
#include <ATen/native/CPUBlas.h>
#include <ATen/native/DilatedConvolutionUtils.h>
#include <ATen/native/im2col.h>
#include <ATen/native/vol2col.h>
#include... |
4cfcb74fd5382111150e407863d439aef3d532c46fc40fb651290227e6674851 | C++ | 23,995 | 515 | // 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/BatchedFallback.h>
#include <ATen/functorch/LegacyVmapTransforms.h>
#include <ATen/... |
a723b5d37e96bf4ea961c38e7d1bb9b4ceb8b0f112406f51d22e6c6f3089945b | C++ | 24,008 | 650 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/Config.h>
#include <ATen/core/Tensor.h>
#include <ATen/native/mkldnn/MKLDNNCommon.h>
#include <ATen/native/mkldnn/Utils.h>
#include <ATen/native/utils/ParamUtils.h>
#include <c10/util/Float8_e4m3fn.h>
#include <torch/library.h>
#ifndef AT_PER_OPERATOR_HEADERS
#... |
9f5b6f0735e00584bbe6f997081cc69e3725ba484f96475670053e0b38e87605 | C++ | 24,047 | 563 | // 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... |
8d04b5367948690b8b9a74f7ed0e0d71eda11655b9daf466f378a46961f6022c | C++ | 24,076 | 658 | #include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/nvrtc_stub/ATenNVRTC.h>
#include <ATen/cuda/detail/DeviceThreadHandles.h>
#include <c10/cuda/CUDACachingAllocator.h>
#include <algorithm>
#include <atomic>
#include <map>
#include <memory>
#include <regex>
#include <shared_mutex>
#include <string>
#include <tuple... |
2185399c4d9e8cf17fdc0161f467b4e41759f5562d4435d34923186756d85976 | C++ | 24,133 | 908 | #include "src/acc/cpu/device_stubs.h"
#include "src/acc/acc_ptr.h"
#include "src/acc/acc_projector.h"
#include "src/acc/acc_backprojector.h"
#include "src/acc/acc_projector_plan.h"
#include "src/acc/cpu/cpu_benchmark_utils.h"
#include "src/acc/cpu/cpu_helper_functions.h"
#include "src/acc/cpu/cpu_kernels/helper.h"
#in... |
420470fc2dea681778e4a508c9291278081c13524e23b5fa4fb74a951a072199 | C++ | 24,216 | 590 | // 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... |
12b4a1c7ab7c510da8f23e48b477b81ee9984b0834d89788d1f591b12401637c | C++ | 24,257 | 831 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/Context.h>
#include <ATen/TensorGeometry.h>
#include <ATen/TensorUtils.h>
#include <ATen/core/Tensor.h>
#include <ATen/cuda/CUDAConfig.h>
#include <ATen/cuda/EmptyTensor.h>
#include <ATen/native/ConvUtils.h>
#if AT_CUDNN_ENABLED()
#include <ATen/native/cudnn/C... |
18bcdc1cf37eb513c6f8dbace88895b2a258f2171a56e57f389b7dca6a74fd3f | C++ | 24,326 | 673 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <algorithm>
#include <ATen/core/Tensor.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>
#include <ATen/BlasBackend.h>
#include <ATen/... |
d1c39cdf04ff512e2351f40a005b8d6141cd14f9d772cee28fcd2635e31a9f03 | C++ | 24,426 | 625 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/Config.h>
#include <ATen/Dispatch.h>
#include <ATen/native/Resize.h>
#include <ATen/native/SpectralOpsUtils.h>
#include <c10/util/accumulate.h>
#include <c10/util/irange.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/Functions.h... |
3a9442b941186952351306bd5c16b78ba1b42d5759ab001f94864509aa22f607 | C++ | 24,433 | 636 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/Parallel.h>
#include <ATen/WrapDimUtilsMulti.h>
#include <ATen/cpp_custom_type_hack.h>
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
#include <ATen/native/quantized/PackedParams.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <A... |
a11989ff0a36d5f7d1b4cb10350e0677aa9aff9ba550e8679406b46c69b96304 | C++ | 24,447 | 753 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/Dispatch.h>
#include <ATen/Parallel.h>
#include <ATen/TensorUtils.h>
#include <ATen/div_rtn.h>
#include <ATen/native/ConvUtils.h>
#include <ATen/native/CPUBlas.h>
#include <ATen/native/Unfold2d.h>
#include <c10/util/irange.h>
#inclu... |
8fe399706fda49ae91118bcde7d5afcdca14533b11c2d3d4029a4e6115a2414d | C++ | 24,497 | 467 |
#include <ATen/FunctionalInverses.h>
#include <ATen/ATen.h>
#include <ATen/ExpandUtils.h>
#include <ATen/WrapDimUtilsMulti.h>
#include <utility>
namespace at::functionalization {
// This logic is similar to autograd code for view backwards calls.
// We can't easily share it though, because (eventually) these functi... |
788c8e3fbeca7b9d56030aca8eaad3a74dda23ae593daf11b65de007f85a28bf | C++ | 24,723 | 840 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/native/LinearAlgebraUtils.h>
#include <ATen/native/Resize.h>
#include <ATen/native/mkldnn/xpu/detail/oneDNN.h>
#include <ATen/native/xpu/Blas.h>
#include <torch/library.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/Functions.h>
#include <ATen/NativeFunction... |
824ee472b1cdb4a0a10ae7819bd5a09cfea1cce98122152aa438b51741f6d165 | C++ | 24,939 | 668 |
#include "../dep/laynii_lib.h"
int show_help(void){
printf(
"LN_LAYER_SMOOTH : Layering algorithm based on iterative smoothing\n"
"\n"
" This program is designed to smooth data within layer or columns,\n"
" In order to avoid smoothing across masks a crawler smoothed only across connected voxe... |
d3373f3c5c10a8b688908a08f9f10d9c15bb7e0bb6bb39cc10922087046f13f4 | C++ | 25,002 | 713 | #include <ATen/BlasBackend.h>
#include <ATen/ExpandUtils.h>
#include <ATen/Tensor.h>
#include <ATen/ceil_div.h>
#include <ATen/core/Tensor.h>
#include <ATen/native/mkldnn/xpu/detail/Attr.h>
#include <ATen/native/mkldnn/xpu/detail/oneDNNContext.h>
#include <c10/core/ScalarType.h>
#include <oneapi/dnnl/dnnl.hpp>
namesp... |
6db804fcb9893ef4fe075fafe3c826bf40356efaebb2661a45058f2fb10888c3 | C++ | 25,075 | 834 | #include "particle_set.h"
#include "tomogram_set.h"
#include <src/jaz/util/log.h>
#include <src/jaz/util/zio.h>
#include <src/jaz/math/Euler_angles_relion.h>
#include <sstream>
#include <set>
#include <map>
using namespace gravis;
ParticleSet::ParticleSet()
{}
ParticleSet::ParticleSet(std::string filename, std::str... |
62c9f754f732919770be7b062da628bd4e47bbb2ca84a0fd549d87affb59d4e1 | C++ | 25,087 | 595 |
#include "../dep/laynii_lib.h"
int show_help(void) {
printf(
"LN2_CHOLMO: Add additional layers onto already existing layers with\n"
" like the name suggests is is padding layers \n"
" this can be helpful to extend profiles into CSF or into WM \n"
"\n"
"Usage:\n"
" ... |
ffdd39b75ea56e47ab8a49a5f994fb29595f172467699df8affcc30d02ebdb81 | C++ | 25,092 | 577 | #include "../dep/laynii_lib.h"
#include <sstream>
int show_help(void) {
printf(
"LN2_PATCH_FLATTEN_2D: Equivalent of LN2_PATCH_FLATTEN but designed to work with 2D\n"
" images such as histology images. Flattens a patch of cortex two\n"
" coordinates. For instan... |
6b0480620c86b950a06a845806ee97c4aada80135a412df3be54230704f176b5 | C++ | 25,161 | 645 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/Dispatch.h>
#include <ATen/TensorIterator.h>
#include <ATen/TensorOperators.h>
#include <c10/util/Exception.h>
#include <optional>
#include <ATen/CPUGeneratorImpl.h>
#include <ATen/core/DistributionsHelper.h>
#include <ATen/native/... |
dda800fd33c801a083c7aabbedc9f2233fc6eb9e5adfb83137eda0370d03ee4b | C++ | 25,164 | 756 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/Dispatch.h>
#include <ATen/Parallel.h>
#include <ATen/TensorIndexing.h>
#include <ATen/TensorMeta.h>
#include <ATen/TensorOperators.h>
#include <ATen/TensorUtils.h>
#include <ATen/native/cpu/utils.h>
#include <ATen/native/Resize.h>
... |
eacf396ed6d9b04ff76e87b962783106071ec546fc5e8d7800854df6ff1934d0 | C++ | 25,256 | 655 | //********************************************************************************************************************
// Processor.cpp
//********************************************************************************************************************
#include "ProcessorSpike.h"
//**********************************... |
cdf8f81324ec30706a8c042fc33d7a9857c7c86f51a3664a33404b26261759bb | C++ | 25,261 | 786 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/Context.h>
#include <ATen/Config.h>
#include <ATen/OpMathType.h>
#include <ATen/native/cpu/ReducedPrecisionFloatGemvFastPathKernel.h>
#include <c10/macros/Macros.h>
#include <c10/util/Exception.h>
#include <c10/util/complex.h>
#include <c10/util/irange.h>
#inclu... |
e0fbc9461aa6fbd28c4a60475d85d516d28c4122045f895838c4f055e735e623 | C++ | 25,527 | 721 | //***********************************************************************************************
//
// Written 1990 - 1996 by AXON Instruments Inc.
// ... |
8f4cecd08bf4ea487f9a49ae3c97691d48227af6a66df38e2956cd03cce4bb3b | C++ | 25,548 | 933 | /***************************************************************************
*
* 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... |
f06c8219ccd8d2e3c2dd3e1d7e41d6b487b5df5fbd66e9578859b57d858eb181 | C++ | 25,586 | 722 | //***********************************************************************************************
//
// Written 1990 - 1996 by AXON Instruments Inc.
// ... |
6e658ecf0c457fbfa51468a1a081c33af6cfc9143b9289f4aff9e8e91d354585 | C++ | 25,647 | 1,064 | #include "motion_fit.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/math/Tait_Bryan_angles.h>
#include <src/jaz/math/Gaussian_process.h>
#include <src/jaz/ut... |
457730453ea3acae0c6cf18a9ff9c8b392ba406f11a1bb0d7a87fef7a8ffbd9b | C++ | 25,779 | 714 | /***************************************************************************
*
* 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... |
8586d8979b9f57802f71e35bbd929b3719fd444807c0958773b43ca85b97286b | C++ | 25,835 | 926 | /***************************************************************************
*
* 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... |
339c2e8fb62d4bb7aa3102a80a5ba647633e321783af1632c3a8c04dab285dfa | C++ | 25,911 | 655 | //********************************************************************************************************************
// Processor.cpp
//********************************************************************************************************************
#include "ProcessorSpike.h"
//*****************************... |
591bfe944ddaad806372e1a2ddcde6140e60e7bb873daddf6a305d8dc363e71c | C++ | 26,386 | 589 |
#include "../dep/laynii_lib.h"
#include <sstream>
int show_help(void) {
printf(
"LN2_VORONOI: Voronoi propagation from a set of voxels.\n"
"\n"
"Usage:\n"
" LN2_VORONOI -domain domain.nii -init initial_voxels.nii\n"
"\n"
"Options:\n"
" -help : Show this help.\n"
" ... |
87d17b8bfb1782f8afc8aef8ff2ad93e852f289b0d5c811a97ff573467c479af | C++ | 26,618 | 670 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/native/quantized/cpu/qembeddingbag_prepack.h>
#include <ATen/Parallel.h>
#include <ATen/Utils.h>
#include <ATen/core/Tensor.h>
#include <ATen/core/custom_class.h>
#include <ATen/native/quantized/cpu/EmbeddingPackedParams.h>
#include <ATen/native/quantized/cpu/f... |
960f5e86a457f8f7e020391710ef762986ba6a211c6c5fe41030fc03ff1d0673 | C++ | 26,666 | 832 | #include "tomogram_set.h"
#include "motion/Fourier_2D_deformation.h"
#include "motion/spline_2D_deformation.h"
#include "motion/linear_2D_deformation.h"
#include <fstream>
#include <sstream>
#include <src/error.h>
#include <src/jaz/optics/damage.h>
#include <src/jaz/util/zio.h>
#include <src/jaz/util/log.h>
#include <s... |
93e92b23a728ce49465187877dbd229f9c0eb2832012641bd774cf786488c1ce | C++ | 26,816 | 697 | #include <cassert>
#include <iostream>
#include <memory>
#include <string>
#include <c10/core/MemoryFormat.h>
#include <c10/util/irange.h>
#include <fbjni/ByteBuffer.h>
#include <fbjni/fbjni.h>
#include "pytorch_jni_common.h"
#if defined(__ANDROID__)
#ifndef USE_PTHREADPOOL
#define USE_PTHREADPOOL
#endif /* USE_PTHR... |
00086c3054e1d8ab235b391ed585fb63943dd222a519611af83145441258033f | C++ | 26,897 | 875 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/Dispatch.h>
#include <ATen/TensorMeta.h>
#include <ATen/TensorUtils.h>
#include <ATen/core/Tensor.h>
#include <ATen/native/ConvUtils.h>
#include <ATen/native/CPUBlas.h>
#include <ATen/native/im2col.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/Functions.h>... |
fa33bf622cfbe4834e9785dd1fbc53c43b51d848454e0478048a7bcfe3cc9b4b | C++ | 27,058 | 629 | #include <cstdint>
#include <c10/util/typeid.h>
#include <c10/util/Exception.h>
#include <c10/util/SmallVector.h>
#include <c10/core/Scalar.h>
#include <c10/core/ScalarType.h>
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/BlasBackend.h>
#include <ATen/Context.h>
#include <ATen/core/Tensor.h>
#include <ATen... |
d61384930e5f4ba2e0975845895377cba3a4666070cb6628fea9c6d050f5ea82 | C++ | 27,063 | 573 | #include <limits>
#include <vector>
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/native/ForeachUtils.h>
#include <c10/util/irange.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/Functions.h>
#include <ATen/NativeFunctions.h>
#include <ATen/Operators.h>
#else
#include <ATen/... |
3800a64e856693ec4e7f952e5de40ff0d9c5c6faf22cde6a8241bf1ae0ea4de8 | C++ | 27,067 | 863 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/Dispatch.h>
#include <ATen/Parallel.h>
#include <ATen/TensorUtils.h>
#include <ATen/div_rtn.h>
#include <ATen/native/ConvolutionMM3d.h>
#include <ATen/native/CPUBlas.h>
#include <ATen/native/TransposeType.h>
#include <ATen/native/Un... |
5a13b6a28d3c0dcf9896c9fdfc1595fdd27a63c9f5f3df6c6b63dc627e9e8f23 | C++ | 27,419 | 746 | /***************************************************************************
*
* Author: "Sjors H.W. Scheres" "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
* t... |
7270c8999365c8410ba8a9f822176a38c02e50af1d560e95ce83c40c63783cd0 | C++ | 27,466 | 805 | // Copyright 2008, 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 ... |
b771b2067b47618971adc7faa5951882ff0699733d54f19deaed9ca373a107ec | C++ | 27,951 | 810 | #ifdef _SYCL_ENABLED
// 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.