sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
b12f51c824885de53b49c0e3b6e6efb984d2bcf539aecf7f6bb03275e0b951f7 | C/C++ | 11,669 | 309 | /*************************************************************************//*!
* Title: tImageNormalization.h
* Description: Implements image normalization
*
* Author: Brian Schroeder, 2006
* Computer Science Department, University Basel (CH)
*************************************************... |
f79fdaf87a8baa27d5812fcc3ad2f5b72a11d5b794400647917469730220dd73 | C/C++ | 11,804 | 407 | #ifndef BP_GPU_KERNELS_H_
#define BP_GPU_KERNELS_H_
#include <cassert>
#include <sycl/sycl.hpp>
#include "src/acc/acc_projector.h"
#include "src/acc/acc_backprojector.h"
#include "src/acc/sycl/sycl_settings.h"
#include "src/acc/sycl/sycl_kernels/helper.h"
#include "src/acc/sycl/sycl_kernels/helper_gpu.h"
namespace s... |
3fec0e49376fad6f935b7189eb29d5d9efb0953bc0a3881b72f728a6d5d42baa | C/C++ | 11,836 | 442 | #include "src/acc/acc_projector_plan.h"
#include "src/acc/utilities.h"
#include "src/time.h"
#ifdef _SYCL_ENABLED
#include "src/acc/sycl/sycl_virtual_dev.h"
using deviceStream_t = virtualSYCL*;
#endif
//#define PP_TIMING
#ifdef PP_TIMING
Timer timer;
int TIMING_TOP = timer.setNew("setup");
int TIMING_SAMPLING = ... |
aca1b3bfaddcd2bd328b2bb9d26bda5b80acfa2e00fc8837c6c86eb2dbcbc7c1 | C/C++ | 11,866 | 289 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Mehdi Goli Codeplay Software Ltd.
// Ralph Potter Codeplay Software Ltd.
// Luke Iwanski Codeplay Software Ltd.
// Contact: <eigen@codeplay.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Publi... |
df7c4a8bfd28a16dd98d47de592facc9c438254072d7b9d942c61668c3c991f4 | C/C++ | 11,895 | 382 | #pragma once
#include <ATen/BlasBackend.h>
#include <ATen/cuda/CUDABlas.h>
#include <ATen/cuda/CUDAContextLight.h>
#include <ATen/cuda/Exceptions.h>
#include <c10/core/ScalarType.h>
#include <c10/util/complex.h>
#include <algorithm>
#include <cstdint>
#include <memory>
#include <type_traits>
namespace at::cuda::blas... |
af65cce97c882ca5cbaa0987155bbc8d7aaf3a9fd9bfcb4b7d2f0e9a7e636e78 | C/C++ | 11,918 | 347 | #ifndef NUMPY_CORE_INCLUDE_NUMPY_UFUNCOBJECT_H_
#define NUMPY_CORE_INCLUDE_NUMPY_UFUNCOBJECT_H_
#include <numpy/npy_math.h>
#include <numpy/npy_common.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* The legacy generic inner loop for a standard element-wise or
* generalized ufunc.
*/
typedef void (*PyUFuncGenericFu... |
f404ce1fb02b4cf1ce396f957eb414fc4cf3b9c272af7d66d4f64bb00de13c8b | C/C++ | 11,923 | 400 | #pragma once
#include <ATen/cpu/vec/intrinsics.h>
#include <ATen/cpu/vec/vec512/vec512_bfloat16.h>
#include <ATen/cpu/vec/vec_base.h>
#include <ATen/cpu/vec/vec_convert.h>
namespace at::vec {
inline namespace CPU_CAPABILITY {
#if defined(CPU_CAPABILITY_AVX512) && !defined(_MSC_VER)
template <>
struct VecConvert<flo... |
9d69a8169ad0a5c6a68082c291ffd60e6b10d21814d299b73a007821b36ea1bf | C/C++ | 11,987 | 293 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2017 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... |
ca3129b1e46acba833e9833f464979bd3cb819b32278193f3b607b4dbd799c08 | C/C++ | 12,024 | 410 | #pragma once
#include <ATen/Tensor.h>
#include <ATen/native/quantized/PackedParams.h>
#include <ATen/native/quantized/cpu/EmbeddingPackedParams.h>
#include <c10/core/QScheme.h>
#include <c10/util/irange.h>
#ifdef USE_FBGEMM
C10_DIAGNOSTIC_PUSH_AND_IGNORED_IF_DEFINED("-Wextra-semi")
#include <fbgemm/Fbgemm.h>
C10_DIAG... |
327ca45a6721c92d3995eaff67284522bff48fa73421c9dd122dd7de7d195839 | C/C++ | 12,057 | 304 | /*
* DON'T INCLUDE THIS DIRECTLY.
*/
#ifndef NUMPY_CORE_INCLUDE_NUMPY_NDARRAYOBJECT_H_
#define NUMPY_CORE_INCLUDE_NUMPY_NDARRAYOBJECT_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <Python.h>
#include "ndarraytypes.h"
#include "dtype_api.h"
/* Includes the "function" C-API -- these are all stored in a
list ... |
eed53af387a0adefc191d92bf221089d65bf0cfdc6272c97f035c57df0bb968b | C/C++ | 12,057 | 372 | /***************************************************************************
*
* 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... |
2c15837bc78429a2a8e9efbe28198c827bdd9a205dbda760582a1d9aee6ba45f | C/C++ | 12,058 | 528 | #ifndef __LIBGRAVIS_T3VECTOR_H__
#define __LIBGRAVIS_T3VECTOR_H__
/******************************************************************************
** Title: t3Vector.h
** Description:
**
******************************************************************************/
#include <iostream>
#include <iomanip>
#inclu... |
ad15656adbffa6f98ae8c431011a37ad29597f4afe7b05eba060d13b8d67d64b | C/C++ | 12,070 | 310 | #pragma once
#include <ATen/native/cpu/Loops.h>
#include <ATen/Parallel.h>
#include <c10/util/TypeList.h>
#include <c10/core/Scalar.h>
#include <c10/util/irange.h>
#include <type_traits>
namespace at::native { inline namespace CPU_CAPABILITY {
using namespace vec;
#define VEC_LOOP_HEADER(func_t, data) \
using sc... |
7e4f56dd4c5276ddaace9d513812d69817c0416ad442720d1457e9257fd97d1e | C/C++ | 12,170 | 496 | /***************************************************************************
*
* 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... |
49761b8cd9dae7790ff274894f66dee8c1c3aeec5090608245d3fab8f59211e3 | C/C++ | 12,219 | 473 | //***********************************************************************************************
//
// Copyright (c) 1993-2005 Molecular Devices.
// All rights reserved.
// Permission is granted to freely to use, modify and copy the code in this file.
//
//***********************************************... |
8bff396f8ff9e4aefab47b75ad75f087554296613ae36f36bc3f632d8b9cd65e | C/C++ | 12,298 | 390 | #pragma once
#include <ATen/cpu/vec/intrinsics.h>
#include <ATen/cpu/vec/vec_base.h>
#include <ATen/cpu/vec/vec_mask.h>
namespace at::vec {
inline namespace CPU_CAPABILITY {
#if defined(CPU_CAPABILITY_AVX512) && !defined(_MSC_VER)
template <typename T, int dst_n, typename mask_t, int mask_n>
struct VecMaskLoad<
... |
0a26c1e80492b8931bade048cd962f9ba7a5fdde11e3c17738f6e457f9d343ba | C/C++ | 12,381 | 316 | /***************************************************************************
*
* 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... |
78926f0b61d25943801ebbcad74d3a0144dc4f93d29afc381f9005168e38942b | C/C++ | 12,392 | 206 | /******************************************************************************
** Title: matlab.h
** Description: Read and write tArrays to/from matlab files.
**
** Author: Brian Amberg, 2007
** Computer Science Department, University Basel (CH)
**
** Linking:
** When using these f... |
1963e1f2fd77b2c2493dcb586771945ff00e5444d3e15a8cbaab920441ba6880 | C/C++ | 12,432 | 392 | #include "src/acc/acc_projector.h"
#include <signal.h>
bool AccProjector::setMdlDim(
#ifdef _SYCL_ENABLED
deviceStream_t dev,
#endif
int xdim, int ydim, int zdim,
int inity, int initz,
int maxr, XFLOAT paddingFactor)
{
if(zdim == 1) zdim = 0;
if (xdim == mdlX &&
ydim == mdlY &&
zdim == mdlZ &&
inity ... |
c87c803f7136526548e7019f5515f1e715d7b151470ca21ef9ddfc97ae4a82bc | C/C++ | 12,495 | 456 | #pragma once
#include <ATen/core/Tensor.h>
#include <c10/core/Scalar.h>
#include <ATen/native/mkldnn/xpu/detail/LRUCache.h>
#include <ATen/native/mkldnn/xpu/detail/Utils.h>
#include <ATen/native/mkldnn/xpu/detail/oneDNNContext.h>
#include <oneapi/dnnl/dnnl.hpp>
#include <oneapi/dnnl/dnnl_sycl.hpp>
namespace std {
... |
15ca3d32f860ba7ceb1d37188d74d3793b22f45a91bca89393e86d274d79e2d6 | C/C++ | 12,512 | 429 | /*
* 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... |
e1dea84f212d39254d27bb379719d56c0782d1de08e95ba844d61a3a0ab649c9 | C/C++ | 12,582 | 294 | /*
* Copyright (C) 1996-2011,2013,2014,2016,2018,2020,2022,2024,2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
#ifndef BF_H
#define BF_H
#include "mfx_file.h"
#include "transform.h"
#include "array.h"
#include "growing_buf.h"
/*{{{}}}*/
/*{{{ TRUE, FALSE*/
#ifn... |
24eec43783bba326fd81396db1b744c207f65ce7f2fcddcb9a5e9a2e7573fa8c | C/C++ | 12,656 | 412 | /***************************************************************************
*
* 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... |
510a97f8181165f121f667a72fd39e3064b632fda5bb14c065eb13a831eccc60 | C/C++ | 12,678 | 391 | /*
* 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... |
5eab93311b0fb2b184b071728232a30b620a0962d1e2e2a6386d37127352e9ba | C/C++ | 12,684 | 413 | #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>
#if !( \
defined(__VSX__) || defined(CPU_CAPABILITY_VSX) || \
defined(CPU_CAPABI... |
c8c5d3247383d9629ce26c388cf8dc385df058a33a779148c0bc7b7d74c5ba84 | C/C++ | 12,685 | 331 | #pragma once
#include <ATen/TensorUtils.h>
#include <ATen/core/Tensor.h>
#include <c10/util/irange.h>
// Shape checks shared by the pooling operator family: max/avg pooling, max
// unpooling, adaptive pooling and fractional max pooling. Keeping them here
// lets the CPU, CUDA and MPS implementations of an op report i... |
ae3f60c2fe1b6c6a697082ccc731cfff38bd05706c741458c49ec62a3ec7d1b3 | C/C++ | 12,691 | 318 | #pragma once
/*
Provides a subset of cuSPARSE functions as templates:
csrgeam2<scalar_t>(...)
where scalar_t is double, float, c10::complex<double> or c10::complex<float>.
The functions are available in at::cuda::sparse namespace.
*/
#include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/CUDASparse.h>
//... |
ee5d1006086fd38136a170c90ef3a7cc78b0fa910d9dd1a6d7b8f4e59e3563ff | C/C++ | 12,734 | 380 | #pragma once
#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/order_preserving_flat_hash_map.h>
#include <optional>
#include <ATen/core/TensorBody.h>
#include <ATen/core/jit_type_base.h>
... |
ea9025eace17289caa36d58e8d95a62e01d8421d427d092ff2f6f60ece0754a4 | C/C++ | 12,820 | 510 | #ifndef RESAMPLING_H
#define RESAMPLING_H
#include "raw_image.h"
#include "stack_helper.h"
#include "interpolation.h"
#include "cutting.h"
#include "filter.h"
#include <src/jaz/math/fft.h>
class Resampling
{
public:
template <typename T>
static BufferedImage<T> upsampleLinear_2D_half(
const RawImage<T>& i... |
acb2f6de9059869cc3c82d9f2441f9d5cef07b19bf30aedd98ed5e7ef51199bd | C/C++ | 12,901 | 410 | #pragma once
#include <ATen/cpu/vec/functional.h>
#include <ATen/cpu/vec/intrinsics.h>
#include <ATen/cpu/vec/vec_base.h>
#include <ATen/cpu/vec/vec_convert.h>
namespace at::vec {
inline namespace CPU_CAPABILITY {
#if defined(CPU_CAPABILITY_AVX2) && !defined(_MSC_VER)
template <>
struct VecConvert<float, 1, BFloat1... |
1166961b07379eaf3060793addc45b9e29472bcb4b4a4f4830c87794f9e53b5b | C/C++ | 12,902 | 662 | /* Portions of this code are under:
Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved.
*/
#ifndef HIP_CUSTOM_ALLOCATOR_H_
#define HIP_CUSTOM_ALLOCATOR_H_
// This is where custom allocator should be. Commented out for now, to avoid double declaration.
#ifdef _HIP_ENABLED
#include "src/acc/hip/hip_s... |
eaed59b6bb474d10a2d540dc0ac786e8e3dbd5004af523470538a303b25e14ac | C/C++ | 12,987 | 455 | /*
* autopicker.h
*
* Created on: Sep 18, 2013
* Author: "Sjors H.W. Scheres"
*/
#ifndef AUTOPICKER_H_
#define AUTOPICKER_H_
#include <stdlib.h>
#include "src/image.h"
#include "src/multidim_array.h"
#include "src/metadata_table.h"
#include "src/projector.h"
#include "src/healpix_sampling.h"
#include "src/p... |
a5923643a4d068e6ae5099a4afb6b0b3ce9d2db4ed96b0e270fe7e5f4f0dcaf0 | C/C++ | 13,055 | 456 | /*
* 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 <pthreadpool.h>
... |
6c576ea7085d5b1736f6482275d5fa051ab012af47afee737ddb517a6d0c9291 | C/C++ | 13,060 | 286 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2012 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... |
8230642bedee4fd743e0e9249fef1a1ebd1db60186c631ff287aaed2433400b8 | C/C++ | 13,088 | 418 | #pragma once
#include <ATen/core/Tensor.h>
#include <ATen/core/List.h>
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
#include <ATen/native/quantized/cpu/QnnpackUtils.h>
#include <ATen/native/quantized/cpu/OnednnUtils.h>
#include <c10/util/irange.h>
#if !defined(__s390x__) && !defined(__powerpc__)
#include <cpuin... |
d07982d9f6e6f982a762677a3c25ef81ffc0ed731dfc3e1f378bb25bbc97eb13 | C/C++ | 13,091 | 368 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2010-2011 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... |
2b001c5f5ca4005ccbe4de527ede63a989cead271ec6e9b1a18197f91877ff94 | C/C++ | 13,123 | 336 | #pragma once
#include <ATen/core/boxing/KernelFunction.h>
#include <ATen/core/dispatch/DispatchKeyExtractor.h>
#include <ATen/core/function_schema.h>
#include <ATen/core/ivalue.h>
#include <c10/core/DispatchKey.h>
#include <c10/core/PyHandleCache.h>
#include <c10/core/SafePyObject.h>
#include <c10/util/Metaprogramming... |
ab5448a3ce29cb943507683ce4825e5280e7b7b6c0e19a3fc5cedc405bb47d29 | C/C++ | 13,150 | 337 | #pragma once
#include <ATen/OpMathType.h>
#include <ATen/Parallel.h>
#include <ATen/cpu/vec/functional.h>
#include <ATen/cpu/vec/vec.h>
#include <c10/util/irange.h>
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <limits>
#include <memory>
#include <type_traits>
namespace at::native {
inline namesp... |
b5ac99b8309ebaa9b782016f5b126ea00473e686f3e9269ab3d2fb25c28efde4 | C/C++ | 13,166 | 340 |
#ifdef _UMATHMODULE
extern NPY_NO_EXPORT PyTypeObject PyUFunc_Type;
extern NPY_NO_EXPORT PyTypeObject PyUFunc_Type;
NPY_NO_EXPORT PyObject * PyUFunc_FromFuncAndData \
(PyUFuncGenericFunction *, void *const *, const char *, int, int, int, int, const char *, const char *, int);
NPY_NO_EXPORT int PyUFunc_Regi... |
09e50009ad3442b40a93c7d6e19fa9de1f1a81ae05f64e308790e99172d6a8fb | C/C++ | 13,178 | 313 | /***************************************************************************************************
* 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... |
e504e730de3fd26b60a1650c2300e59df86e6f5fe6f2ff0a0c2e62f8a601d712 | C/C++ | 13,178 | 352 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2015 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... |
c0642435bb4729c3d230afa709a724d2298274e723b5de5d0b82632ff623fd00 | C/C++ | 13,248 | 399 | /***************************************************************************
*
* 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... |
6642a4f4fe5fa0aadc2d30dd389f68821102c5a609b391420409bb03a651c84f | C/C++ | 13,269 | 505 | /***************************************************************************
*
* Author: "Dari Kimanius"
* 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 Founda... |
88c12665bd207c6f5a3dad299b587ef73b774c6b22e615d0a3375466bf821903 | C/C++ | 13,299 | 522 | #ifndef DIFFUSION_H
#define DIFFUSION_H
#include <src/jaz/image/buffered_image.h>
#include <src/jaz/gravis/t3Vector.h>
#include <src/jaz/image/structure_tensor.h>
#include <src/jaz/util/zio.h>
#include <omp.h>
class Diffusion
{
public:
/* Diffuses image data along the diffusion tensor D. */
template <typename... |
4310dafda565c06046649331168e4852e7c858cf7b9b17c2839262165bcd56d5 | C/C++ | 13,304 | 238 | #pragma once
#include <cublas_v2.h>
#include <cusparse.h>
#include <c10/macros/Export.h>
#if !defined(USE_ROCM)
#include <cusolver_common.h>
#else
#include <hipsolver/hipsolver.h>
#endif
#if defined(USE_CUDSS)
#include <cudss.h>
#endif
#include <ATen/Context.h>
#include <c10/util/Exception.h>
#include <c10/cuda/CUD... |
7029de76be7bd96aba91b8c3f58175e108997dafff1471b7338980c01ebe90cb | C/C++ | 13,330 | 353 | #pragma once
#include <c10/macros/Macros.h>
#include <ATen/core/aten_interned_strings.h>
#include <ATen/core/symbol.h>
namespace c10 {
#define FORALL_NS_SYMBOLS(_) \
_(namespaces, prim) \
_(namespaces, prims) \
_(namespaces, nvprims) \
_(namespaces, aten) ... |
0fec127e0136df938b2b1375d1d651e9f010f33bc191230d7638e1f4d0ae62e3 | C/C++ | 13,349 | 444 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2011-2014 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... |
c7905db12ce6a518d2730cec6831aa34cd7d2aa7b0a0b52767749590da0e1bae | C/C++ | 13,380 | 405 | #pragma once
// This file contains boxing (not unboxing) logic,
// i.e. how to make a vector<IValue> from a set of concrete arguments.
#include <ATen/core/ivalue.h>
#include <ATen/core/stack.h>
#include <c10/core/TensorOptions.h>
#include <ATen/core/boxing/BoxedKernel.h>
#include <c10/util/Metaprogramming.h>
#inclu... |
a47f98b749c53ae192a3d50e329a2e9624d5fe32df42df692128f17a2373feab | C/C++ | 13,429 | 319 | // Copyright 2005, 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 ... |
8325f7dbe89e55352cd839eb078d22fcdc0b8e5213c6363284d62645711cd4a0 | C/C++ | 13,451 | 369 | // 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... |
ebf3121cd27bf83c6254de1fe388f56374aa1155fe0780b18c70f0bb2c7069d9 | C/C++ | 13,505 | 324 | //******************************************************************************
//
// Copyright (c) 1993-1997 Axon Instruments.
// All rights reserved.
//
//******************************************************************************
// HEADER: AXODEBUG.H
// PURPOSE: Contains utility macros and defines... |
c64250b0b9708a1e026278eca2de4a7fb254e788b6603b9fc7fd3df66b04f3e5 | C/C++ | 13,556 | 407 | #pragma once
#include <ATen/cpu/vec/vec_base.h>
#include <array>
namespace at::vec {
inline namespace CPU_CAPABILITY {
/**
* @brief A class template representing a vectorized type with
* `N * Vectorized<T>::size()` elements, aiming to support vectors of
* arbitrary size. A specific use case of it is to represent ... |
a9744011dcc6e513e3d588a2ae4bfe49307b7092274f9917e15f01f6b52defc3 | C/C++ | 13,627 | 372 | /******************************************************************************
** Title: gravis/io/mesh/obj.h
** Description: Implements reader/writer for the .obj mesh file format
**
** Author: Brian Amberg
** Computer Science Department, University Basel (CH. **
********************... |
36ed2f76a3bef47ddb17e8e4d71079f1653f101285264fe675f2ba4e92f43325 | C/C++ | 13,628 | 417 | #pragma once
#include <ATen/cpu/vec/intrinsics.h>
#include <ATen/cpu/vec/vec256/vsx/vsx_helpers.h>
#include <ATen/cpu/vec/vec_base.h>
namespace at {
namespace vec {
// See Note [CPU_CAPABILITY namespace]
inline namespace CPU_CAPABILITY {
template <>
struct is_vec_specialized_for<int16_t> : std::bool_constant<true> {}... |
7f6f27280d4f937919f9cb5e51945d675d5f22a26ee7f0a985f40c5686fe7605 | C/C++ | 13,662 | 338 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2001 Intel Corporation
// Copyright (C) 2010 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// This Source Code Form is subject to the terms of the Mo... |
2714ca6ea7d6894d9b57dabd4f89c8151779aed53fb3d39b5b7d5d89d8a6def5 | C/C++ | 13,675 | 281 | //***********************************************************************************************
//
// Copyright (c) 1993-2003 Axon Instruments.
// All rights reserved.
// Permission is granted to freely to use, modify and copy the code in this file.
//
//************************************************... |
00c190c3d7a1fb724e95231f7a53cffcc6a5dcf503348eb9149a6695169409fb | C/C++ | 13,811 | 389 | #include <ATen/core/boxing/impl/WrapFunctionIntoFunctor.h>
#include <ATen/core/boxing/impl/WrapFunctionIntoRuntimeFunctor.h>
#include <ATen/core/boxing/impl/boxing.h>
#include <ATen/core/boxing/impl/make_boxed_from_unboxed_functor.h>
#include <type_traits>
namespace c10 {
namespace detail {
template <typename Base, ... |
4dcd17a1df496a2efa323a6da8b30158fc072df0f9b506fcdc92da865f6d65b0 | C/C++ | 13,890 | 454 | /***************************************************************************
*
* 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... |
cc73c09cc2d4d396586f9a63d87bc5a32dfad29dab980c52978a106b6f51fb69 | C/C++ | 14,008 | 475 | #ifndef __UTILITIES_H__
#define __UTILITIES_H__
#include <cmath>
#include <cassert>
#include <limits>
#include <algorithm>
template<typename Size, typename OutType, typename InType>
void copy(Size n, OutType* out, const InType* in, const OutType scale = 1, const OutType shift = 0)
{
for (Size i = 0; ... |
ccb1305af04d23b378463b807c66b1b0b079b50863b9713d9002639a2770170e | C/C++ | 14,026 | 358 |
/** \returns an expression of the coefficient wise product of \c *this and \a other
*
* \sa MatrixBase::cwiseProduct
*/
template<typename OtherDerived>
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE const EIGEN_CWISE_BINARY_RETURN_TYPE(Derived,OtherDerived,product)
operator*(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDe... |
086a6a5c4bba0506dfbf5c04bd86b619b3688b739a2296096acf7ee031ea68ae | C/C++ | 14,108 | 441 | #pragma once
#include <memory>
#include <ATen/core/ivalue.h>
#include <ATen/core/jit_type_base.h>
#include <optional>
namespace torch::jit {
struct CompilationUnit;
struct Function;
} // namespace torch::jit
namespace c10 {
struct FunctionSchema;
// This enumerator represents the 'kind' of an attribute - a buff... |
321e9543eb9e542885ef9a1cd05519c736fa9900ac2b8b9770aa7d6cdd794e5d | C/C++ | 14,149 | 579 | /***************************************************************************
*
* Author: "Shaoda He"
* MRC Laboratory of Molecular Biology
*
* Kent Thurber from the NIH provided code for rot-angle priors (indicated with // KThurber comments)
*
* This program is free software; you can redistribute it and/or modif... |
8cade156a03cb455df2c9d5932327777a257ea272cc32b98a57ffc6addee1bb7 | C/C++ | 14,150 | 383 | /*
* 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 <cassert>
#include <cstdint>
#include <memory>
#include <vector>
#ifndef _WIN3... |
96f2dda232e9ced6a86fb28f161b9e946474ae66d9e12b869adef6e69a167483 | C/C++ | 14,198 | 394 | // 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,
... |
8faf5b7ebc9222d367cfe0a3225fad0bc5a9ae977b19b18a22aa8c684cae4d62 | C/C++ | 14,266 | 354 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009-2010 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2014 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Copyright (C) 2013 Gauthier Brun <brun.gauthier@gmail.com>
// Copyright (C) 2013 Nicolas C... |
35b5e91cfd29016e5b5a33ba4393065ca0e0b71f12a516e876d4e980218b5736 | C/C++ | 14,339 | 374 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2010 Jitse Niesen <jitse@maths.leeds.ac.uk>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a... |
a11439570ace958d1f03addd5a3775a08d48be3c249674af34775b96898432e0 | C/C++ | 14,364 | 345 | #pragma once
#ifdef USE_XNNPACK
#include <cstdint>
#include <ATen/core/Tensor.h>
#include <ATen/native/xnnpack/Common.h>
using xnnpack_operator = at::native::xnnpack::Operator;
namespace at::native::xnnp_utils {
/*
* Return shape in the same order as the memory format
* e.g. channels_last will return NHWC instea... |
031ba99d36d8ff209b50571cef060bd2f853cb08ef3b9492400f60ae72969f29 | C/C++ | 14,479 | 470 | /*
* 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 <cstddef>
#include <cstdlib>
#include <algorithm>
#include <cfloat>
#include ... |
13c3fb0638404d5b55b008ab40ec0d4a41189f57dc0e879892f58addb700dc6b | C/C++ | 14,612 | 335 | // 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... |
438775910726997d260a095a7ebfcb5f90f79e2400094406eb5c334097b6f203 | C/C++ | 14,650 | 447 | /******************************************************************************
** Title: gravis/io/mesh/msh.h
** Description: Implements reader/writer for the .msh mesh file format
**
** Author: Brian Amberg
** Computer Science Department, University Basel (CH)
**
**************************... |
7f27c60b164d77c86df12c304960275cd3dc3bdc0a14f86717095685d072f6df | C/C++ | 14,713 | 361 | #pragma once
#include <ATen/functorch/Macros.h>
#include <ATen/core/dispatch/Dispatcher.h>
#include <c10/core/impl/LocalDispatchKeySet.h>
#include <c10/util/Exception.h>
#include <optional>
#include <bitset>
#include <utility>
#include <variant>
#include <nlohmann/json.hpp>
namespace at::functorch {
// NOTE: [funct... |
9ad1c0ca50259d81dd49009796d25ac0e3644e2125474d26c164d41fa4039ea5 | C/C++ | 14,819 | 392 | #pragma once
#include <ATen/Device.h>
#include <ATen/Dispatch.h>
#include <ATen/ScalarType.h>
#include <ATen/core/Tensor.h>
#include <ATen/native/utils/ParamsHash.h>
#include <c10/util/Exception.h>
#include <c10/util/MakeNested.h>
#include <c10/util/irange.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/NativeFunct... |
85298155c7d7096198d4887ca33e4367f3e56db1d5d11e9668d9671ee0bd5a49 | C/C++ | 14,837 | 331 | // 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... |
ca5ac376b0d0c8a051726fe75da248772b3252484879c07572a1632175966d26 | C/C++ | 14,840 | 392 | // 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... |
dc636f9bd678f5c06815694223483d742a486381ec05cad3dea035e563973913 | C/C++ | 14,866 | 447 | /*
* 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... |
ad58a150346a8dd1212c254993605f2db01639959d0341d689900cfed2633ce3 | C/C++ | 14,873 | 365 | // 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... |
e3e64e824eb4eb9c046c9ad34a445f8ea93552506eec292b1c68b1386c818c44 | C/C++ | 14,962 | 453 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2012 Désiré Nuentsa-Wakam <desire.nuentsa_wakam@inria.fr>
// Copyright (C) 2014 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. ... |
e8ef79f54cd1062a045a5362d3058d5ce77a2848d994712547d52c2fcde6996c | C/C++ | 15,048 | 394 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2012 Désiré Nuentsa-Wakam <desire.nuentsa_wakam@inria.fr>
// Copyright (C) 2015 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. ... |
78e8f41925b282a0638e1afee6f560988222864797e3ed30979eba1e01fc9163 | C/C++ | 15,074 | 553 | #ifndef __LIBGRAVIS_T3MATRIX_H__
#define __LIBGRAVIS_T3MATRIX_H__
/******************************************************************************
** Title: t3Matrix.h
** Description: Represents a 3x3 matrix with column-major memory layout.
**
** Author: Michael Keller, 2005
** Computer ... |
a3cd5c9e104764f3aff607d74d8a9648dfccfb5e6df9239ea3b34c098649265c | C/C++ | 15,081 | 410 | #pragma once
#include <string>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/Exceptions.h>
#include <ATen/cudnn/cudnn-wrapper.h>
#include <ATen/cudnn/Utils.h>
#include <ATen/core/Tensor.h>
#include <ATen/TensorUtils.h>
#include <ATen/cuda/ATenCUDAGeneral.h>
#include <cuda.h>
#ifndef AT_PER_OPERATOR_HEADERS... |
6f437c5bcebff66242ff65c66eca81ffd61b3885f3eb5519bc36146d1d0513e2 | C/C++ | 15,102 | 417 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2010 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2014 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If ... |
5143adcc119c9332bc99a10226ac7118921bc2a6aab5105efc7d7c4094a36af9 | C/C++ | 15,144 | 473 | /***************************************************************************
*
* 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... |
3b83beefeaec46bffe40fc738870b310a86517ff436a157e4c7e5dcd5194ad65 | C/C++ | 15,145 | 358 | // Copyright 2006, 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 ... |
a1247ef64792483f47dd12f90745682404f1945963d3f1aa43274d0feab033e9 | C/C++ | 15,219 | 616 | /***************************************************************************
*
* 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... |
5e5a712f3932878b7cd1c4182116a6d5dd18f83718823ba7faad203a181cb364 | C/C++ | 15,232 | 576 | #ifndef SYCL_HELPER_KERNELS_H_
#define SYCL_HELPER_KERNELS_H_
#include <vector>
#include <iostream>
#include <fstream>
#include <cmath>
#include "src/macros.h"
#include "src/acc/sycl/sycl_settings.h"
#include "src/acc/sycl/sycl_kernels/sycl_utils.h"
#include "src/acc/acc_projector.h"
#include "src/acc/acc_projectorke... |
df0991677982377a4d930a6ba1b04535fd1dd215365487b27712411e4edfcdc9 | C/C++ | 15,341 | 405 | #ifndef AXOGRAPH_READEWRITE_H
#define AXOGRAPH_READEWRITE_H
/* ----------------------------------------------------------------------------------
AxoGraph_ReadWrite : functions for reading and writing AxoGraph data files.
See also : the example programs which uses these functions, Demo_AxoGraph_ReadWrite
an... |
0fc7ad906209db962e5c6811c04bee4eb41042ac2fc804292a1d7d7f89ce1640 | C/C++ | 15,347 | 415 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2009-2014 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0... |
8e76d40763645451957284d140d323604a6af68b89fdf917bf2383cca68c8667 | C/C++ | 15,375 | 321 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2007-2010 Benoit Jacob <jacob.benoit.1@gmail.com>
// 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... |
08291f276740fe29c874a3dea9c659a15a1f03c282e1ce0da8a8407ef9414c93 | C/C++ | 15,419 | 423 | #pragma once
#include <ATen/Tensor.h>
#include <c10/core/TensorImpl.h>
#include <c10/core/impl/TorchDispatchModeTLS.h>
#include <c10/util/Exception.h>
#include <c10/util/irange.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/Functions.h>
#else
#include <ATen/ops/empty.h>
#include <ATen/ops/resize.h>
#endif
namespa... |
c4684eae196b7ed4c25fe1506d7128f5d5013d03ebf339d77f4a1e47ec50574e | C/C++ | 15,424 | 513 | /*
* 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... |
a5699e1863ae276bd31dcaffb96be02173a12fa9661672c98cb39117c1110805 | C/C++ | 15,467 | 733 | #ifndef JAZ_RAW_IMAGE_H
#define JAZ_RAW_IMAGE_H
#include <vector>
#include <string>
#include <src/macros.h>
#include <src/jaz/gravis/tImage.h>
#include <src/jaz/gravis/t3Vector.h>
#include <src/image.h>
#include <src/jaz/single_particle/vtk_helper.h>
#include <stddef.h>
#define RAW_IMAGE_BOUNDS_CHECKING 0
template <... |
f6b40dea9f54a95be92d9211cd59cf7de5555fe44588013e59115402a6458a21 | C/C++ | 15,479 | 416 | // 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... |
94e5875c338b5ac9471587e2b82535e13d5beed8a6483c0f503d782d71000d8c | C/C++ | 15,485 | 475 | #pragma once
// DO NOT DEFINE STATIC DATA IN THIS HEADER!
// See Note [Do not compile initializers with AVX]
#include <ATen/cpu/vec/vec.h>
#include <c10/util/irange.h>
namespace at {
namespace detail {
// We prefer to convert through float for reduced-precision floating
// point types if we have a Vectorized special... |
62e6c758fe75184b5d2c26f549212c06c687c39610d0dc948c4f83271ad0330c | C/C++ | 15,516 | 411 | #pragma once
#include <ATen/CPUApplyUtils.h>
#include <ATen/Dispatch.h>
#include <ATen/Dispatch_v2.h>
#include <ATen/ExpandBase.h>
#include <ATen/OpMathType.h>
#include <ATen/core/DistributionsHelper.h>
#include <ATen/native/TensorIterator.h>
#include <ATen/native/cpu/Loops.h>
#include <mutex>
#ifdef CPU_CAPABILITY_A... |
603e6ccefa791ca2a7ca2ad550b6eed0ebadb8d7a449619ccd53e9b08c2c8d9a | C/C++ | 15,594 | 407 | /*
* Copyright (c) Meta Platforms, Inc. and 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.
*/
#undef __HIP_NO_HALF_CONVERSIONS__
#include <cstdlib>
#include <initializer_list>
#include <numeric>... |
2324f98042a194c9247a0f1df83ef99816d756d142523d33cb7cee536fcdb1a2 | C/C++ | 15,602 | 426 | #pragma once
#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>
#include <ATen/native/cuda/cutlass_extensions/gemm/threadblock/default_mma_bf16.h>
namespace cutlass {
namespace gemm {
na... |
81b329151b09b99165f4902f5061f5a756e258121c371ea43be77c77983ef6e3 | C/C++ | 15,606 | 454 | /*
* iaf_bw_2003.h
*
* This file is part of NEST.
*
* Copyright (C) 2004 The NEST Initiative
*
* NEST 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 ... |
81f464656ddafd0a2cdf591b8db6a5c082b0e036be33dd5035944180d845d414 | C/C++ | 15,663 | 538 | /***************************************************************************
*
* 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
* ... |
b66d7f4148f2035d5556d55af170ac2d9280eb9c6a5a6ecf3eea243dc22afbf4 | C/C++ | 15,707 | 461 | #pragma once
#include <ATen/Dispatch.h>
#include <ATen/Dispatch_v2.h>
#include <ATen/NestedTensorImpl.h>
#include <ATen/Parallel.h>
#include <ATen/core/Tensor.h>
#include <c10/core/DispatchKeySet.h>
#include <c10/core/TensorImpl.h>
#include <c10/macros/Macros.h>
#include <c10/util/Exception.h>
#ifndef AT_PER_OPERATOR... |
9262e9d03b17ff2faf7d0a386fe54f5478c1c1f4f483397dd578d38a8eafaee9 | C/C++ | 15,758 | 458 | /***************************************************************************
*
* Author: "Liyi Dong and 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 F... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.