sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
155c726f04150692f60c4600a4aba22bff0cfb2b0c6803b0decf246652d2c536
C/C++
15,931
543
#ifndef __LIBGRAVIS_T_MESH_H__ #define __LIBGRAVIS_T_MESH_H__ /****************************************************************************** ** Title: tMesh.h ** Description: Templated mesh representation using std:;vector. ** ** Author: Jean-Sebastien Pierrard, 2005 ** Brian Amberg, 2006 *...
0adddf880ba90080ecc79d58670de472a6634b1cd3cbcc4785112f310d4b9b5c
C/C++
15,949
315
#pragma once #include <cutlass/gemm/threadblock/default_mma.h> #include <ATen/native/cuda/cutlass_extensions/arch/mma.h> #include <ATen/native/cuda/cutlass_extensions/gemm/threadblock/dq_mma_pipelined.h> #include <ATen/native/cuda/cutlass_extensions/gemm/warp/default_mma_tensor_op.h> #include <ATen/native/cuda/cutlas...
5346d29645893c9a1e8eb32a1d77261c31c2a3b220879660e7a88fb6c7751770
C/C++
16,003
505
/*************************************************************************** * * 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...
4e73faea165ad67a51cab9e0ce0fe6bb257697c09ca1635f45e006ed117a1ac3
C/C++
16,055
381
// NEON-optimized uint8 bilinear resize with antialiasing for aarch64. // // This is the NEON counterpart of UpSampleKernelAVXAntialias.h. // It only supports num_channels == 3 with channels-last input. #pragma once #if defined(__aarch64__) #include <ATen/core/Tensor.h> #include <arm_neon.h> #include <c10/util/irange...
9eb668930b82c71374f66628e42b6d50eaf7ec75173ec42599f5aaf1c1200ede
C/C++
16,174
312
/*************************************************************************** * * 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...
582740ea0b91a3ef01387fc7aedec801310fd374f8d839419555d762e74be009
C/C++
16,216
546
#pragma once // Please note that this file is // used across both CPU and GPU. #include <type_traits> #include <complex> #include <c10/macros/Macros.h> #include <ATen/detail/FunctionTraits.h> #include <ATen/NumericUtils.h> #include <ATen/OpMathType.h> #if defined(__CUDACC__) #include <ATen/cuda/DeviceUtils.cuh> #inclu...
4b4f878340d5b0a58d87d19f86445efc77263904ef002cd86086b9e82e5592ad
C/C++
16,266
515
#pragma once #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec256/vsx/vsx_helpers.h> #include <ATen/cpu/vec/vec_base.h> #include <c10/util/irange.h> #include <sleef.h> namespace at { namespace vec { inline namespace CPU_CAPABILITY { template <> struct is_vec_specialized_for<double> : std::bool_consta...
cdd7f2d79d686109f9366296410fb69fa3d25d25827553789690e62e87df212e
C/C++
16,373
483
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com> // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a cop...
36f4f490af1adebab456637e4876262bc87c283df910420f92c7a245e1e5b3d5
C/C++
16,385
539
#pragma once #include <ATen/Config.h> #if AT_MKLDNN_ENABLED() #include <ATen/Tensor.h> #include <ATen/native/quantized/PackedParams.h> #include <ideep.hpp> #if !defined(__powerpc__) #include <cpuinfo.h> #endif #include <c10/util/CallOnce.h> #include <c10/util/hash.h> using PrimitiveCacheKey = std::tuple< double,...
b5414f5cf80d14e75523aa622022fb742c4449ba3469bb5c1518264c1f14634b
C/C++
16,410
547
#pragma once // DO NOT DEFINE STATIC DATA IN THIS HEADER! // See Note [Do not compile initializers with AVX] #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec_base.h> #include <c10/util/irange.h> #include <limits> #if defined(CPU_CAPABILITY_AVX2) #define SLEEF_STATIC_LIBS #include <sleef.h> #endif nam...
db9f2b359cb0b59405cb384de6510d96349fe582407445d6bf833b5f337c236d
C/C++
16,428
544
#ifndef DIFF2_GPU_KERNELS_H_ #define DIFF2_GPU_KERNELS_H_ #include <vector> #include <iostream> #include <fstream> #include <cmath> #include <sycl/sycl.hpp> #include "src/acc/acc_projector.h" #include "src/acc/sycl/sycl_settings.h" #include "src/acc/sycl/sycl_kernels/sycl_utils.h" #include "src/acc/sycl/sycl_kernels/...
67d6047b5fc1dd93158d70b209d18a01ea2e136320c39a71f5833c2cac4e534a
C/C++
16,463
507
#pragma once #include <c10/core/DeviceType.h> #include <c10/macros/Macros.h> #include <atomic> #include <utility> #include <variant> // Implements instruction set specific function dispatch. // // Kernels that may make use of specialized instruction sets (e.g. AVX2) are // compiled multiple times with different comp...
28e4f5a86d06047d4c13beff92d46aaba980f292db47967f079e292acf0ed8b5
C/C++
16,603
515
#ifndef __LIBGRAVIS_T_MM_H__ #define __LIBGRAVIS_T_MM_H__ #include "tVarMatrix.h" #include <iostream> #include <vector> namespace gravis { template <class T> class tConstMM; template <class T> class tMM { public: typedef tMatrix<T, 3, 1> Vector; std::string title; tVarVector< Vecto...
187daa2921bc0bec120de2667f9c3c5c57961126ba1be577915cb3fb14dc84b1
C/C++
16,687
431
#pragma once // This file provides two functions to help write elementwise kernels: // // cpu_kernel(TensorIterator iter, <lambda>) // cpu_kernel_vec(TensorIterator iter, <lambda>, <vec_lambda>) // // Both functions may generate vectorized code. The cpu_kernel implementation // relies on the compiler's auto-vector...
edb1e0e7f9c3b669c27dd366150a5e0e5dbbcb2f6dc5ff0ca8d7df2eb43c6fcf
C/C++
16,702
471
#pragma once #include <limits> #include <ATen/core/Tensor.h> #include <ATen/native/Resize.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/NonEmptyUtils.h> #include <ATen/WrapDimUtilsMulti.h> #include <c10/core/ScalarType.h> #include <c10/util/irange.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/F...
43680063ee44bc8b95a5d5d22a01f6923ca08bbc5c1049ffb18a9e346074f579
C/C++
16,713
415
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ob...
3849c8d9429c4c749af7a61f5cc08887be11f7a3fac672b834e784619cb6cec8
C/C++
16,906
483
/*************************************************************************** * * 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...
95596151c80b2eccaa8818b93d5c1f9af70b1aba0cfb219c5140fece47c3d16a
C/C++
16,912
567
/*************************************************************************** * * 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...
ca901183b20531fd98b3cc3037335c7e8dd9e3c156c04991b32d3ae6a6a8a4ea
C/C++
16,963
551
#pragma once #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec256/vsx/vsx_helpers.h> #include <ATen/cpu/vec/vec_base.h> #include <sleef.h> namespace at { namespace vec { // See Note [CPU_CAPABILITY namespace] inline namespace CPU_CAPABILITY { template <> struct is_vec_specialized_for<float> : std::bool...
323d72708b16b54337a0382d1c93f48fa00f56408a171370e348590d44cc3c5f
C/C++
17,000
453
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2017 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2014 yoco <peter.xiau@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of th...
476def62f23809be59744491baf187dc1099ef7b483d65b68e46d71f148d5fc7
C/C++
17,062
548
#pragma once #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #else #include <ATen/ops/view.h> #include <ATen/ops/view_copy.h> #endif #include <ATen/Tensor.h> #include <ATen/core/DimVector.h> #include <c10/core/SymBool.h> #include <c10/util/Exception.h> #include <c10/util/MaybeOwned.h> #include <c10/util/i...
c06ef707b6a9bbe27f505e2d32ef8c61ff17b597ab73a76ed6a8a9762a28885e
C/C++
17,068
385
/*************************************************************************************************** * Copyright (c) 2017 - 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * * Redistribution and use in source and binary forms, with or without * modification, are p...
8405f3499a342c11e226adefc77f75dea8ec1ed03aab2be4120785bb63c09762
C/C++
17,236
416
/*************************************************************************** * * 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...
f24c30954d8a3353794f1566e365a1cc484e2ddf3208030b9745df60d679ae75
C/C++
17,318
398
#pragma once #include <ATen/core/Tensor.h> #include <ATen/mps/MPSProfiler.h> #include <ATen/native/mps/OperationUtils.h> static_assert(sizeof(bool) == 1); namespace at::native::mps { static constexpr int64_t kChunkSize = 65536; static constexpr int64_t kmaxThreadGroups = 32; static constexpr int64_t kmaxTensors = 32...
1ac871c5e19e778579ed80b1cc3faa5b9661ab5ae47ad5bc9a10e81d214407a6
C/C++
17,349
691
#ifndef ACC_HELPER_FUNCTIONS_H_ #define ACC_HELPER_FUNCTIONS_H_ #include "src/acc/acc_ml_optimiser.h" #ifdef _CUDA_ENABLED using deviceStream_t = cudaStream_t; #elif _HIP_ENABLED using deviceStream_t = hipStream_t; #elif _SYCL_ENABLED #include "src/acc/sycl/sycl_virtual_dev.h" using deviceStream_t = virtualSYCL*; ...
217437c377cd92799f2e6ec8d7eb2bf0e2056786374e0bc42ab68de4e285fc54
C/C++
17,356
446
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2016 Pedro Gonnet (pedro.gonnet@gmail.com) // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain ...
68a3b6cd526c3291cc89ec3e623dcabca3d1410ca6788dfbf6ef935f7c68bf15
C/C++
17,426
512
#pragma once #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec256/vsx/vsx_helpers.h> #include <ATen/cpu/vec/vec_base.h> #include <c10/util/qint8.h> #include <array> // This file defines Vectorized<> for the quantized types. // // // Currently, we simply use these classes as efficient converters between ...
da96879071b126d638c831d1381dbf4fb64a7eb6b2f3a7b27fdf78937a6d9f10
C/C++
17,439
509
#pragma once #ifdef USE_PYTORCH_QNNPACK #include <ATen/core/Tensor.h> #include <c10/util/irange.h> #include <pytorch_qnnpack.h> #include <qnnpack_func.h> #include <ATen/native/quantized/cpu/XnnpackUtils.h> #include <ATen/native/quantized/PackedParams.h> #include <ATen/native/utils/Factory.h> #ifndef AT_PER_OPERATOR_H...
8009931ca7885f31f0ba2817f985da024406510258e93d3a9fbc4f483ad86950
C/C++
17,442
447
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2010-2016 Konstantinos Margaritis <markos@freevec.org> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0...
9f1c86e2e7e6b9236b3486ad671fe0ba660470e17732f1028443dcdc663dfad5
C/C++
17,448
522
#pragma once /* AVX implementation of sin, cos, sincos, exp and log Based on "sse_mathfun.h", by Julien Pommier http://gruntthepeon.free.fr/ssemath/ Copyright (C) 2012 Giovanni Garberoglio Interdisciplinary Laboratory for Computational Science (LISC) Fondazione Bruno Kessler and University of Trento...
91d56b00335ae08ebacfec0961f8391b1a1bb9b18d6291142082d65732c45811
C/C++
17,462
464
#pragma once #include <ATen/core/Tensor.h> #include <ATen/native/mkldnn/xpu/detail/Utils.h> #include <ATen/native/mkldnn/xpu/detail/oneDNNContext.h> #include <ATen/ops/dequantize.h> #include <oneapi/dnnl/dnnl.hpp> #include <oneapi/dnnl/dnnl_types.h> namespace at::native::onednn { /* oneDNN quantization usage: http...
07e0c0056632fd66baa67aef0b4c4a627d33b86bd7dd02c26f0abae515dd7be2
C/C++
17,509
519
#pragma once #include <ATen/cpu/vec/vec_base.h> #include <ATen/cpu/vec/vec_convert.h> #include <c10/util/bit_cast.h> namespace at::vec { inline namespace CPU_CAPABILITY { #if defined(__aarch64__) // Define these specializations to match c10::convert, as defined in TypeCast.h, // which narrows float -> uint8_t via int...
ad972a51b838763d508a3cc54d037cd96315f844004e9d2c8c97077443b75b37
C/C++
17,525
414
/***************************************************************************** ** Copyright (C) Cambridge Electronic Design Limited 1988-2005 ** All Rights Reserved ** ** son.h ** 78 cols --->* ** Definitions of the structures and routines for the SON ...
1ff2a53f7414f901f3fb57904a25b9373126cf217641d64b768c614712e939f6
C/C++
17,533
549
/*************************************************************************** * * 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...
9465e091871d84cf09699577384743c6e0171194a49db26f117dd256b39c2322
C/C++
17,557
484
// 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...
e2389de5f8663b54357cebb13e31230bd721bcb4485bb82dc5385ab297730a46
C/C++
17,588
782
#ifndef BANDPASS_FILTER_H #define BANDPASS_FILTER_H #include "raw_image.h" #include "stack_helper.h" #include "padding.h" #include <src/jaz/math/fft.h> #include <src/ctf.h> class ImageFilter { public: template<class T> static BufferedImage<T> bandpass( const RawImage<T>& img, double wavelengthPx, double w...
d63e4734a76a4729f5247919b6df4b98ec8d592e089791cc8c8aa64a3d9d00a8
C/C++
17,608
580
#pragma once // DO NOT DEFINE STATIC DATA IN THIS HEADER! // See Note [Do not compile initializers with AVX] #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec_base.h> #include <c10/util/irange.h> #include <limits> #if (defined(CPU_CAPABILITY_AVX512)) #define SLEEF_STATIC_LIBS #include <sleef.h> #endif ...
81d473fa2b4560d2efb7a84ca11d18a225dffdeb9745ed25eb81b17fcb5cff81
C/C++
17,661
346
#pragma once #include <cutlass/gemm/threadblock/default_mma.h> #include <ATen/native/cuda/cutlass_extensions/arch/mma.h> #include <ATen/native/cuda/cutlass_extensions/gemm/threadblock/dq_mma_multistage.h> #include <ATen/native/cuda/cutlass_extensions/gemm/warp/default_mma_tensor_op.h> #include <ATen/native/cuda/cutla...
b3c577fb6769933466ad50ff5eb727caa69b2cf864fb20a23a5c5b806c959b74
C/C++
17,702
429
/*************************************************************************************************** * Copyright (c) 2017 - 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * * Redistribution and use in source and binary forms, with or without * modification, are p...
31dfe965609779d497744364b6021fa5ac9959042ea3d8dfc88b511a0c9669a9
C/C++
17,704
546
#pragma once #include <ATen/core/ivalue_to.h> #include <ATen/core/jit_type_base.h> #include <c10/macros/Macros.h> #include <c10/macros/Export.h> #include <c10/util/TypeTraits.h> #include <c10/util/TypeList.h> #include <c10/util/intrusive_ptr.h> #include <c10/util/ArrayRef.h> #include <compare> #include <iterator> #inc...
9ef71d4405f5b4f1a15cd2d9305d3145a6b64c6d1b3eb23b091b182bcbaacc07
C/C++
17,715
450
#pragma once /* Provides a subset of CUDA BLAS functions as templates: gemm<Dtype>(transa, transb, m, n, k, alpha, a, lda, b, ldb, beta, c, ldc) gemv<Dtype>(transa, m, n, alpha, a, lda, x, incx, beta, y, incy) dot<Dtype>(n, x, incx, y, incy, result) where Dtype is double, float, at::Half or at::BF...
2ec0789b5ca863ca7cd1b11fe857b3f728ff08c005b22b28db2f4912aca17aaf
C/C++
17,725
502
// Copyright © 2022 Apple Inc. #pragma once #include <ATen/Tensor.h> #include <ATen/mps/MPSAllocatorInterface.h> #include <ATen/mps/MPSStream.h> #include <os/log.h> #include <os/signpost.h> #include <atomic> #include <ctime> #include <sstream> #include <string> #include <unordered_map> #include <utility> #ifndef ...
3f4ca76edef848223953dc40bec750b103f00ed4a851498d270c5c5f93654f23
C/C++
17,837
407
/* FILE functions.h */ /* Public function declarations */ /* WARNING: Install new functions in macros/Function.h, too! */ #include <stdlib.h> /* abs.h */ /* clude "macro.h" * macro prototypes (included below) */ /* align.c */ void InitAlignTimes(); /* align.c */ void Init_Align(); /* align.c */ int ...
52aa8c0ba744507a5fbe75f3a87a56cebeb32e6da72b050500eda65150de0eaa
C/C++
17,944
773
#ifndef __LIBGRAVIS_T_IMAGE_H__ #define __LIBGRAVIS_T_IMAGE_H__ /****************************************************************************** ** Title: tImage.h ** Description: Implements two dimensional array with row-major memory layout. ** ** Author: Jean-Sebastien Pierrard, 2009 ** Com...
41196a6c6c88515c6c6f302e7d7fd48dbfc67db0b37ee5a350c1746450ef4447
C/C++
17,952
615
/* Portions of this code are under: Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. */ #ifndef HIP_DIFF2_KERNELS_H_ #define HIP_DIFF2_KERNELS_H_ #include <hip/hip_runtime.h> #include <vector> #include <iostream> #include <fstream> #include "src/acc/acc_projector.h" #include "src/acc/acc_project...
c7bc756628a6114beb757edb985da7fde7698a623f8466fdfe8fb31e304e4304
C/C++
18,017
474
/*************************************************************************************************** * Copyright (c) 2017 - 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * * Redistribution and use in source and binary forms, with or without * modification, are p...
e11d6febc5605de716a32b2497c290864d9343769418dc4aa8f7825548965a65
C/C++
18,071
602
#pragma once #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec_base.h> #include <c10/macros/Macros.h> #include <c10/util/irange.h> #include <cmath> namespace at::vec { // Note [CPU_CAPABILITY namespace] // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // This header, and all of its subheaders, ...
e81ddbf1859b6f95072314b9eb5d01b2d610d632040b670261c8e3c373f564f4
C/C++
18,123
533
#pragma once #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec256/vsx/vsx_helpers.h> #include <ATen/cpu/vec/vec_base.h> #include <c10/util/irange.h> #include <c10/util/quint8.h> #include <array> // This file defines Vectorized<> for the quantized types. // // // Currently, we simply use these classes a...
869798e47877885b1c6f2ca9273c93fb3c8a26ecabf1386ab7dbe229c882afb3
C/C++
18,239
435
/* * 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 <immintrin.h> #include <qnnpack/q8gemm_sparse.h> #include <requantization/runtime-sse2.h> ...
fee31355391527f1810c1b48616518155fe6fb0f8fb66ab7f5b012093c19377a
C/C++
18,400
452
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2006-2010 Benoit Jacob <jacob.benoit.1@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If ...
347a1a0cc1de2bb91a892f347244ce96414877fee067d275301dc9424bee6693
C/C++
18,420
464
#pragma once #include <ATen/SparseCsrTensorImpl.h> #include <ATen/SparseTensorImpl.h> #include <ATen/core/Tensor.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #include <ATen/Operators.h> #else #include <ATen/ops/_sparse_compressed_tensor_unsafe.h> #include <ATen/ops/...
530cd6cc31ddca2b5fcb018d6e9aa4de954781237276025fe902769fbc37b644
C/C++
18,463
550
/* * 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. */ #pragma once #include <algorithm> #include <cassert> #include <cmath> #include <cstddef> #include <c...
dd1ef59edbe699a0c18cdbafdd0ddef44d912feb61f7c36277589ba7042c1746
C/C++
18,608
400
#pragma once #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/Dispatch_v2.h> #include <ATen/Generator.h> #include <ATen/ExpandUtils.h> #include <ATen/Tensor.h> #include <ATen/MemoryOverlap.h> #include <ATen/native/Resize.h> #include <ATen/native/TensorIterator.h> #include <cmath> #include <limit...
0546bdfc37755f9df24cef3ddb49b9f9fe5772dca7e45056c9174662639798a7
C/C++
18,669
507
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If ...
d7004d73c43c46ce47993eef064fb1fc5788e1903ef563f088d81e08ab059793
C/C++
18,683
558
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ob...
ef3af1c023e92929507913741bc6abf5db9a01ccdb17af207a3bc1381b17f319
C/C++
18,799
483
// 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. #pragma once #include <c10/util/TypeList.h> #include <ATen/ATen.h> #include <ATen/Operators.h> #include <A...
85f1b2852eec544252ea729cde269704f79dfff88d3629cfe013de672bf25808
C/C++
18,836
483
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2018 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You c...
14f8a63dfc3689720e1fb13a8bafec059289af7a60cf4837e73c8d76f7e6d958
C/C++
18,852
480
/*************************************************************************** * * 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...
628241ba25d15e7ab4ff5b59f841af4dc54fdc359457f41973725126cf8ac7e9
C/C++
18,890
602
#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_MATH_H_ #define NUMPY_CORE_INCLUDE_NUMPY_NPY_MATH_H_ #include <numpy/npy_common.h> #include <math.h> /* By adding static inline specifiers to npy_math function definitions when appropriate, compiler is given the opportunity to optimize */ #if NPY_INLINE_MATH #define NPY_INPLAC...
54b75788f38232590efd59f125805d869027ab3149cf3f510741ebd2da8294f4
C/C++
18,901
400
/* //////////////////////////////////////////////////////////////////////////////////// // // Prototypes and definitions for the Levenberg - Marquardt minimization algorithm // Copyright (C) 2004 Manolis Lourakis (lourakis at ics forth gr) // Institute of Computer Science, Foundation for Research & Technology - H...
ef14f91a62a610263f8f0c239cba3daabab134d2535b7b1b1f3af689858d9769
C/C++
18,926
512
/*************************************************************************** * * 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...
faff0e5be7b0b1b77c155de319d5b9f994abc13aee408eb46324736f5b6270e9
C/C++
19,090
591
// 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...
c5e8a4f63f8cd7ce379c972bae739cd49d5fb91fa29a9845aeab41838e333148
C/C++
19,140
591
#pragma once // DO NOT DEFINE STATIC DATA IN THIS HEADER! // See Note [Do not compile initializers with SVE] #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec_base.h> #include <ATen/native/quantized/AffineQuantizerBase.h> #include <c10/util/qint32.h> #include <c10/util/qint8.h> #include <c10/util/quint8...
fb8769cb0474a34c5e0cddc72c9049283e26a2ce7b3fd039cbc1a391274fdf6a
C/C++
19,155
597
#pragma once #include <functional> #include <memory> #include <string> #include <utility> #include <ATen/core/qualified_name.h> #include <ATen/core/type_ptr.h> #include <c10/core/SymInt.h> #include <c10/core/SymFloat.h> #include <c10/core/SymBool.h> #include <c10/core/SymIntArrayRef.h> #include <c10/macros/Macros.h> ...
07d7b4f4b262245ee108347fa569d3a57ad1490a895f3b7f7e7fc701e3ddbeb0
C/C++
19,161
500
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009-2010 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You c...
c17dcaaad73b4be4752c0ba946e9bc947fb685af103f855fabd2850a592a5f15
C/C++
19,191
472
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2014 Benoit Steiner (benoit.steiner.goog@gmail.com) // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You ca...
f11bf166dedf27e3e5ade0302f5b75c93386b818f55dba8d47bbcb2675d9097d
C/C++
19,194
446
#pragma once #include <ATen/core/Tensor.h> #include <ATen/TensorUtils.h> #include <ATen/detail/CUDAHooksInterface.h> #include <ATen/native/DispatchStub.h> #include <c10/util/env.h> #include <c10/util/irange.h> #include <utility> namespace at::native { // Shared dispatch signatures. Many backward ops have identical s...
1a7dfb47339b99c4ec2fa614618f5a1b6d82b7c17eaf865a0b9dcd3c5a9a22ca
C/C++
19,238
480
/* * The public DType API */ #ifndef NUMPY_CORE_INCLUDE_NUMPY___DTYPE_API_H_ #define NUMPY_CORE_INCLUDE_NUMPY___DTYPE_API_H_ struct PyArrayMethodObject_tag; /* * Largely opaque struct for DType classes (i.e. metaclass instances). * The internal definition is currently in `ndarraytypes.h` (export is a bit * more...
b3705a918b16827f1f85f5c6a31d7b638d41b0271e2afbfd269aee0164802004
C/C++
19,273
519
#include <ATen/Config.h> #include <ATen/core/DimVector.h> #include <ATen/cuda/CUDAContext.h> #include <ATen/native/cuda/CuFFTUtils.h> #include <ATen/native/utils/ParamsHash.h> #include <c10/util/accumulate.h> #include <c10/util/irange.h> #include <cufft.h> #include <cufftXt.h> #include <limits> #include <list> #inclu...
8134806f0c87a19ffc217bdc0467c84a10efaf9ae7c305a2d9ca8c53ebc8f412
C/C++
19,279
491
#pragma once #include <ATen/ArrayRef.h> #include <ATen/FunctionalStorageImpl.h> #include <ATen/core/IListRef.h> #include <ATen/core/List.h> #include <ATen/core/boxing/BoxedKernel.h> #include <ATen/core/boxing/impl/boxing.h> #include <ATen/core/dispatch/Dispatcher.h> #include <c10/core/DispatchKey.h> namespace at { ...
015d4e9d7966e6cc173fa51dc33032bcdfa9758df37fea9c9a8fdef59f1be620
C/C++
19,358
694
/* * VOGL is always defined if a header file is from the * VOGL library. In cases where you do use some VOGL * initialisation routines like vinit, just put #ifdef VOGL... * around. */ #include <stdio.h> #ifndef VOGL #define VOGL #endif #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif /*...
eb7a6df4606f4c88c059d4daf03f6747f0458cc9072c4b690aebd77dd35309f4
C/C++
19,362
686
/* * 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. */ #pragma once #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <qnnpack/common....
afc416c5aeb6eb6b95abbc2e24b384f8dca36220db225298d58dc12ef75a4959
C/C++
19,432
531
#pragma once // DO NOT DEFINE STATIC DATA IN THIS HEADER! // See Note [Do not compile initializers with AVX] #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec_base.h> #include <c10/util/complex.h> #include <c10/util/irange.h> #include <torch/headeronly/util/Exception.h> #if defined(CPU_CAPABILITY_AVX2)...
d943e44e044421f7bc25ec9486d741d31298769549263a16ac78a47fc4261a36
C/C++
19,462
512
#pragma once #include <cmath> #include <ATen/OpMathType.h> #include <ATen/TensorUtils.h> #include <ATen/core/Tensor.h> #include <ATen/cpu/vec/functional.h> #include <ATen/cpu/vec/vec.h> #include <ATen/native/DispatchStub.h> #include <ATen/native/cpu/utils.h> /** * Note [compute_scales_value] * Note [area_pixel_com...
48ac908d53720ec29f9348cc2478d5abb0dadf63d34eb244533d01b23cd63d3f
C/C++
19,538
505
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2010 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You c...
96792884942c5302943e2bc6593aaa7bb6a666d0f1c5536d87f14dcd5a0d6b17
C/C++
19,574
517
// Original TunableOp is from onnxruntime. // https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/core/framework/tunable.h // https://github.com/microsoft/onnxruntime/tree/main/onnxruntime/core/providers/cuda/tunable // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. // // Adapting Tu...
e376e3780c034af95abc2a0b053de7847aeb5b6ccdf32f022c7c2ad5065c4cca
C/C++
19,602
493
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2018 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ob...
541046a06809cab06a275b75fcedc000879bcf7c9590878a65d6fcebab466d95
C/C++
19,702
633
#pragma once #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/sve/sve_helper.h> #include <ATen/cpu/vec/vec_base.h> #include <cmath> #if defined(__aarch64__) && defined(AT_BUILD_ARM_VEC256_WITH_SLEEF) #include <sleef.h> #define USE_SLEEF(sleef_code, non_sleef_code) sleef_code #else #define USE_SLEEF(sleef_co...
c37b9650f390954cedd87d9d47de0c904cc366fd4823f01f489cd1f3205d9efa
C/C++
19,710
636
#ifndef __LIBGRAVIS_T4MATRIX_H__ #define __LIBGRAVIS_T4MATRIX_H__ /****************************************************************************** ** Title: t4Matrix.h ** Description: Represents a 4x4 matrix with column-major memory layout. ** ** Author: Jean-Sebastien Pierrard, 2005 ** ...
02da50b527aaf669336ca46baca245f2e1fc06b96c320145e85f38b92894ba09
C/C++
19,745
579
// 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...
8899b63b4983a93076c841e328f84ad865e5c3f72209721b9fe17b00fb510e81
C/C++
19,864
737
#ifndef HELPER_KERNELS_H_ #define HELPER_KERNELS_H_ #include <vector> #include <iostream> #include <fstream> #include "src/macros.h" #include "src/acc/cpu/cpu_settings.h" #include "src/acc/cpu/cpu_kernels/cpu_utils.h" #include "src/acc/acc_projector.h" #include "src/acc/acc_projectorkernel_impl.h" namespace CpuKernel...
2e7111d1ddb71bff96792cce0d330239d1404e58445639ad7f11be67f821f1e9
C/C++
20,084
644
typedef CwiseUnaryOp<internal::scalar_abs_op<Scalar>, const Derived> AbsReturnType; typedef CwiseUnaryOp<internal::scalar_arg_op<Scalar>, const Derived> ArgReturnType; typedef CwiseUnaryOp<internal::scalar_abs2_op<Scalar>, const Derived> Abs2ReturnType; typedef CwiseUnaryOp<internal::scalar_sqrt_op<Scalar>, const Der...
b72b3edce0fa2049a1955321fcb6a0d5b0ad583a0dc96412b3bf014254826128
C/C++
20,112
517
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You c...
e5277a70d9af7f5c88d828957c69375f2480d5cf07d4cdf970522d4e856a6f75
C/C++
20,310
527
#pragma once #include <cutlass/gemm/threadblock/default_mma.h> #include <ATen/native/cuda/cutlass_extensions/gemm/threadblock/default_dq_mma_multistage.h> #include <ATen/native/cuda/cutlass_extensions/gemm/threadblock/default_dq_mma_pipelined.h> namespace cutlass { namespace gemm { namespace threadblock { //////////...
2efa3d5f7d003c19743b15155dad9f46d9f9fc783a18893d703b431d3c990972
C/C++
20,344
627
// [DEAR IMGUI] // This is a slightly modified version of stb_rect_pack.h 1.01. // Grep for [DEAR IMGUI] to find the changes. // // stb_rect_pack.h - v1.01 - public domain - rectangle packing // Sean Barrett 2014 // // Useful for e.g. packing rectangular textures into an atlas. // Does not do rotation. // // Before #i...
2068ad8b5683a6dec1976ef99ec93a01fc31a8a8ba4be2e446710b88293a78c6
C/C++
20,354
747
/*************************************************************************** * * 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...
0877d9e4d4cf4ea6e8426ba57404d2d7eddab7d3a67846f9557bf3d7aed4a2db
C/C++
20,374
622
#pragma once // DO NOT DEFINE STATIC DATA IN THIS HEADER! // See Note [Do not compile initializers with AVX] #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec128/vec128_float_neon.h> #include <ATen/cpu/vec/vec128/vec128_reduced_precision_common_neon.h> #include <ATen/cpu/vec/vec_base.h> #include <c10/ut...
d8d87f7ec80e9c4ee88085260284a24b8d76e994c291a3791cc728340cc69cd1
C/C++
20,500
489
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ob...
7b053c56b4ba76b0cfa5afdf9a934d7c3bf279f0133c3450e2498760086f3f19
C/C++
20,514
563
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2016 Konstantinos Margaritis <markos@freevec.org> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If ...
cc43cb353b384c578290102049ddff2517f8f687d69f64d96455f60e5d27174d
C/C++
20,545
604
// Header file for the stimfit namespace // General-purpose routines // last revision: 08-08-2006 // C. Schmidt-Hieber, christsc@gmx.de // 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...
0467acc863f57d18b093d0029802bd01f4ead34486bf4d8e8785a0468a804f04
C/C++
20,682
546
/* * 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. */ #pragma once #include <assert.h> #include <math.h> #include <stddef.h> #include <stdint.h> #include...
b57b79af15bc856fc9305287c661b6beec6891674e9cd37cbbd06c390d02f31f
C/C++
20,695
833
#ifndef __LIBGRAVIS_T_MATRIX_H__ #define __LIBGRAVIS_T_MATRIX_H__ /****************************************************************************** ** Title: matrix.h ** Description: Templated fixed size dense matrices, which are a ** complement to the fixed size t{2,3,4}{Vector,Matrix} classes. ** ** A...
7bfaf44c31b354024e54a67ed0396ff1fa8cad6816eb43b359b7ca7fc6e486b7
C/C++
20,841
378
#pragma once #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec_base.h> #include <c10/macros/Macros.h> #include <c10/util/irange.h> namespace at::vec { // Note [CPU_CAPABILITY namespace] // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // This header, and all of its subheaders, will be compiled ...
3e65e7637cb152a576b8d55eb36f3fcb7cb557cc4b9e33effb16ecd50145ac09
C/C++
20,970
759
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2018 Wave Computing, Inc. // Written by: // Chris Larsen // Alexey Frunze (afrunze@wavecomp.com) // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the ...
286eaec034562aaf4eac8a6fb6da1a0d7f2e35fdf7a15fd2ad664b706d720c54
C/C++
21,030
633
#pragma once #include <ATen/core/ivalue_to.h> #include <c10/util/ArrayRef.h> #include <c10/util/Exception.h> #include <functional> #include <initializer_list> #include <iterator> #include <type_traits> /* * [Note: IListRef] * Wrapper around different API containers (e.g. boxed and unboxed). * * What is it? * ==...
c9890710e829d20c0dd59e49b728bce41f6376b1f08c017a52c8664351c06fc1
C/C++
21,057
654
/* * 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. */ #pragma once #include <algorithm> #include <cassert> #include <cmath> #include <cstddef> #include <c...
dda8689a9e864faec297edd4c12d1f4c7e9acb05077c33c0601ecdf33161b5ff
C/C++
21,083
613
/* * 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. */ #pragma once #include <algorithm> #include <cmath> #include <cstddef> #include <cstdlib> #include <f...
8768d8e6939baabb02d0035814d267e49b8241cb93be5e466a604e73f5b4c68c
C/C++
21,496
550
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2015 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2007-2009 Benoit Jacob <jacob.benoit.1@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0...
76c059a9e2819aaa0777ebcbccb77fa82c71af0d867cc5dcfadc651771f62974
C/C++
21,552
615
#pragma once // DO NOT DEFINE STATIC DATA IN THIS HEADER! // See Note [Do not compile initializers with AVX] #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec_base.h> #include <c10/util/complex.h> #include <c10/util/irange.h> #include <torch/headeronly/util/Exception.h> #if defined(CPU_CAPABILITY_AVX2) ...
fb4eb03d8cd287ddc2298112f23bc39142a92a1aa327bc2cb05946e4c69d86ef
C/C++
21,690
679
#pragma once #include <ATen/cpu/vec/intrinsics.h> #include <ATen/cpu/vec/vec256/vsx/vsx_helpers.h> #include <ATen/cpu/vec/vec_base.h> #include <c10/util/complex.h> #include <c10/util/irange.h> namespace at { namespace vec { // See Note [CPU_CAPABILITY namespace] inline namespace CPU_CAPABILITY { using ComplexDbl = c10...