sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
a3a5a06d5ebf9c3e203bab55268ec7c7f3507de5c2fa20774c55db7d1bac6c12 | C/C++ | 33 | 1 | #include <c10/core/ScalarType.h>
|
bbdb7cc557be580117cd6bc7a8527ddcae7aeae91e97dc2c6cb852114784ab27 | C/C++ | 34 | 1 | #include <ATen/core/Formatting.h>
|
912f65232c13153ad8a96f81da733d39f51a3e2dcf63c931e398e7c1a6b7483e | C/C++ | 41 | 3 | #pragma once
/* #undef TRACE_ENABLED */
|
802ef79c46d50fdb1815d33118fa2f0071fdf7bf7de5e4620d85cedd2d72e54a | C/C++ | 42 | 1 | #include <c10/core/UndefinedTensorImpl.h>
|
97d4e965ffa02ed9906db57bfdd9f450588eb95f3c3d54bb574e3b60c0ad33e0 | C/C++ | 42 | 2 | #pragma once
#include <c10/core/Layout.h>
|
c285361c7eae97e68e2ec20b6fec454f119bb40ee61a768c689cf307e0ab9412 | C/C++ | 42 | 2 | #pragma once
#include <c10/core/Device.h>
|
120cc3dd23b5921be0ee9643713b2aa08d0515296c6686dbe8569d2db0212797 | C/C++ | 43 | 2 | #pragma once
#include <c10/core/Storage.h>
|
b8a2d653d7015f895d68fca14800a40007b50431da2452804bcc951dec7312ea | C/C++ | 43 | 2 | #pragma once
#include <c10/core/Backend.h>
|
3a3e77bac7cd264cfc2f77d23a3984db4ae90b43548e1395cf86e6bbaf11dbcc | C/C++ | 44 | 2 | #pragma once
#include <c10/util/ArrayRef.h>
|
7ab70ecd76d85ff538c7e42927d1f9acdc19f2447abe4bbf318425cd12275b6f | C/C++ | 44 | 3 | #pragma once
#include <ATen/core/Tensor.h>
|
cbac5f8f7642298355ce885f885aaca9e3527970a91d256ab41edae562e11778 | C/C++ | 44 | 2 | #pragma once
#include <ATen/cudnn/Handle.h>
|
e2e4615f9635c19a2eb808b833c06b885a2a2738917247f3221d68ec4dd84bd9 | C/C++ | 44 | 3 | #pragma once
#include <ATen/core/Scalar.h>
|
75c9c04a5db21193171986ec050907d56f8a2c1a104d24a811fba3ba63491e33 | C/C++ | 45 | 3 | #pragma once
#include <c10/macros/Macros.h>
|
2817aef832190676c0593be50c83cd200ecf318df014e0c76c047497e913a0b7 | C/C++ | 46 | 2 | #pragma once
#include <ATen/core/Generator.h>
|
43b27f3746ecf713b935288b3bbe212c813935421c9abd859a4492fde2dfd462 | C/C++ | 46 | 2 | #pragma once
#include <ATen/TensorIterator.h>
|
843b44bbb4cb9beae6225a296370ee76f19c3fb068a52c96600a1c7ba491aca3 | C/C++ | 46 | 2 | #pragma once
#include <ATen/core/DimVector.h>
|
890c0d60a14f2beb0d2a7e4d830cb6bf390448a57ce302522c8403d4eec61b18 | C/C++ | 46 | 2 | #pragma once
#include <ATen/core/Backtrace.h>
|
6f4cd169446d2f4a5a3858711a00787e58771dcce33d25fa810fc643338eb47b | C/C++ | 47 | 2 | #pragma once
#include <c10/util/SmallVector.h>
|
a61a6188cc597e0229c5194775d8f54b5badce57f0f1501a4c67a9704cefe397 | C/C++ | 49 | 2 | extern char *Version;
extern char *VersionShort;
|
c84262d68a9cbbf0692e379b3212df17b3f4232145596f38fd35b39e3ad5238b | C/C++ | 49 | 1 | #include <torch/headeronly/cpu/vec/intrinsics.h>
|
d1818ea25c648dbe90cc499e67ac6ea346da9a84dcb791afac702d3e8307f9f5 | C/C++ | 49 | 2 | #pragma once
#include <c10/core/TensorOptions.h>
|
2953779a19e09ab95192f94774ff97dbc611bb8cebbdfc55056fe3f4f16847ec | C/C++ | 50 | 3 | #pragma once
#define SINGLE_ARG(...) __VA_ARGS__
|
d283d4e508d9e6aff9a89e7870211ad7c65ab3867f20c4d5013d3d8f7f627482 | C/C++ | 51 | 2 | #pragma once
#include <ATen/core/TensorAccessor.h>
|
a56e0946d9ae35c2a457343669807132ecb6af5b9ed6a302c516b6ca546c377e | C/C++ | 58 | 3 | #ifndef NOISE_H_INCLUDED
extern float snorm(void);
#endif
|
562d4b893ac95f9058d000cbc68264c02ec7dbb1f7d2d4cf33cf71674e00e465 | C/C++ | 59 | 2 | #include <c10/util/Backtrace.h>
#include <c10/util/Type.h>
|
6d6ebc3e1404be622f321149fa5533867d87a013d36bab8018273c9ec99f5094 | C/C++ | 66 | 1 | void gauleg(double x1, double x2, double x[], double w[], int n);
|
5a7970e0ee88fbc81e22917ad365baf6e4802d118bfbec7c7778451d351e7234 | C/C++ | 73 | 1 | double zbrent(double (*func)(double), double x1, double x2, double tol);
|
49d7b3aba10169f1308e9a88f12ca28d0e751eebda92f7a858872b882aef2da1 | C/C++ | 75 | 4 | #include "Python.h"
PY_LONG_LONG hpTimer(void);
double hpTimerUnit(void);
|
024e9192d892edd0e656dcc9c5e4b8c4660fe8f55c29164e49b00bd9f10716ee | C/C++ | 84 | 7 | #pragma once
template <typename T>
struct ClampScalarParams {
T min;
T max;
};
|
f4285f95d94517827a41cafb54d06dad0ffe8ca56842ab883ae24a2d83d7cf49 | C/C++ | 85 | 5 | #pragma once
#include <cstdint>
#include <ATen/cuda/detail/PhiloxCudaStateRaw.cuh>
|
60f08e720e7de135bf0065049bbb20e2c6c6b53a858ee4de375c3ce9f5f44488 | C/C++ | 86 | 6 | #ifndef SRC_MABONLM3D_H_
#define SRC_MABONLM3D_H_
#endif /* SRC_NLMDENOISING_H_ */
|
c2e621585414533d97b8df1b124cb376b0d09c922a3e859bef64de79f5a1405a | C/C++ | 87 | 4 | #ifndef SRC_NLMUpsample_H_
#define SRC_NLMUpsample_H_
#endif /* SRC_NLMUpsample_H_ */
|
a39ae537b089a707bd96296b475e94c6ea8fd53794fe67b854176895f3dfe02b | C/C++ | 93 | 1 | double rtsafe(void (*funcd)(double, double *, double *), double x1, double x2, double xacc);
|
9d2f97894c92a7a0082841ca3ed393c34cce4fc32c78c5bc2625ea1ee5dc08e4 | C/C++ | 98 | 5 | #pragma once
#define MR 8
#define COL_BLOCK_SIZE 4
#define PACKED_A_BLOCK_SIZE COL_BLOCK_SIZE*MR
|
a74330278bd2b9e2ac572421c0d4efa8ab5d53ec0ee0b646f00bb0dc83a66359 | C/C++ | 100 | 1 | void zbrak(double (*fx)(double), double x1, double x2, int n, double xb1[], double xb2[], int *nb);
|
e65e5b99d76a6d0de13655ee2bd18232ccebea2744bd5b558f61e846a47519d6 | C/C++ | 100 | 9 | #pragma once
struct CdistBwdParams {
long B;
long P;
long R;
long D;
float p_minus_1;
};
|
87829402113cd7b57cccd076bbeef3360d7b1390cb7b275171d4560ab6d2e635 | C/C++ | 101 | 1 | void hooke(double **p, double y[], int nvars, double epsilon, double (*funk)(double[]), int *nfunk);
|
3f39e95c3c5008c8c2f055fabd7abca29072ab93d8d49125c796e5bba908b6d0 | C/C++ | 102 | 4 | #pragma once
#include <ATen/cpu/vec/functional_base.h>
#include <ATen/cpu/vec/functional_bfloat16.h>
|
9fb77295baa26f7c082403ff13d28b6fece0b1c25846ce6fa04e7c75bbe34932 | C/C++ | 104 | 6 | /* FILE stack.h */
#include "_imports/deffs.h"
#include "_imports/event.h"
EVENT *Header_stack(void);
|
34bcbcbb42fcc32f623f962f78586c7674267d8a3baab2b560e624f799baff29 | C/C++ | 105 | 5 | #import <ATen/native/metal/mpscnn/MPSCNNOp.h>
@interface MPSCNNClampOp : NSObject<MPSCNNShaderOp>
@end
|
cd39fe9c14b90bef26e3c3fdd744ca798b262f2383cf9a8632d267cea51be320 | C/C++ | 108 | 4 | #pragma once
// at::Tag is now generated into torch/headeronly
#include <torch/headeronly/core/enum_tag.h>
|
fda8f8635ca244ef10d12389fbf3184b8c5a6541d8db64b811267dd15339f8af | C/C++ | 109 | 11 | #ifndef JAZ_CUDA_TEST_00_H
#define JAZ_CUDA_TEST_00_H
class CudaTest00
{
public:
void run();
};
#endif
|
9620b2f83d6229ca668f5e64798b530b7ec43995950767c510f2b99903e80d81 | C/C++ | 111 | 1 | double brent(double ax, double bx, double cx, double (*f)(double), double tol, double *xmin, int *iterations);
|
f3b4c4e83ad645f244168aaecbd793942b4cd3ea2b55201a955383647d4212ce | C/C++ | 111 | 1 | double amotry(double **p, double y[], double psum[], int ndim, double (*funk)(double[]), int ihi, double fac);
|
35f5a37a1fd68224378aec4f28686e10a7f4adc3275d728fba39c8b27c9618b1 | C/C++ | 113 | 7 | #pragma once
namespace at::native::mkldnn{
void clear_computation_cache();
} // namespace at::native::mkldnn
|
b876eae44ba3c717b544a52292f5aa3182d8b7cf7ae4480df4b1fbc6c3d7c427 | C/C++ | 121 | 11 | #pragma once
#ifdef USE_PYTORCH_QNNPACK
namespace at::native {
void initQNNPACK();
} // namespace at::native
#endif
|
2895015ebed27f6f19aa669796fa0bf5f7354a0478aaadb71a91b321c1378bf5 | C/C++ | 123 | 11 | #ifndef CHECK_H_
#define CHECK_H_
class Check{
public:
static void check(bool condition, char *format,...);
};
#endif
|
0aa723ac4d4acaebbe38f8ba15846a02d1316835c81bf1c747398c41bc97f3f7 | C/C++ | 126 | 2 | void
mnbrak(double *ax, double *bx, double *cx, double *fa, double *fb, double *fc, double (*func)(double), int *iterations);
|
858b3aa918d490b43f28fd81792e6e018d3c0ee41ba1cb5fee750c19ecd94d44 | C/C++ | 126 | 12 | #pragma once
namespace at {
enum class padding_mode {
reflect,
replicate,
circular,
constant,
};
} // namespace at
|
dc64f195f733d2b995987d126140895f64100318b6d5468cf5023e45c9d19835 | C/C++ | 126 | 11 | #ifndef JAZ_HIP_TEST_00_H
#define JAZ_HIP_TEST_00_H
class HipTest00
{
public:
void run();
};
#endif //JAZ_HIP_TEST_00_H
|
ddd20de27be94edcbbdc200999fbcfa1541b3b460d985555cb2a5137ed31d7fc | C/C++ | 127 | 11 | #ifndef MULTI_FILAMENT_FIT_H
#define MULTI_FILAMENT_FIT_H
class MultiFilamentFit
{
public:
MultiFilamentFit(
};
#endif
|
39be4855016eb6b22fb0584465f9f4541d9a3c7f6c92336a94f8561c5f0ad4e3 | C/C++ | 128 | 2 | void amoeba(double **p, double y[], int ndim, double ftol, double (*funk)(double[]), int *nfunk,
double lo[], double hi[]);
|
629523814f334ee0e694db7ca675293588ca56cfac27e614b387a78ca26bef69 | C/C++ | 129 | 4 | #pragma once
#include <ATen/core/ATenGeneral.h> // for BC reasons
#include <c10/core/Backend.h>
#include <c10/core/ScalarType.h>
|
018fef18d19eb4f13f28f81ffc56221d5ae56308d046ece5d04ea8024ca14b31 | C/C++ | 130 | 3 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
void Get_Phi(int n, int phase_function, double g, double **h);
|
3111590e266d883e36c3bbff702e3651f597673096fab59b067402392b7b328e | C/C++ | 130 | 3 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
void Radau(double x1, double x2, double *x, double *w, int n);
|
1f56d0e6fdc126cfb077016bff14223db5199f0d6a2d3f76d32f585ae2ff16ea | C/C++ | 134 | 9 | #pragma once
#include <ATen/Config.h>
#if AT_MKL_ENABLED()
#define AT_USE_MKL_SPARSE() 1
#else
#define AT_USE_MKL_SPARSE() 0
#endif
|
db301c56c42b82479a97efd142f66b31e01ac3f61559d9025a577edada077ada | C/C++ | 148 | 14 | #ifndef TRIANGLE_H
#define TRIANGLE_H
class Triangle
{
public:
Triangle();
Triangle(int a, int b, int c);
int a, b, c;
};
#endif
|
80441850ef26bdfd0da6c9dd49feaf930d9b86f948aeae73649a0101a4f0a6f4 | C/C++ | 151 | 13 | #ifndef ELLIPSE_H
#define ELLIPSE_H
#include <src/jaz/gravis/t2Vector.h>
class Ellipse
{
public:
gravis::d2Vector mean, axis0, axis1;
};
#endif
|
b9df5a102face3e365c7a508c56936e28a944286ccd15807bcae82747c4f49af | C/C++ | 154 | 11 | #pragma once
namespace at {
struct TensorIteratorBase;
namespace native {
void direct_copy_kernel_cuda(TensorIteratorBase& iter);
}
} // namespace at
|
4966ad6bfdcf7fc3a861cc329d307e02ee2d4fc146dcaeee9ef013f7e8904fa6 | C/C++ | 156 | 8 | #pragma once
#include <ATen/core/Tensor.h>
namespace at::native {
Tensor& quantized_copy_from_float_(Tensor& self, const Tensor& src);
} // namespace at
|
eafa5c97bd44eb3789d24465e6bbb3cebc8d75e45f13f0991d851606ed6c6a7d | C/C++ | 156 | 6 | namespace at::native {
TORCH_CUDA_CU_API size_t
_get_cudnn_batch_norm_reserve_space_size(const Tensor& input_t, bool training);
} // namespace at::native
|
122aad72d6765e53e5078fc68db9c3fd253b94bb17a77354c53a79bc953b25c4 | C/C++ | 166 | 9 | #pragma once
#include "imgui.h"
#include "ida_IO.h"
namespace IDA
{
void RenderUI(bool& show_demo_window, bool& show_file_window, IDA_IO::FileList& fileList);
} |
873d70801b5a04606cc7a3c12d4b8cdefd44359bfa421777fdcaba39b06b72fe | C/C++ | 166 | 9 | #ifndef MULTIP_H
#define MULTIP_H
#include<RcppArmadillo.h>
// [[Rcpp::depends(RcppArmadillo)]]
Rcpp::List multiP(Rcpp::List partials, arma::mat psvar_in);
#endif
|
9236c5d61663b16597dd9ac710828cb95b9a0c6506b40be8b4d476cee9013979 | C/C++ | 168 | 6 | #include <ATen/core/Tensor.h>
namespace at::native {
TORCH_API Tensor
quantized_add(Tensor qa, Tensor qb, double scale, int64_t zero_point);
} // namespace at::native
|
1c53663e95235346fac550d01fe51dc1ddddb7a1774ea90228910ffd3773d839 | C/C++ | 175 | 10 | #ifndef FILAMENT_COORD_CONVENTIONS_H
#define FILAMENT_COORD_CONVENTIONS_H
#define COORD_DIM 4
#define COORD_T 0
#define COORD_Q 1
#define COORD_X 2
#define COORD_Y 3
#endif
|
802e73b0e5e239f359f31de40c3f18a251a06e1369ba40177b3fe84db9890f36 | C/C++ | 176 | 8 |
// HIP 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];
}
|
eb0adb635a1693bdcb943b8235854a1342ddf1f666c6e2578b46e5ccac225cde | C/C++ | 177 | 10 | #pragma once
#include <ATen/core/TensorBase.h>
namespace at::cuda::detail {
float *get_cublas_device_one();
float *get_cublas_device_zero();
} // namespace at::cuda::detail
|
cf154fec269e66ce5d573576e1e7b55703c4fd8d6314c3c386a1cce26af04585 | C/C++ | 179 | 7 | /*
* Copyright (C) 1996-2000,2025 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
#include "glib.h"
extern GMainLoop *mainloop;
|
e558559247bb78bd5d8ae348ece54bb625ef42030499835ce0f29660ee717a6b | C/C++ | 182 | 12 | #ifndef MetalCopy_h
#define MetalCopy_h
#include <ATen/Tensor.h>
namespace at::native::metal {
Tensor copy_to_host(const Tensor& input);
} // namespace at::native::metal
#endif
|
c26a08deab90f0e0c91fd636958315a675c790270a27bb4fe0786e1c532fc354 | C/C++ | 186 | 7 | #pragma once
#include <ATen/cuda/ATenCUDAGeneral.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/Exceptions.h>
#include <c10/cuda/CUDAEvent.h>
#include <c10/cuda/CUDAGuard.h>
|
ec72b9c266648b4d40fc1f773745485f29b3b61addd336931224ba560d828f57 | C/C++ | 189 | 9 | #pragma once
#include <ATen/miopen/miopen-wrapper.h>
#include <c10/macros/Export.h>
namespace at::native {
TORCH_CUDA_CPP_API miopenHandle_t getMiopenHandle();
} // namespace at::native
|
873b19b9ff4c53105b4524a9b1e7c9832c4ef519e661c9df74a60e28511f2301 | C/C++ | 190 | 9 | #pragma once
#include <cuda.h>
#include <cuda_runtime.h>
#include <cuda_fp16.h>
#include <c10/macros/Export.h>
// Use TORCH_CUDA_CPP_API or TORCH_CUDA_CU_API for exports from this folder
|
437bba5795803b3caaf477dfd2f1107fdb101b676d9fec5525fd7d6796030344 | C/C++ | 193 | 9 | #pragma once
#include <ATen/cuda/ATenCUDAGeneral.h>
#include <ATen/cudnn/cudnn-wrapper.h>
namespace at::native {
TORCH_CUDA_CPP_API cudnnHandle_t getCudnnHandle();
} // namespace at::native
|
4b6291086e765ed3cd2c4df4535cfd344afe960ec624d0a67b5f729e5e621804 | C/C++ | 198 | 12 | #pragma once
// See NOTE: [Tensor vs. TensorBase]
namespace at {
class TensorBase;
}
namespace at::native {
TORCH_API bool cudnn_is_acceptable(const TensorBase& self);
} // namespace at::native
|
359764718425d955cc250f1f3b0c0842451d6256bcdab90edb42b4f0b334a094 | C/C++ | 202 | 11 | #pragma once
namespace at::native::mps {
void scan_simple_mps_impl(
const Tensor& self,
const Tensor& output,
int64_t dim,
const std::string& op_name);
} // namespace at::native::mps
|
994e6fa5c43de4f1f58f76e9f0a62124e14707e1b1c118d252c47b9f19534919 | C/C++ | 204 | 7 | #ifndef NUMPY_CORE_INCLUDE_NUMPY_ARRAYOBJECT_H_
#define NUMPY_CORE_INCLUDE_NUMPY_ARRAYOBJECT_H_
#define Py_ARRAYOBJECT_H
#include "ndarrayobject.h"
#endif /* NUMPY_CORE_INCLUDE_NUMPY_ARRAYOBJECT_H_ */
|
1124df19f5ad9ac0428380a8dfd174d96f5939129645ffa23e19dca2b7e5acec | C/C++ | 210 | 14 | #ifndef DAMAGE_MODEL_H
#define DAMAGE_MODEL_H
class DamageModel
{
public:
DamageModel();
virtual double getEnvelope(double k_Ang, double dose) = 0;
virtual int getParameterCount() = 0;
};
#endif
|
ba190b4a31fb59f215a2356e7ed832599f761cf4b8d5d422c1c952f5293840e4 | C/C++ | 210 | 10 | #pragma once
#include <c10/macros/Macros.h>
#include <c10/core/GradMode.h>
namespace at {
using GradMode = c10::GradMode;
using AutoGradMode = c10::AutoGradMode;
using NoGradGuard = c10::NoGradGuard;
}
|
9b110614ea0eefae7c0d74748c47bf4ed50dd144a134754cef1a24705b9fb377 | C/C++ | 220 | 11 | #pragma once
#include <ATen/detail/CUDAHooksInterface.h>
namespace at::cuda {
// Forward-declares at::cuda::NVRTC
struct NVRTC;
namespace detail {
extern NVRTC lazyNVRTC;
} // namespace detail
} // namespace at::cuda
|
3e12e5dc2ce251d6532a31aa59d3d0391a8cbc946e2e01e5d8ee4aea5bcd5bf6 | C/C++ | 223 | 17 | #ifndef DYN_OPTICS_DATA_H
#define DYN_OPTICS_DATA_H
#include <string>
class OpticsData
{
public:
OpticsData();
OpticsData(std::string optFn, int verbosity = 1);
double voltage, pixelSize, Cs, Q0;
};
#endif
|
5aed7694bcead6bf6de2f0f36545afff0d3535a8141dbd354b188570ee867e38 | C/C++ | 223 | 10 | #pragma once
#include <ATen/cuda/CachingHostAllocator.h>
namespace at::cuda {
inline TORCH_CUDA_CPP_API at::HostAllocator* getPinnedMemoryAllocator() {
return at::getHostAllocator(at::kCUDA);
}
} // namespace at::cuda
|
ad3105fc91dcc5b0bb0cdaa100102f8b839a1760068cc81b289f1de31668d6f2 | C/C++ | 223 | 14 | #ifndef LONGDEF_H
#define LONGDEF_H
#include <limits.h>
#if defined (_WIN64)
#define AXGLONG int
#elif ( __WORDSIZE == 64 ) || defined (__APPLE__)
#define AXGLONG int
#else
#define AXGLONG long
#endif
#endif
|
9bff052a805d8bf7317e2b365c8c43a6d45a36b55f2b7f3aa5c48dec65a8573a | C/C++ | 227 | 10 | typedef struct
{
short ch_x;
short ch_y;
} CROSS_HAIR;
CROSS_HAIR ch; /* Holds cursor position*/
char cross_hair(CROSS_HAIR *chp); /* cross.c */
void mark_point(CROSS_HAIR where, int n_id, char a_id); /* digi.c */
|
e6114a80f121bf3fa4c36134f0469d0aa0cd40874e1c033b5bca6b62b905c471 | C/C++ | 235 | 9 | /* FILE sac.h */
/* FindSaccade() fills struct if sac is found (else holds garbage) */
extern struct {
int begin;
int peak;
int end;
} SaccadeData;
/* ******************************************************************** */
|
27504ff13e723598b4ef129329cff13a76c3341f02edfccd859bf0d3431689ed | C/C++ | 236 | 11 | #ifndef _DEPR_LM_H_
#define _DEPR_LM_H_
#ifdef _MSC_VER
#pragma message("lm.h is deprecated, please use levmar.h instead!")
#else
#error lm.h is deprecated, please use levmar.h instead!
#endif /* _MSC_VER */
#endif /* _DEPR_LM_H_ */
|
220fbc11e28f3fad6f85c19c86adb46d42e7bddf9be1192a244f8f197b34a9c6 | C/C++ | 238 | 9 | #pragma once
#include <ATen/cuda/CUDAContextLight.h>
// Preserved for BC, as many files depend on these includes
#include <ATen/Context.h>
#include <c10/cuda/CUDAStream.h>
#include <c10/util/Logging.h>
#include <ATen/cuda/Exceptions.h>
|
eed2e87f537119a0cbd23baf8ac0f9f902915d9d1ad19d8dd0422287760e86f8 | C/C++ | 241 | 7 | #define IDM_ABOUT 100
int PASCAL WinMain(HANDLE, HANDLE, LPSTR, int);
BOOL InitApplication(HANDLE);
BOOL InitInstance(HANDLE, int);
long FAR PASCAL MainWndProc(HWND, unsigned, WORD, LONG);
BOOL FAR PASCAL About(HWND, unsigned, WORD, LONG);
|
80700ea1dc752ac7a4b5582696538a017e27d50bc625f2b2cf1f2a48613c1839 | C/C++ | 242 | 13 | #pragma once
#include <c10/macros/Export.h>
#include <limits>
namespace at {
class TensorBase;
}
namespace at::native {
TORCH_API bool canUse32BitIndexMath(const at::TensorBase &t, int64_t max_elem=std::numeric_limits<int32_t>::max());
}
|
693b2b3b85966f8b361c80623b285adbc17d4576a3c6fcc83401afdde439004b | C/C++ | 246 | 13 | #pragma once
#include <c10/macros/Export.h>
namespace c10 {
struct OperatorName;
}
namespace at {
// check if an op is a custom op (i.e. did not come from native_functions.yaml)
TORCH_API bool is_custom_op(const c10::OperatorName& opName);
}
|
b879acc529638bb1153cae9cdfb24bc80e0013a1261df669a8fdd1fe9de8206d | C/C++ | 246 | 16 | #ifndef PIXEL_SET_H
#define PIXEL_SET_H
#include <vector>
class PixelSet
{
public:
std::vector<std::vector<float>> splineCoords, pixelValue;
std::vector<std::vector<long long int>> pixelIndex;
long long int totalNumber;
};
#endif
|
3fdaa6adaeb2baa1f3ccb052a92cada7dc9ceb27e2bb22f09a25511f9884b009 | C/C++ | 252 | 11 | #pragma once
#if defined(USE_ROCM)
#include <thrust/distance.h>
#include <thrust/functional.h>
namespace TORCH_CUDA_STD_NS = ::thrust;
#else
#include <cuda/std/functional>
#include <cuda/std/iterator>
namespace TORCH_CUDA_STD_NS = ::cuda::std;
#endif
|
a8ee3206ba273da3cb9611a2d9ad91eeb8a3942db63ed59518b40f58e6811710 | C/C++ | 253 | 16 | #pragma once
#include <cstdint>
namespace at {
constexpr int32_t num_sdp_backends = 5;
enum class SDPBackend {
error = -1,
math = 0,
flash_attention = 1,
efficient_attention = 2,
cudnn_attention = 3,
overrideable = 4
};
} // namespace at
|
9c45d21a30d6382004f1abe485824e33daae13fab86eb1d7e347ffd76155c052 | C/C++ | 254 | 13 | #pragma once
#include <cstdint>
namespace at {
class TensorBase;
}
namespace at::native {
void launch_gather_topk_kernel(
const TensorBase& self,
int64_t k, int64_t dim, bool largest,
const TensorBase& values, const TensorBase& indices);
}
|
53126d949aaf00e24b822b31bbac9f8ce5c10a5fec87be542ee68a4b381211eb | C/C++ | 259 | 14 | #pragma once
#include <ATen/native/DispatchStub.h>
namespace at {
class Tensor;
namespace native {
using cross_fn = void(*)(const Tensor&, const Tensor&, const Tensor&, const int64_t d);
DECLARE_DISPATCH(cross_fn, cross_stub)
}} // namespace at::native
|
9b25795fdcaf80abb7ec85dde8be0abbda105e795af7dea2d4d458f210c2bfa8 | C/C++ | 270 | 13 | #pragma once
#include <ATen/Tensor.h>
#include <ATen/miopen/miopen-wrapper.h>
#include <c10/macros/Export.h>
namespace at::native {
TORCH_CUDA_CPP_API miopenDataType_t getMiopenDataType(const at::Tensor& tensor);
int64_t miopen_version();
} // namespace at::native
|
c8fc109ade3dcdba23e3f321d8d22ddc4171a89bc0d1dc465cec6b47257e69c8 | C/C++ | 271 | 12 | /*
* Copyright (C) 1994 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
#ifndef BFMATH_H
#define BFMATH_H
#include <method.h>
DATATYPE pythag(DATATYPE a, DATATYPE b);
void fp_exception_init(void);
#endif /* BFMATH_H */
|
ed807384bac18768f38ad8a9532dc72c91bc67eeb349ad920430f36bb40a7940 | C/C++ | 272 | 12 | #ifndef SYCL_BENCHMARK_UTILS_H_
#define SYCL_BENCHMARK_UTILS_H_
//TODO: Is this needed?
#define CTIC(timer,timing)
#define CTOC(timer,timing)
#define GTIC(timer,timing)
#define GTOC(timer,timing)
#define GATHERGPUTIMINGS(timer)
#endif /* CUDA_BENCHMARK_UTILS_H_ */
|
fb81bdca584569e53ff16413f1abc2f0e3748112900142186a08c71be0949c6b | C/C++ | 274 | 16 | #ifndef RIGID_ALIGNMENT
#define RIGID_ALIGNMENT
#include <src/jaz/gravis/t3Vector.h>
class RigidAlignment
{
public:
RigidAlignment(gravis::d3Vector position, double rot, double tilt, double psi);
gravis::d3Vector position;
double rot, tilt, psi;
};
#endif
|
cd9e578e1c5a75a01b74135473d417360160c32f45f1caddd93102c80f9b23fc | C/C++ | 275 | 7 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
void AGrid_Build(struct measure_type m, struct invert_type r);
int AGrid_Valid(struct measure_type m, struct invert_type r);
int AGrid_Fill_Guesses(double m_r, double m_t, guess_type * guesses, int max_n);
|
1177116fcf4756d84da9189541e52d5f441467775cd3f6902bc4c88c37b2c58b | C/C++ | 278 | 13 | #pragma once
#include <c10/util/DimVector.h>
namespace at {
// Redeclaring 'DimVector' type and size inside 'at' namespace.
// This is done to avoid modifying every use into their 'c10'
// equivalent.
using c10::kDimVectorStaticSize;
using c10::DimVector;
} // namespace at
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.