sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
dc1eeaa396f636dfeca685215fdfaeca1af2fa99293ae33602af4ec36a4e22c2 | C/C++ | 38,095 | 1,059 | #pragma once
// See https://github.com/pytorch/pytorch/issues/161660
// This compile flag is intended to be passed in to CppExtensions that rely on
// the stable ABI via the `extra_compile_args` argument. This is a stopgap
// solution to ensure that non-stable libtorch APIs are not used in the extension.
// The long t... |
4f3d81c69031f5074f059038c5ceaee327e005289063b868a62bc8cd91bd5d0c | C/C++ | 38,109 | 1,001 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 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. If ... |
b360a2c1b5b8f99a02cce085e42d0c152c3f0849bcebb2969e9039cc573adf59 | C/C++ | 38,277 | 1,403 | /***************************************************************************
*
* 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... |
8adad9094fa222df60c41ff133e7d2d30968c2fe8f55dd63a461d9f5edad3c1d | C/C++ | 38,670 | 1,769 | #ifndef ACC_PTR_H_
#define ACC_PTR_H_
#include "src/acc/settings.h"
#ifdef _CUDA_ENABLED
#include "src/acc/cuda/cuda_settings.h"
#include <cuda_runtime.h>
#include "src/acc/cuda/custom_allocator.cuh"
#include "src/acc/cuda/cuda_mem_utils.h"
#include "src/acc/cuda/shortcuts.cuh"
#elif _HIP_ENABLED
#include "src/acc/hip... |
54b49aa9c54492a00575f2d0270e0615fee8ef9de8ee4a3589e58ac3e053f94a | C/C++ | 39,045 | 1,475 | //
// CPlot2D.h
//
// A simple class for plotting xy values and
// generating a PostScript output, aimed at
// easy integration into C/C++ programs.
//
// You are granted use of the code, but please
// be a nice guy and acknowledge where you got
// it from by giving credit!
//
// If you have any com... |
d5d2592268196a4feefea86b1abf877c83979363483a921fcd78508b1859c794 | C/C++ | 39,073 | 1,028 | #pragma once
#include <ATen/TensorMeta.h>
#include <ATen/core/Range.h>
#include <ATen/core/TensorBase.h>
#include <c10/core/DynamicCast.h>
#include <c10/util/FunctionRef.h>
#include <c10/util/MaybeOwned.h>
#include <c10/util/SmallVector.h>
#include <c10/util/TypeCast.h>
#include <c10/util/irange.h>
#include <array>
#... |
d383639c9fe727d2a3be34eade23279a048a02d4de57fdb7e7524e57b6372932 | C/C++ | 39,379 | 798 | #pragma once
#include <c10/core/ScalarType.h>
#include <c10/macros/Macros.h>
#include <c10/util/Exception.h>
#include <c10/util/Half.h>
#include <c10/util/Metaprogramming.h>
#include <c10/util/complex.h>
#include <torch/headeronly/core/Dispatch.h>
#ifdef __CUDACC__
#include <cuda.h> // For CUDA_VERSION
#endif
#ifdef... |
9b2f5419da4c9b74b7789bb6c4b495e1fc8b6328856fcecb3fe5a8cac58f365e | C/C++ | 39,778 | 1,676 | #ifndef ACC_UTILITIES_H_
#define ACC_UTILITIES_H_
#include "src/acc/acc_ptr.h"
#include "src/acc/data_types.h"
#include "src/error.h"
#ifdef _CUDA_ENABLED
#include "src/acc/cuda/cuda_kernels/helper.cuh"
#include "src/acc/cuda/cuda_kernels/wavg.cuh"
#include "src/acc/cuda/cuda_kernels/diff2.cuh"
#include "src/acc/cuda/... |
533316ce756c1fbddd391c56c5bb0a3db7fec9dc23a6f3b5430aa9474d6f556b | C/C++ | 40,205 | 956 | #pragma once
#include <ATen/ATen.h>
#include <ATen/NativeFunctions.h>
#include <ATen/Operators.h>
#include <torch/library.h>
#include <c10/core/impl/LocalDispatchKeySet.h>
#include <c10/util/intrusive_ptr.h>
namespace at::autocast {
TORCH_API bool is_autocast_enabled(at::DeviceType device_type);
TORCH_API void set_... |
45f6c50739d8488496899200f16486333cf4ccc49975e2c191018c10aa5982ea | C/C++ | 40,319 | 982 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2011 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2011-2014 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2011-2012 Jitse Niesen <jitse@maths.leeds.ac.uk>
//
// This Source Code Form is... |
f6f8abd3a11c8f91eefc2165053efdc09b024a37d9e47d2d9062e4d2af50dbd7 | C/C++ | 40,696 | 1,193 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// 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 a copy of the MPL was not distributed
// with this file, You can ... |
9f587c92d006cc64a34db692c7809ca9c69868ef7b6d913bd1bb379182796d76 | C/C++ | 41,827 | 1,169 | /*
* 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... |
d0a551b96791771f430432ba896f308d7463ba10f1b731e1a5d25e8aa799328f | C/C++ | 44,019 | 1,221 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2016 Konstantinos Margaritis <markos@freevec.org>
//
// 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... |
876b0debfe9a6810bb0f478ec06e9ae7717d80a4d846784331396d2c17fc5c98 | C/C++ | 44,145 | 1,158 | // 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 ... |
9f65b992b8fa9a8b1ab4bc9b7614d765470efc0a5460f6f5c81a405e5752f2d0 | C/C++ | 44,336 | 1,222 | #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_AVX512... |
35d856d6d0b7affb74fc392117d70b00794d97bcc4ddeeaf7fb07f152a2abad0 | C/C++ | 44,619 | 1,241 | /***************************************************************************
*
* 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... |
d237f4827433d42cd30c7dca3d0d4bb6038d4a3bccd9862d895da43dd8602e20 | C/C++ | 45,640 | 1,126 | // 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) 2008-2009 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2009 Kenneth Riddile <kfriddile@yahoo.com>
// Copyright (C) 2010 Hauke Hei... |
f0089ed065e7698fefb5a643698a63ea6f4917e58a1e4198021f0d3121592c0a | C/C++ | 45,794 | 1,090 | // 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... |
c0c979c1f2b02528307e700ad48b2813393199cf1f8193111bf04a51f61c3acd | C/C++ | 46,465 | 1,218 | // 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 ... |
a563197c003d78508dded6f1dc26811064ce19874b6fef4ef28e123bb42e1cd4 | C/C++ | 46,890 | 1,299 | // 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) 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... |
4cdaffc99cf23a3534a93f7bf438c228eb5d0d8f91e171b9f499a69ec94cbf61 | C/C++ | 48,280 | 1,537 | #ifndef __LIBGRAVIS_T_VAR_MATRIX_H__
#define __LIBGRAVIS_T_VAR_MATRIX_H__
/******************************************************************************
** Title: matrix.h
** Description: Templated variable size dense matrices, with a blas/lapack
** connector.
**
** Author: Brian Amberg, 2007
** Co... |
0dc2f7081f7004f3633310cfd45058e96e94d6a23c6bcd454ce47c54e042cdef | C/C++ | 48,323 | 991 | /***************************************************************************
*
* 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... |
c348770124b613117c1dc904248e6d424d96fe976f8e8ea34c0eb25d19b8060b | C/C++ | 48,524 | 1,117 | // 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) 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... |
fe31d31481bfa3a70cd2defad2bcb9fa8cde493c198ed108199ddbfcf20994a8 | C/C++ | 49,384 | 1,441 | #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 <ATen/native/quantized/AffineQuantizerBase.h>
#include <c10/util/irange.h>
#include <c10/util/qint32.h>
#include <c10/util/qint... |
4b953f05d2bd3a72c2be4be0e11d91e7de60ecdbcd3724600b44b63054b207d3 | C/C++ | 49,446 | 1,845 | /***************************************************************************
*
* 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
* ... |
24f38087d0cfa5d626e80b327b971e6ed9607848eb6c3e70ebe1a7f936bbd990 | C/C++ | 50,051 | 1,684 | /* SPDX-License-Identifier: BSD-2-Clause */
/*
* The SIP module interface.
*
* Copyright (c) 2025 Phil Thompson <phil@riverbankcomputing.com>
*/
#ifndef _SIP_H
#define _SIP_H
#include <Python.h>
/* Sanity check on the Python version. */
#if PY_VERSION_HEX < 0x03090000
#error "This version of PyQt5.sip require... |
374b10b7ce601cf67518b515c76fdb4ea15ed0edc592dd334535ecb606618d8f | C/C++ | 50,116 | 1,251 | // 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... |
c45a367eefc32c9bddf3372529da89b384cd8fdea42d5eb16eda116e10417589 | C/C++ | 50,139 | 1,552 | #pragma once
#if defined(__GNUC__) && __GNUC__ == 10 && __GNUC_MINOR__ <= 2 && \
defined(__ARM_FEATURE_SVE)
// Workaround for https: //gcc.gnu.org/bugzilla/show_bug.cgi?id=117161
#pragma GCC optimize("no-tree-vectorize")
#endif
// DO NOT DEFINE STATIC DATA IN THIS HEADER!
// See Note [Do not compile initializers w... |
6ce6b8849a82b0ef39e9bbe25e57255ef6821cf326f93b14d67e947e1e6f53a4 | C/C++ | 50,648 | 1,251 | //***********************************************************************************************
//
// Copyright (c) 1993-2004 Molecular Devices Corporation.
// All rights reserved.
// Permission is granted to freely use, modify and copy the code in this file.
//
//**************************************... |
1c119f921395ce574d199df21b49d72e0e76e0362f099b3c60994a7d463cf26b | C/C++ | 50,891 | 1,543 | #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 <ATen/native/quantized/AffineQuantizerBase.h>
#include <c10/util/irange.h>
#include <c10/util/qint32.h>
#include <c10/util/qint... |
f95467c79a1d8aa308bf771e84a6698023496cf09057ea82d4c833a4a9c2252f | C/C++ | 52,067 | 1,311 | // 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... |
e5a7def850c0e5e0776f97b73430fac6413b24a503ed8dbbe4f44ad15d95f68b | C/C++ | 52,274 | 1,143 | /*
* Copyright (C) 2006 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
b21dc27d78e481028006cd6bf31d00cd92b23436d3004a05ff3544690146d224 | C/C++ | 52,739 | 1,630 | #pragma once
#include <ATen/core/DimVector.h>
#include <ATen/core/TensorBody.h>
#include <ATen/core/blob.h>
#include <ATen/core/custom_class.h>
#include <ATen/core/ivalue_to.h>
#include <ATen/core/jit_type_base.h>
#include <ATen/core/type_factory.h>
#include <c10/core/SymBool.h>
#include <c10/core/SymFloat.h>
#include... |
7302c5d53cffad6265f39228dcf3843eb3855e34de4edf446076e28dbaf1c992 | C/C++ | 53,137 | 557 |
//File: index_ov2640.html.gz, Size: 4316
#define index_ov2640_html_gz_len 4316
const uint8_t index_ov2640_html_gz[] = {
0x1F, 0x8B, 0x08, 0x08, 0x50, 0x5C, 0xAE, 0x5C, 0x00, 0x03, 0x69, 0x6E, 0x64, 0x65, 0x78, 0x5F,
0x6F, 0x76, 0x32, 0x36, 0x34, 0x30, 0x2E, 0x68, 0x74, 0x6D, 0x6C, 0x00, 0xE5, 0x5D, 0x7B, 0x73,
0xD3... |
1d94d59cfa87605e068309502b1146b41fabed19fca00e7fe4107edf649dd6bb | C/C++ | 53,277 | 1,174 | // 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) 2008-2010 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2011 Jitse Niesen <jitse@maths.leeds.ac.uk>
//
// This Source Code Form is... |
eb42d9e1593e18e9cc602a96b59601bafa5770dc8e30a798a8c8dc2ef13f7a8b | C/C++ | 53,680 | 1,350 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// We used the "A Divide-And-Conquer Algorithm for the Bidiagonal SVD"
// research report written by Ming Gu and Stanley C.Eisenstat
// The code variable names correspond to the names they used in their
// report
//
// Copyrig... |
6cb9de88e714f42bdbdc25ba190f01e346a2b6eba727c2044acccc7e70966c70 | C/C++ | 55,207 | 1,441 | // [DEAR IMGUI]
// This is a slightly modified version of stb_textedit.h 1.14.
// Those changes would need to be pushed into nothings/stb:
// - Fix in stb_textedit_discard_redo (see https://github.com/nothings/stb/issues/321)
// - Fix in stb_textedit_find_charpos to handle last line (see https://github.com/ocornut/imgu... |
26234c3b20f8a667a316db9029aec27952cd8d267a28b2514b766d6c58ff739e | C/C++ | 55,321 | 1,882 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// 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 a copy of the MPL was not distributed
// with this file, You can ... |
2572d5450a70139d3c59817a581683508a7e060207695350ca345845515db840 | C/C++ | 56,699 | 1,508 | #pragma once
#include <c10/core/Allocator.h>
#include <c10/core/AllocatorConfig.h>
#include <c10/core/CachingDeviceAllocator.h>
#include <c10/core/RingBuffer.h>
#include <c10/core/Stream.h>
#include <c10/core/thread_pool.h>
#include <c10/util/ApproximateClock.h>
#include <c10/util/flat_hash_map.h>
#include <c10/util/l... |
bf1b492306371005ee620108dbe6859570a745db54c00f1e4fcfbc6d0d071980 | C/C++ | 57,177 | 1,512 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-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... |
c142a9240c826695435f22606fe2f31634fbf54042c3a8a9468db5b885c346cc | C/C++ | 57,305 | 1,786 | // 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... |
d33f728c3a538d6f000332e65ede23a25cf889c0fc63edc7a59ca049fa8856d1 | C/C++ | 58,150 | 1,376 | /*
The Python Imaging Library (PIL) is
Copyright © 1997-2011 by Secret Labs AB
Copyright © 1995-2011 by Fredrik Lundh
Pillow is the friendly PIL fork. It is
Copyright © 2010-2022 by Alex Clark and contributors
Like PIL, Pillow is licensed under the open source HPND License
*/
// This code is heavily in... |
448ca507a39a9cf523007ee7a660a6a5c5bab7c7dc13814bb95bcf50e92d4da3 | C/C++ | 58,622 | 177 | #pragma once
#include <torch/headeronly/core/Dispatch_v2.h>
// Get AT_DISPATCH_SWITCH and AT_DISPATCH_CASE:
#include <ATen/Dispatch.h>
// This is a new implementation of the AT_DISPATCH macro family from
// ATen/Dispatch.h
//
// The intended usage is:
//
// ScalarType scalar_type;
//
// AT_DISPATCH_V2(
// scala... |
738e1971c78296b55bf699dbccc2ff55af94d360e033ecd9d7ae094e5065c73d | C/C++ | 58,986 | 2,121 | #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/macros/Macros.h>
#include <c10/util/irange.h>
namespace at::vec {
inline namespace CPU_CAPABILITY {
#ifdef CPU_CAPABILITY... |
c774404bd4112543f29ef93bb963c010a6f4e4e8bb9f12a597a8d2ed32de441c | C/C++ | 59,005 | 1,443 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2010 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... |
ab560cb42785141b5b2dd6c769356c73f7e5e20826d5e65ed326f84c858adc6b | C/C++ | 60,920 | 1,502 | //***********************************************************************************************
//
// Copyright (c) 1993-2003 Axon Instruments.
// All rights reserved.
// Permission is granted to freely use, modify and copy the code in this file.
//
//***************************************************... |
6a47405dd350bc7c4f14f6dd7a86e1a06cf22d492855dc332838f375bb64e734 | C/C++ | 61,383 | 1,613 |
#if defined(_MULTIARRAYMODULE) || defined(WITH_CPYCHECKER_STEALS_REFERENCE_TO_ARG_ATTRIBUTE)
typedef struct {
PyObject_HEAD
npy_bool obval;
} PyBoolScalarObject;
extern NPY_NO_EXPORT PyTypeObject PyArrayNeighborhoodIter_Type;
extern NPY_NO_EXPORT PyBoolScalarObject _PyArrayScalar_BoolValues[2];
NPY_... |
982dd2871739f870c045b6435ce0fc8d19cbaadc461be83bf7dc97d0fc1b2e82 | C/C++ | 61,854 | 1,570 | // 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) 2009 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2010 Hauke Heibel <hauke.heibel@gmail.com>
//
// This Source Code Form is subject to... |
b0eee6ddb59d4f7d17d5aba64f675e40ab45ca0145bb2832bfa65fd48590da17 | C/C++ | 63,980 | 1,732 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2011 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2011-2014 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2011-2012 Jitse Niesen <jitse@maths.leeds.ac.uk>
//
// This Source Code Form is... |
e9730b07ba2ff8d2949ad5044b9a724e2e399bad5bb7f4f72258dbb55ee8cf81 | C/C++ | 64,780 | 2,317 | #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/macros/Macros.h>
#include <c10/util/irange.h>
namespace at::vec {
inline namespace CPU_CAPABILITY {
#ifdef CPU_CAPABILITY... |
aa79c2eb417ea1e1b390ceb9bd5f1570cb1384b60a7035a484b40139f2778d99 | C/C++ | 65,053 | 1,933 | #ifndef NUMPY_CORE_INCLUDE_NUMPY_NDARRAYTYPES_H_
#define NUMPY_CORE_INCLUDE_NUMPY_NDARRAYTYPES_H_
#include "npy_common.h"
#include "npy_endian.h"
#include "npy_cpu.h"
#include "utils.h"
#ifdef __cplusplus
extern "C" {
#endif
#define NPY_NO_EXPORT NPY_VISIBILITY_HIDDEN
/* Always allow threading unless it was explici... |
294d92e83c67ca6f218a38b62edec47929283cd85607f1b1ff1cbe6a98685a52 | C/C++ | 66,556 | 1,945 | #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
... |
30ca925b6b462db4cc1fd26cd586763b91b5a7ddd74e3f7da216a0319ce0208c | C/C++ | 68,796 | 1,947 | // 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 ... |
d5a0ff4264fef620ac52102f5eaba3e0d8ad593e508f4953d91d7238ad210e57 | C/C++ | 70,734 | 1,528 | /** \file nifti1.h
\brief Official definition of the nifti1 header. Written by Bob Cox, SSCC, NIMH.
HISTORY:
29 Nov 2007 [rickr]
- added DT_RGBA32 and NIFTI_TYPE_RGBA32
- added NIFTI_INTENT codes:
TIME_SERIES, NODE_INDEX, RGB_VECTOR, RGBA_VECTOR, SHAPE
0... |
82397a841feb13a897f441bde833fb397e96e750879862c4b879a25b1754ed8e | C/C++ | 72,108 | 2,421 | #pragma once
#include <ATen/core/custom_class.h>
#include <ATen/core/jit_type_base.h>
#include <ATen/core/TensorBody.h>
#include <ATen/core/functional.h>
#include <ATen/core/symbol.h>
#include <ATen/core/type_factory.h>
#include <ATen/core/qualified_name.h>
#include <c10/util/TypeList.h>
#include <c10/util/Exception.h... |
692067d5da20b818bfd6b7b5dc7290dad5f7df3912184f555109fb80320653de | C/C++ | 72,978 | 1,940 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2016 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... |
4d81da0df5d2dc4ae9c6c9cc136f7eff7e52383e2f410207ba444a6707d2b2c2 | C/C++ | 75,864 | 1,421 | // This file was GENERATED by command:
// pump.py gtest-param-test.h.pump
// DO NOT EDIT BY HAND!!!
// 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:
//
//... |
69b4badcdd979a82a1e809c8bacbbb5f1529d0a67e1b9eaecc26c4232fa4c6b2 | C/C++ | 77,398 | 2,457 | /*
#undef ALTCPU
#ifdef _CUDA_ENABLED
#include <cuda_runtime.h>
#include "src/acc/cuda/cuda_settings.h"
#include "src/acc/cuda/cuda_kernels/BP.cuh"
#elif _HIP_ENABLED
#include <hip/hip_runtime.h>
#include "src/acc/hip/hip_settings.h"
#include "src/acc/hip/hip_kernels/BP.h"
#endif
#include "src/macros.h"
#include "src/e... |
7b0f4c3613d07752ec0998968859a3f4867bc8e9c0dc728e5df7c3791f57d63c | C/C++ | 80,138 | 2,079 | // libdivide.h - Optimized integer division
// https://libdivide.com
//
// Copyright (C) 2010 - 2019 ridiculous_fish, <libdivide@ridiculousfish.com>
// Copyright (C) 2016 - 2019 Kim Walisch, <kim.walisch@gmail.com>
//
// libdivide is dual-licensed under the Boost or zlib licenses.
// You may use libdivide under the ter... |
436ab8f55c525af23eeea753d9edb38b881a70608246140ebb2e4e8b8bd8b072 | C/C++ | 82,590 | 2,622 | #include <cmath>
#include <cstring>
#include <limits>
#include <type_traits>
#include <utility>
#if defined(__clang__)
#include <sleef.h>
#elif defined(__GNUC__) || defined(__GNUG__)
#include <sleef.h>
#include <vecintrin.h>
#endif
#include <ATen/cpu/vec/intrinsics.h>
#include <ATen/cpu/vec/vec_base.h>
#include <c10/ut... |
c7d804abaefab777fe1eaf459aeda7a4f30409c9c71bbe78679ef3fbf6bdeac6 | C/C++ | 85,561 | 3,017 | // =============================================================================
// FILE: StdString.h
// AUTHOR: Joe O'Leary (with outside help noted in comments)
// REMARKS:
// This header file declares the CStdStr template. This template derives
// the Standard C++ Library basic_string<> template and add to it... |
7810910f448541ab7680871b1f5b2a58bcaa5145fea1079f9617a50130280588 | C/C++ | 88,434 | 2,291 | // 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 ... |
1ce2f459b11a5e72485946c5cb0d2e4f1a9fe11a44d373190b22cd7860ee8244 | C/C++ | 88,578 | 3,017 | // =============================================================================
// FILE: StdString.h
// AUTHOR: Joe O'Leary (with outside help noted in comments)
// REMARKS:
// This header file declares the CStdStr template. This template derives
// the Standard C++ Library basic_string<> template and add ... |
7f9d59dbdb7d0bc18ab332fcc519bffbbc7e404546265eb9382466fbe54bd401 | C/C++ | 89,944 | 2,535 | #pragma once
#include <algorithm>
#include <array>
#include <atomic>
#include <condition_variable>
#include <cstddef>
#include <exception>
#include <functional>
#include <initializer_list>
#include <iterator>
#include <memory>
#include <mutex>
#include <optional>
#include <ostream>
#include <sstream>
#include <string>... |
b4166f342c1ad1e31973ca7891a3ec1fb03633f186e6b325668470ef3abd6304 | C/C++ | 113,781 | 2,801 | // 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... |
d061681876876977fd42e12bf055d3985deafcc90d04dd746275c54310cda9f7 | C/C++ | 118,270 | 1,468 | /***************************************************************************
*
* 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... |
863ce5dbf34627e79e81256c9508a6c9fa2506fe2546ecc87f204652b53c6100 | C/C++ | 123,740 | 2,348 | #pragma once
#include <iostream>
#include <cstdint>
#include <string>
#include <zlib.h>
#include <chrono>
#include <vector>
#include <SDL.h>
#include <algorithm>
#include "../dep/idalib.h"
#if defined(IMGUI_IMPL_OPENGL_ES2)
#include <SDL_opengles2.h>
#else
#include <SDL_opengl.h>
#endif
namespace IDA_IO
{
struct... |
6e2cc25ff6cb188b9f921cd11cc6b2920ca156bad1c31ef138fe8affd0d34c66 | C/C++ | 138,134 | 4,638 | /***************************************************************************
*
* 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... |
3698d6eab81c9adafd0f6e2409f0acca48c9b3aae81432cf662bdeb84c76b826 | C/C++ | 142,130 | 3,927 | #pragma once
#include <ATen/AccumulateType.h>
#include <ATen/NumericUtils.h>
#include <ATen/jiterator_macros.h>
#include <c10/macros/Macros.h>
#include <c10/util/BFloat16.h>
#include <c10/util/Half.h>
#include <c10/util/MathConstants.h>
#include <cfloat>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include ... |
6293518aa901fcec55fc9a509a4717821f2951af3f7892fe59b656bd579b5a6f | C/C++ | 172,836 | 3,911 | // 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 Konstantinos Margaritis <markos@freevec.org>
// Heavily based on Gael's SSE version.
//
// This Source Code Form is subject to the terms... |
970a6f28a034ddc822065e7c46f709e8587367a1293e4ca654074af686385a4d | C/C++ | 180,626 | 3,962 | static omp_lock_t global_mutex;
#ifdef _SYCL_ENABLED
#include "src/acc/sycl/sycl_virtual_dev.h"
using deviceStream_t = virtualSYCL*;
#endif
// ----------------------------------------------------------------------------
// -------------------- getFourierTransformsAndCtfs ---------------------------
// ---------------... |
7c28cadd1ff67a87c0a43a3a06d5bed9819a7a0a5f29022fb692b98910ece1f3 | C/C++ | 185,666 | 3,331 | // This file was GENERATED by command:
// pump.py gtest-type-util.h.pump
// DO NOT EDIT BY HAND!!!
// 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:
//
// ... |
58d92033f9afd048b0ee60f646d749c9b0cc786986b9d04eb61835499bbf5fd1 | C/C++ | 192,176 | 5,143 | // This file was GENERATED by command:
// pump.py gtest-param-util-generated.h.pump
// DO NOT EDIT BY HAND!!!
// 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
// m... |
5b7693f174b0458c7bec5522c8d6be4fe606d3f5da5082351959c14e59269b53 | C/C++ | 199,484 | 5,085 | // [DEAR IMGUI]
// This is a slightly modified version of stb_truetype.h 1.26.
// Mostly fixing for compiler and static analyzer warnings.
// Grep for [DEAR IMGUI] to find the changes.
// stb_truetype.h - v1.26 - public domain
// authored from 2009-2021 by Sean Barrett / RAD Game Tools
//
// ==========================... |
84d048db4a3f0d0bb9401cd2d83b28e9d0512b55194724e3f2cb1c5db160b1ee | C/C++ | 200,000 | 2,887 | // dear imgui, v1.90.1 WIP
// (internal structures/api)
// You may use this file to debug, understand or extend Dear ImGui features but we don't provide any guarantee of forward compatibility.
/*
Index of this file:
// [SECTION] Header mess
// [SECTION] Forward declarations
// [SECTION] Context pointer
// [SECTION]... |
896b726fd322c17c590d4cd1e5c5ee2765e6decbdefdc8f10be3e110e0343b8e | C/C++ | 200,000 | 1,947 | // dear imgui, v1.90.1 WIP
// (headers)
// Help:
// - See links below.
// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that.
// - Read top of imgui.cpp for more details, links and comments.
// Resources:
// - FAQ https://dearimgui.com/faq
// - Ge... |
801f37adf51e4e48025e0193332fed38bf72b1027747bdc6a08c51e99e6e2d56 | CUDA | 97 | 5 | #include "src/acc/acc_projector.h"
#include <signal.h>
#include "src/acc/acc_projector_impl.h"
|
1d1cc63035b14c595ef0b090e3196b26357ad1d019b0c116663704e2594a2fc9 | CUDA | 156 | 7 | #include <ATen/cuda/cub-RadixSortPairs.cuh>
namespace at::cuda::cub::detail {
AT_INSTANTIATE_SORT_PAIRS(int64_t, 4)
} // namespace at::cuda::cub::detail
|
31bc3d0c26fed5fae085e99e8b27b863e9e15c72e56d123e4157e10500ce17ff | CUDA | 156 | 7 | #include <ATen/cuda/cub-RadixSortPairs.cuh>
namespace at::cuda::cub::detail {
AT_INSTANTIATE_SORT_PAIRS(int64_t, 2)
} // namespace at::cuda::cub::detail
|
747633e8a91a8e35ab302b9af7e5cc527d9abcd3152a2e7ebd592887e5f527ac | CUDA | 156 | 7 | #include <ATen/cuda/cub-RadixSortPairs.cuh>
namespace at::cuda::cub::detail {
AT_INSTANTIATE_SORT_PAIRS(int32_t, 2)
} // namespace at::cuda::cub::detail
|
8bd155fb635b4299f184efa404c9f4c3e7a4001eeeac0a46add218f090048104 | CUDA | 156 | 7 | #include <ATen/cuda/cub-RadixSortPairs.cuh>
namespace at::cuda::cub::detail {
AT_INSTANTIATE_SORT_PAIRS(int64_t, 1)
} // namespace at::cuda::cub::detail
|
920a79319cee79350064eca6b369df199db9824999c50f08772b7b3037c2bbf7 | CUDA | 156 | 7 | #include <ATen/cuda/cub-RadixSortPairs.cuh>
namespace at::cuda::cub::detail {
AT_INSTANTIATE_SORT_PAIRS(int32_t, 1)
} // namespace at::cuda::cub::detail
|
d9a86f67d58d8abb260175fbc51998a5eef1f70ff959f1a744f7ce1f0f7acb77 | CUDA | 156 | 7 | #include <ATen/cuda/cub-RadixSortPairs.cuh>
namespace at::cuda::cub::detail {
AT_INSTANTIATE_SORT_PAIRS(int32_t, 4)
} // namespace at::cuda::cub::detail
|
8ad64e2fdf78cb24ea2947f9c441278cdeab1499375bd775e73e5db0b29a7ec7 | CUDA | 157 | 7 | #include <ATen/cuda/cub-RadixSortPairs.cuh>
namespace at::cuda::cub::detail {
AT_INSTANTIATE_SORT_PAIRS(uint64_t, 8)
} // namespace at::cuda::cub::detail
|
ca3c3a93397bb89ce4632f28064d755b6899902c2d6df63a473058dad6b8bca6 | CUDA | 157 | 7 | #include <ATen/cuda/cub-RadixSortPairs.cuh>
namespace at::cuda::cub::detail {
AT_INSTANTIATE_SORT_PAIRS(uint32_t, 8)
} // namespace at::cuda::cub::detail
|
f2343a409ab0ab6d4817f47223daa8dde56b95557e5f5380cb268339de2c9ecd | CUDA | 157 | 7 | #include <ATen/cuda/cub-RadixSortPairs.cuh>
namespace at::cuda::cub::detail {
AT_INSTANTIATE_SORT_PAIRS(uint16_t, 8)
} // namespace at::cuda::cub::detail
|
8793b64f96419ab92f4cc5e035968645b703e382cbf8b8d9573982411dfc426a | CUDA | 162 | 7 | #include <ATen/cuda/cub-RadixSortPairs.cuh>
namespace at::cuda::cub::detail {
AT_INSTANTIATE_SORT_PAIRS(c10::BFloat16, 8)
} // namespace at::cuda::cub::detail
|
0fa39e26d5f14928082710ba6191e2761dba5f62fbd4778074bcd74690891e43 | CUDA | 187 | 7 | #include <ATen/cuda/cub-RadixSortPairs.cuh>
namespace at::cuda::cub::detail {
AT_FORALL_SCALAR_TYPES_AND2(Bool, Half, AT_INSTANTIATE_SORT_PAIRS_8)
} // namespace at::cuda::cub::detail
|
c26497aee4b07f659330485b42cdcf1ef33d66fa3e80512bff46bbb16a36cfce | CUDA | 205 | 7 | #include <signal.h>
#include <cuda_runtime.h>
#include "src/acc/cuda/cuda_settings.h"
#include "src/acc/acc_backprojector.h"
#include "src/acc/acc_projector.h"
#include "src/acc/acc_backprojector_impl.h"
|
a589069cd435c98cd175ee295b443c06d7706f4f45f450c398f036cb024a5867 | CUDA | 215 | 10 | #include <iostream>
#include <math.h>
// CUDA Kernel function to add the elements of two arrays on the GPU
__global__
void add(int n, float *x, float *y)
{
for (int i = 0; i < n; i++)
y[i] = x[i] + y[i];
}
|
117f37c4d0cc3cd981c4fb501bbb15104140559e057902b969fe83b70f504f14 | CUDA | 343 | 16 | #include "src/acc/acc_projector_plan.h"
#include "src/time.h"
#include <cuda_runtime.h>
#ifdef _CUDA_ENABLED
//#include <cuda_runtime.h>
#ifdef CUDA_FORCESTL
#include "src/acc/cuda/cuda_utils_stl.cuh"
#else
#include "src/acc/cuda/cuda_utils_cub.cuh"
#endif
#endif
#include "src/acc/utilities.h"
#include "src/acc/acc_... |
5763fda5967de4f963b9f0d0ea47a1091361723f4f11e78cc33dceb07df8ed8e | CUDA | 539 | 15 | #define TORCH_ASSERT_NO_OPERATORS
#include <ATen/cuda/CUDAGeneratorImpl.h>
#include <ATen/native/UnaryOps.h>
#include <ATen/native/cuda/DistributionTemplates.h>
namespace at::native {
void uniform_kernel(TensorIteratorBase& iter, double from, double to, std::optional<Generator> gen) {
auto generator = get_generator... |
3f566c316dd6013286f1d0149a979ed8f7c7f9adf2ee79e7bb53d2e8d1222a7d | CUDA | 540 | 15 | #define TORCH_ASSERT_NO_OPERATORS
#include <ATen/cuda/CUDAGeneratorImpl.h>
#include <ATen/native/UnaryOps.h>
#include <ATen/native/cuda/DistributionTemplates.h>
namespace at::native {
void geometric_kernel(TensorIteratorBase& iter, double p_, std::optional<Generator> gen) {
auto generator = get_generator_or_default... |
0c2588deb7457fdcc13470431eb0feea592685646db025092f44e53b93a6065f | CUDA | 547 | 15 | #define TORCH_ASSERT_NO_OPERATORS
#include <ATen/native/UnaryOps.h>
#include <ATen/cuda/CUDAGeneratorImpl.h>
#include <ATen/native/cuda/DistributionTemplates.h>
namespace at::native {
void normal_kernel(const TensorBase &self, double mean, double std, std::optional<Generator> gen) {
auto generator = get_generator_o... |
29145966ddfee07529fdba63996e4af1c6d1269b221bc910110df6b2bdef7e6f | CUDA | 556 | 15 | #define TORCH_ASSERT_NO_OPERATORS
#include <ATen/cuda/CUDAGeneratorImpl.h>
#include <ATen/native/UnaryOps.h>
#include <ATen/native/cuda/DistributionTemplates.h>
namespace at::native {
void exponential_kernel(TensorIteratorBase& iter, double lambda, std::optional<Generator> gen) {
auto generator = get_generator_or_d... |
d4cd93eaf8d6b99cfb31904124c590e32ccfdd9e2e21c29c2e6d03b127845d71 | CUDA | 557 | 15 | #define TORCH_ASSERT_NO_OPERATORS
#include <ATen/cuda/CUDAGeneratorImpl.h>
#include <ATen/native/UnaryOps.h>
#include <ATen/native/cuda/DistributionTemplates.h>
namespace at::native {
void cauchy_kernel(TensorIteratorBase& iter, double median, double sigma, std::optional<Generator> gen) {
auto generator = get_gener... |
a161dbe684c9fd0a5719c216453f34c4b6e3b4d7755a83bf10059b5c3333a01e | CUDA | 561 | 16 | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <c10/cuda/CUDACachingAllocator.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/NativeFunctions.h>
#else
#include <ATen/ops/record_stream_native.h>
#endif
namespace at::native {
void record_stream_cuda(Tensor& self, c10::Stream stream)... |
5b7dfb8b145345523b09625e6d1117c276c06c361fce77ce069d78b6f84e9478 | CUDA | 565 | 15 | #define TORCH_ASSERT_NO_OPERATORS
#include <ATen/cuda/CUDAGeneratorImpl.h>
#include <ATen/native/UnaryOps.h>
#include <ATen/native/cuda/DistributionTemplates.h>
namespace at::native {
void log_normal_kernel(TensorIteratorBase& iter, double mean, double std, std::optional<Generator> gen) {
auto generator = get_gener... |
c8e729367f202224a9d09390bd6da6381b39ec1eb2fcae9cd44124a306101c9e | CUDA | 643 | 23 | #define TORCH_ASSERT_NO_OPERATORS
#include <ATen/core/TensorBase.h>
#include <ATen/Dispatch.h>
#include <ATen/native/cuda/ScanKernels.h>
#include <ATen/native/cuda/ScanUtils.cuh>
namespace at::native {
void launch_cumprod_cuda_kernel(const TensorBase& result, const TensorBase& self, int64_t dim) {
AT_DISPATCH_ALL_... |
59dd8fca7cd3e8d53bc25b63deb08b5e3c2b4a7454663aaea07f749f6bf3f371 | CUDA | 647 | 25 | #define TORCH_ASSERT_NO_OPERATORS
#include <ATen/core/TensorBase.h>
#include <ATen/Dispatch.h>
#include <ATen/native/cuda/ScanKernels.h>
#include <ATen/native/cuda/ScanUtils.cuh>
namespace at::native {
void launch_cumsum_cuda_kernel(const TensorBase& result, const TensorBase& self, int64_t dim) {
AT_DISPATCH_ALL_T... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.