sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
9cae02638ba4321881e322e04d6a2020db380b46e318603e1d5364eec5fc4162 | C/C++ | 779 | 33 | #ifndef MOTIF_ALIGNMENT_H
#define MOTIF_ALIGNMENT_H
#include <src/jaz/optimization/optimization.h>
#include <vector>
#include <src/jaz/gravis/t4Matrix.h>
class MotifAlignment : public DifferentiableOptimization
{
public:
MotifAlignment(
const std::vector<gravis::d3Vector>& motifPts,
const std::vector<grav... |
77db0a37549b44dcc99e10986c322728e1be0d8bb72129937f512b62c2494974 | C/C++ | 781 | 28 | // Ternary and higher-order pointwise operations
#pragma once
#include <ATen/native/DispatchStub.h>
namespace c10 {
class Scalar;
}
namespace at {
struct TensorIterator;
struct TensorIteratorBase;
namespace native {
using pointwise_fn = void (*)(TensorIterator&, const Scalar& scalar);
using structured_pointwise_f... |
efc9b48898e6c7b8bec788964c4542b652560de12e39a6f22390446543691965 | C/C++ | 781 | 24 | #pragma once
#include <ATen/cuda/CUDAContext.h>
#if defined(USE_ROCM)
#include <hipsparse/hipsparse-version.h>
#define HIPSPARSE_VERSION ((hipsparseVersionMajor*100000) + (hipsparseVersionMinor*100) + hipsparseVersionPatch)
#endif
// cuSparse Generic API spsv function was added in CUDA 11.3.0
// hipSparse supports S... |
d5e9a9c6b7f03daf4f769e99156baf7911af83c3cf5cea2e09885a5ff0e1c716 | C/C++ | 784 | 36 | /*
* Copyright (C) 2008 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/* Get int32_t etc */
#include <stdint.h>
#include <read_struct.h>
typedef float float32;
#define LabView_First_Offset_Table 192L
#define LabView_Entries_per_Offset_Table 128
#define LabView_Offse... |
bd394e19582633d5fe833561ee1bf056feb4a04789d5e2a541431a84ad18aa02 | C/C++ | 786 | 29 | #ifndef DIFFUSION_TENSORS_H
#define DIFFUSION_TENSORS_H
#include <src/jaz/image/buffered_image.h>
#include <src/jaz/math/tensor3x3.h>
class DiffusionTensors
{
public:
static BufferedImage<Tensor3x3<float>> plateDiffusion(
const RawImage<Tensor3x3<float>>& J,
double sigma, double alpha = 0.0);
stati... |
859c5c4ea39e458810106dc69c5c5dfaaa9c3b4632312a9afe1a233bbc9c879d | C/C++ | 790 | 24 | #include <c10/core/TensorOptions.h>
namespace c10::impl {
inline std::optional<MemoryFormat>
check_tensor_options_and_extract_memory_format(
const TensorOptions& options,
std::optional<MemoryFormat> memory_format) {
TORCH_CHECK(
options.requires_grad_opt() != true,
"Operators taking TensorOption... |
95d5ea8dee443bded53ace16547b4d24772636c544b4d892095acf97d776e030 | C/C++ | 796 | 28 | #pragma once
// Enable MIOpen Beta APIs including miopenSetTensorDescriptorV2 which supports
// 64-bit tensor dimensions/strides for large tensors (numel > INT32_MAX).
// Reference: https://github.com/ROCm/MIOpen/pull/2838
#ifndef MIOPEN_BETA_API
#define MIOPEN_BETA_API 1
#endif
#include <miopen/miopen.h>
#include <m... |
14e5f848e0c1afea377acac37dc90a34abc6fc7d6b2466965622ebd09c4ba7a7 | C/C++ | 799 | 29 | #pragma once
#include <ATen/cudnn/Descriptors.h>
#include <ATen/cudnn/Types.h>
#include <ATen/cudnn/Utils.h>
#include <ATen/cudnn/cudnn-wrapper.h>
// Declares utilities used by RNN.cpp and also needed by external consumers
namespace at::native::cudnn_rnn {
TORCH_CUDA_CPP_API std::tuple<Tensor, std::vector<Tensor>>
... |
75f067dcde14c9fba5cb3c6e7e262dfdde66ffb490b820d26d47951054863166 | C/C++ | 807 | 28 | #ifndef HELPER_FUNCTIONS_H
#define HELPER_FUNCTIONS_H
#include <string>
#include <sys/socket.h>
#include <sys/un.h>
#include <iostream>
#include <unistd.h>
#include <chrono>
#include <ctime>
#include <sstream>
#include <iomanip>
#include <cstring>
#include <thread>
// Function to get a timestamp
std::string get_times... |
b89692a2f83b5a88f99cc0ed75b796d1bd8a07382f9a533299fec90545f0aa90 | C/C++ | 807 | 32 | /*
* Copyright (C) 1997 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* Header for the Nihon Kohden NeuroFile II format
*/
#ifndef _NEUROFILE_H_INCLUDED
struct sequence {
unsigned char comment[40];
unsigned char second;
unsigned char minute;
unsigned char hou... |
6b7a2515d8d4c5fcb56809724fc362ae57935cd0ad43ff0ab3c1e27b67eac3b6 | C/C++ | 809 | 24 | //{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by axabffio32.rc
//
#define IDS_EPITAGHEADINGS 1
#define IDS_CONTTAGHEADINGS 2
#define IDS_NONE 3
#define IDS_ENOMESSAGESTR 4
#define IDS_MATHCHANNEL ... |
1e5afcd183d6b174d7e4477444daed0642374790e345f591525df5dbbbb73324 | C/C++ | 813 | 31 | #pragma once
#include <ATen/core/Tensor.h>
#include <ATen/TensorUtils.h>
#include <ATen/native/PoolingChecks.h>
#include <c10/util/irange.h>
namespace at::native {
template<typename scalar_t>
inline std::vector<int64_t> generate_intervals(
scalar_t sample,
int64_t inputSize,
int64_t outputSize,
int64_... |
a6a110f6037c1e14671899e9ee78c06d9858306d5a14e371092f9a753a4cf92a | C/C++ | 817 | 35 | /*
* 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 <inttypes.h>
#include <clog.h>
#ifndef PYTORCH_QNNP_LOG_LEVEL
#define PYTORC... |
037d63bcb4987c34aeb60865eef04d27e7aeb4370335309382712c7844cdf40a | C/C++ | 822 | 40 | #ifndef WAVG_KERNEL_H_
#define WAVG_KERNEL_H_
#include "src/acc/sycl/sycl_virtual_dev.h"
class AccProjectorKernel;
namespace syclKernels
{
template<bool REFCTF, bool REF3D, bool DATA3D, int block_sz>
#ifdef __INTEL_COMPILER
inline
#else
__attribute__((always_inline)) inline
#endif
void wavg(
XFLOAT *g_eulers,
A... |
116fcc78a20222413acd1e33e0cba48d5a4fc3f61c1b90e63dca27fa60d5c9b1 | C/C++ | 823 | 29 | #pragma once
#include <ostream>
#include <string>
#include <c10/core/Scalar.h>
#include <ATen/core/Tensor.h>
namespace c10 {
TORCH_API std::ostream& operator<<(std::ostream& out, Backend b);
TORCH_API std::ostream& operator<<(std::ostream & out, const Scalar& s);
TORCH_API std::string toString(const Scalar& s);
}
na... |
5d27b93c9cc1d0ff7db49c0d96b524d3f5879494c7252393d3c5b31efb6a4fb2 | C/C++ | 823 | 34 | #pragma once
#include <ATen/native/DispatchStub.h>
#include <array>
#include <cstdint>
namespace at {
class TensorBase;
}
namespace at::native {
using forward_2d_fn = void (*) (
const TensorBase &output,
const TensorBase &input,
const TensorBase &grid,
int64_t interpolation_mode,
int64_t paddin... |
d86ff30cb27729e8a0c713fee6534cbf8a4c6a775a2e8175986fd53d48856e4d | C/C++ | 823 | 46 | /*
defines lots of microsoft specific stuff so that it this code can be compiled with a standard gcc.
needs the 3rd party files StdString.h and PortableFileClass.hpp as drop-in replacements for MFC stuff.
This is the 32-bit version
urut@caltech.edu
*/
#ifndef _COMPAT_
#define _COMPAT_
#include "StdString.h"
#incl... |
7b044be196bf6d1ce3af3025c40850ab54212aaa3f690983d72de37a813af6f0 | C/C++ | 829 | 45 | /*
defines lots of microsoft specific stuff so that it this code can be compiled with a standard gcc.
needs the 3rd party files StdString.h and PortableFileClass.hpp as drop-in replacements for MFC stuff.
this version is for Intel 64 bit g++ !
urut@caltech.edu
*/
#ifndef _COMPAT_
#define _COMPAT_
#include "StdStri... |
ed1c37932318fd189e45e8cdddac50a4f567c579d7191857527c7a67cc5e158a | C/C++ | 829 | 21 | #pragma once
#include <cstdint>
// Shared constants for the stateless Philox RNG kernels. Keep these in one
// place so the CPU and CUDA kernels can't drift apart: both must agree for
// results to stay bitwise identical across devices.
namespace at::native {
// Elements produced per Philox 4x32 call: a call yields ... |
0a44788a53a0db534f65be75c55efd5fe03bcc112e35de99d8fd2e550fe8dfd2 | C/C++ | 833 | 21 | /*
* Copyright (C) 2025 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
#include "bf.h"
#include "sox.h"
/* These global variables are defined in write_sound.c together with
* the other SOX bindings: */
extern Bool sox_init_done;
extern char const *myname;
extern exte... |
73d8873623b437c80f4b96a04e8a6165bd886ce81503033d0ce7a565e22b4e4a | C/C++ | 833 | 24 | //***********************************************************************************************
//
// Copyright (c) 1997 Axon Instruments.
// All rights reserved.
// Permission is granted to freely to use, modify and copy the code in this file.
//
//*****************************************************... |
195e02617bd6c96379d1d3aebe37f56d8442baf2a39a1a9c540110e423696639 | C/C++ | 838 | 31 | #pragma once
#include <c10/core/Device.h>
#include <c10/core/Layout.h>
#include <c10/core/MemoryFormat.h>
#include <c10/core/ScalarType.h>
#include <optional>
namespace at {
class Tensor;
namespace native {
bool to_will_alias(
const Tensor& self,
std::optional<ScalarType> dtype,
std::optional<Layout> layo... |
d70c38924b66a54e57f32d1ec588cf25e9f7f647811735bbddc9ea0675946f89 | C/C++ | 843 | 33 | #pragma once
#include <c10/util/Exception.h>
#include <string_view>
namespace at::native {
// These constants control the approximation behavior of gelu function.
enum class GeluType {
None, // Baseline Gelu
Tanh, // Tanh Gelu Approximation
END
};
inline GeluType get_gelutype_enum(const... |
0465f229b1f298c1fbed3f46b60861473f855674138564f95962efb84a977f11 | C/C++ | 844 | 33 | #pragma once
// In order to preserve bc, we make DeprecatedTypeProperties instances unique
// just like they are for Type.
#include <c10/core/Backend.h>
#include <c10/core/ScalarType.h>
#include <memory>
namespace at {
class DeprecatedTypeProperties;
struct TORCH_API DeprecatedTypePropertiesDeleter {
void operat... |
e24500dd89308a3ecb112a2a42d2c8c05f0e9b949eb1b0c9bcdd74b37da37d00 | C/C++ | 846 | 27 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
void Copy_Matrix(int n, double **A, double **B);
void One_Minus(int n, double **A);
void Transpose_Matrix(int n, double **a);
void Diagonal_To_Matrix(int n, double *Diag, double **Mat);
void Right_Diagonal_Multiply(int n, double **A, double *B, doub... |
6a6b2f7f5b13cb2d0d6f97eba31075d1f442517a74e6c0461860b80db03fcd46 | C/C++ | 850 | 32 | #ifndef DYNAMO_DATA_SET_H
#define DYNAMO_DATA_SET_H
#include <src/jaz/tomography/dynamo/dynamo_particle.h>
class DynamoDataSet
{
public:
DynamoDataSet();
DynamoDataSet(std::string filename);
std::vector<DynamoParticle> particles;
std::vector<std::vector<int>> splitByTomogram() const;
int ge... |
6afb82a9d48ccd637d925beaa822bdaaac441a5a9d97544e3ff52730452a4867 | C/C++ | 853 | 21 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
void Inverse_RT(struct measure_type m, struct invert_type *r);
int measure_OK(struct measure_type m, struct invert_type r, int flag_bad);
search_type determine_search(struct measure_type m, struct invert_type r);
void Initialize_Result(struct measure... |
784f5d57f22ade311f1862451ffa508c99ef0ba790d765a0381edc64c9870721 | C/C++ | 857 | 28 | /* This header is designed to be copy-pasted into downstream packages, since it provides
a compatibility layer between the old C struct complex types and the new native C99
complex types. The new macros are in numpy/npy_math.h, which is why it is included here. */
#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_2_COMPLEXCOM... |
2428aaa2d018b0f041e403cd578f70b7b6a2bf5910eefca593c0c57bd706a24e | C/C++ | 866 | 40 | #ifndef IMAGE_NOISE_H
#define IMAGE_NOISE_H
#include "buffered_image.h"
#include <src/complex.h>
#include <src/jaz/math/fft.h>
class ImageNoise
{
public:
template <typename T>
static BufferedImage<tComplex<T>> generateSmoothFourierNoise(int size, double falloff_sigma2);
};
template<typename T>
BufferedImage<... |
bbee13e24d17450d3dace10e38774a1463e74cc59bdf34afaf1e6c6bd4fa9500 | C/C++ | 873 | 49 | #pragma once
#include <c10/core/ScalarType.h>
namespace at::native {
void Unfold3dCopyCPU(
ScalarType dtype,
const void *src,
int64_t C,
int64_t X_D,
int64_t X_H,
int64_t X_W,
int64_t Y_D,
int64_t Y_H,
int64_t Y_W,
int64_t kernel_d,
int64_t kernel_h,
int64_t kernel_w,
... |
04ccf5400ee6bb10a2d44a0a85349fce323f66cafe10ce87bd57c846b29a9812 | C/C++ | 876 | 34 | #pragma once
#include <ATen/native/CompositeRandomAccessorCommon.h>
namespace at::native {
struct TupleInfoCPU {
template <typename ...Types>
using tuple = std::tuple<Types...>;
template <typename ...Types>
static constexpr auto tie(Types&... args) noexcept {
return std::tie(args...);
}
};
template <... |
07a237fe4f2eed9fa51c0b357e7392b68f94a929911ebb631c582b8e207f4159 | C/C++ | 876 | 32 | #pragma once
#include <c10/metal/common.h>
C10_METAL_CONSTEXPR uint32_t kGroupedMMTileN = 64;
C10_METAL_CONSTEXPR uint32_t kGroupedMMTileK = 16;
C10_METAL_CONSTEXPR uint32_t kGroupedMMFewRowsMax = 32;
C10_METAL_CONSTEXPR uint32_t kGroupedMMFewRowsSimdgroups = 16;
C10_METAL_CONSTEXPR uint32_t kGroupedMMFewRowsLaneChun... |
d1f999908947c600e28ac42d45aab8e5f6f95f43db4c2a5f256206759a02c7cf | C/C++ | 877 | 36 | #pragma once
#include <functional>
namespace c10 {
class RegistrationHandleRAII final {
public:
explicit RegistrationHandleRAII(std::function<void()> onDestruction)
: onDestruction_(std::move(onDestruction)) {}
~RegistrationHandleRAII() {
if (onDestruction_) {
onDestruction_();
}
}
Reg... |
e4d639c8c9114794be8ce6d5c1bf78853d00d4e9a5ce55463637107930550566 | C/C++ | 881 | 51 | #ifndef DUAL_CONTRAST_SOLUTION_H
#define DUAL_CONTRAST_SOLUTION_H
#include <src/jaz/image/buffered_image.h>
#include <src/jaz/gravis/t2Vector.h>
template <typename T>
class DualContrastSolution
{
public:
class ConditionInfo
{
public:
ConditionInfo();
T minimum, maximum, mean, std_deviation;
};
... |
3338c06e8de6a309f9f2b4da245114d253a84a1b7863e9d7354305e7c5e380c6 | C/C++ | 885 | 40 | #ifndef FIDUCIALS_H
#define FIDUCIALS_H
#include <src/jaz/gravis/t3Vector.h>
#include <vector>
#include "tomogram.h"
#include <src/jaz/image/detection.h>
#include <src/jaz/image/similarity.h>
#include <src/jaz/math/fft.h>
class Fiducials
{
public:
static std::vector<gravis::d3Vector> read(
const std::st... |
ac2cdb1d4b856ce3d7625882c4627a6198d91689420b7d4e542149a74d1262f2 | C/C++ | 886 | 30 | #pragma once
#include <cstdint>
namespace c10 {
enum class AliasAnalysisKind : uint8_t {
INTERNAL_SPECIAL_CASE,
CONSERVATIVE, // The most conservative alias analysis type, assumes
// side-effects. This is the default analysis.
FROM_SCHEMA,
PURE_FUNCTION
};
#if !defined(_MSC_VER)
constexpr //... |
f7b81fb2f2497c9b567a7d772f23504ad43b272f8457aa48c5e5e4c99c02d0ea | C/C++ | 887 | 25 | #import <ATen/native/metal/MetalConvParams.h>
#import <ATen/native/metal/MetalNeuronType.h>
#import <ATen/native/metal/mpscnn/MPSCNNOp.h>
C10_DIAGNOSTIC_PUSH_AND_IGNORED_IF_DEFINED("-Wdeprecated-declarations")
#import <Foundation/Foundation.h>
C10_DIAGNOSTIC_POP()
API_AVAILABLE(ios(11.0), macos(10.13))
@interface MPSC... |
4ed7a48f1db79c6cc75ff7e47ca8a7f228389173ae83cf9ffe45032dac127424 | C/C++ | 888 | 35 | #pragma once
#include <ATen/core/Tensor.h>
namespace at::native::mps {
void _fused_adam_mps_impl_(
TensorList params,
TensorList grads,
TensorList exp_avgs,
TensorList exp_avg_sqs,
TensorList state_steps,
const double lr,
const double beta1,
const double beta2,
const double weight_... |
999270b0a8ee2df35048f72fea54901f7133aeea6721bc58262667bb9bb0c639 | C/C++ | 888 | 44 | #ifndef IMAGE_DIVERGENCE_H
#define IMAGE_DIVERGENCE_H
#include "raw_image.h"
#include <src/jaz/gravis/t3Vector.h>
class Divergence
{
public:
template<typename T>
static inline void backward3D_inSitu(
const RawImage<gravis::t3Vector<T>>& img, RawImage<T>& dest);
};
template<typename T>
inline void Div... |
c5450a2e67480d0f8196d97fc2ce5ee6eeaf416cd4ad1e19350c4a7e5f5e545e | C/C++ | 890 | 33 | /*
* 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 <stddef.h>
#include <stdint.h>
#include <qnnpack/common.h>
#include <qnnpack/... |
5b3d92950253dc87fc1f002bb6630cd73eddfc8a6f2fecbbb76e936326757681 | C/C++ | 891 | 36 | #pragma once
#include <ATen/core/Tensor.h>
namespace at::native::mps {
void _fused_adamw_mps_impl_(
TensorList params,
TensorList grads,
TensorList exp_avgs,
TensorList exp_avg_sqs,
TensorList state_steps,
const double lr,
const double beta1,
const double beta2,
const double weight... |
e388f3883c758bb3792b4425e21e4aa289250fbc3f7f6370860dac1667cf4312 | C/C++ | 893 | 36 | #ifndef CIRCULAR_FOURIER_FILAMENT_MODEL_H
#define CIRCULAR_FOURIER_FILAMENT_MODEL_H
#include <src/jaz/image/buffered_image.h>
#include "filament_model.h"
class CircularFourierFilamentModel : public FilamentModel
{
public:
CircularFourierFilamentModel(
double length,
const std::vector<gravis::d4Matrix>& ... |
5e8fa10c3f67b6dc9de3a747f8a66b33ccf692d6be520849a2720c67b37b6910 | C/C++ | 898 | 36 | #ifndef RELION_TOMO_FCC_H
#define RELION_TOMO_FCC_H
#include <src/jaz/image/buffered_image.h>
#include <src/jaz/tomography/tomogram.h>
#include <src/jaz/tomography/particle_set.h>
class FCC
{
public:
static BufferedImage<double> compute(
const ParticleSet& dataSet,
const std::vector<ParticleIndex>& par... |
6e673b20ec8efd7243929beb5e192509e4c1f94dedd502f26976e21185108f99 | C/C++ | 902 | 34 |
#ifndef BYTESWAP_H
#define BYTESWAP_H
#include "longdef.h"
//------------------------ Byte Swap Routines -------------------------
// swap bytes in a short (2 byte) variable
void ByteSwapShort( short *shortNumber );
// swap bytes in an int (4 byte) variable
void ByteSwapLong( AXGLONG *longNumber );
// swap bytes... |
5d98a4191b3d1225aeaccb43242f9cdec6d0b71baa93a0c0570dd10dd8171a4a | C/C++ | 905 | 42 | #pragma once
#include <ATen/native/DispatchStub.h>
#include <cstdint>
namespace at {
class Tensor;
namespace native {
using forward_fn = void (*)(
const Tensor& /* X */,
const Tensor& /* gamma */,
const Tensor& /* beta */,
int64_t /* N */,
int64_t /* C */,
int64_t /* HxW */,
int64_t /* g... |
d70802af569808709a7ef50848a3a446ae142aadf65dbd81bb9bc05617a39ceb | C/C++ | 907 | 22 | #pragma once
#include <ATen/functorch/Interpreter.h>
namespace at::functorch {
// This is the interpreter that handles the functionalize() transform.
// See NOTE: [functorch interpreter stack] for more details.
struct FunctionalizeInterpreterPtr {
explicit FunctionalizeInterpreterPtr(const Interpreter* base): base... |
146daed64542d8fce8536baa2014b59cbdbfc317ae1f5929df6500d9e36b8da4 | C/C++ | 910 | 23 | #include <c10/macros/Macros.h>
C10_DIAGNOSTIC_PUSH_AND_IGNORED_IF_DEFINED("-Wdeprecated-declarations")
#import <Metal/Metal.h>
#import <MetalPerformanceShaders/MetalPerformanceShaders.h>
C10_DIAGNOSTIC_POP()
#include <string>
API_AVAILABLE(ios(11.0), macos(10.13))
@interface MetalContext : NSObject
@property(nonatomi... |
9d45d7a1d2f842b3061dbd3157d4290e3109b06ebb803e861e8b087cd9eb7f10 | C/C++ | 914 | 30 | #include <ATen/core/TensorBase.h>
// Broadcasting utilities for working with TensorBase
namespace at {
namespace internal {
TORCH_API TensorBase expand_slow_path(const TensorBase& self, IntArrayRef size);
} // namespace internal
inline c10::MaybeOwned<TensorBase> expand_size(
const TensorBase& self,
IntArrayR... |
08a289f43b445fc2191c53ed408dee5c893afa4327490fa86b29fed210078073 | C/C++ | 915 | 29 | #ifndef SPIKE_EVENT_H
#define SPIKE_EVENT_H
#define WAVEFORM_LENGTH 45
#include <array>
#include <cstdint>
#include <cstring> // Ensure this is included for memset
#pragma pack(push, 1) // Ensure no padding issues
struct SpikeEvent {
uint8_t channel_id; // Channel ID where the spike was det... |
d44b9de18afa0c4438a2e31c5be3c1df017764b21301c9cabadea48c2d284dd6 | C/C++ | 921 | 29 | #pragma once
#include <ATen/core/Tensor.h>
#include <ATen/core/ivalue.h>
struct EmbeddingPackedParamsBase : public torch::jit::CustomClassHolder {
virtual at::Tensor embeddingbag_byte(
const at::Tensor& indices,
const std::optional<at::Tensor>& offsets,
bool pruned_weights,
const std::optional<at::T... |
b1133f340d6e4f27ec3ca94ccd3889448bbc5738d8d165d6357d303597eed919 | C/C++ | 924 | 22 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
#define MAX_FLUENCE_INTERVALS 200 \
\
void RT_Matrices(int n, struct AD_slab_type *slab, struct AD_method_type *method, double **R, double **T);
void RT(int n, struct AD_slab_type *slab, double *UR1, double *UT1, double *URU, double *UTU);
void ez_R... |
68a10e687b9358a4d686671c875ea84e0bffbcd0f645b91d8faa1c367c4c23ef | C/C++ | 927 | 35 | #include <ATen/core/Tensor.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/Functions.h>
#else
#include <ATen/ops/roll.h>
#endif
#include <c10/util/Exception.h>
namespace at::native {
static inline Tensor roll_common(
const Tensor& self,
IntArrayRef shifts,
IntArrayRef dims) {
TORCH_CHECK(!shifts.emp... |
c3c6538fe54fe7113934c1c40065ea644eb880c9be8b5e3516239d59d35053b4 | C/C++ | 927 | 26 | #pragma once
#include <c10/core/impl/LocalDispatchKeySet.h>
namespace at::impl {
// VmapMode contains a thread local count of how many nested vmaps
// we are currently inside. That number is known as the `vmap level`.
// VmapMode is used in the implementation of the Python `torch.vmap` API.
//
// NOTE: this is NOT t... |
32e263a6ac15141aaa1dab6da323d04d80c514c4dd73059a4d665547cbbc362a | C/C++ | 928 | 33 | /* #undef NPY_HAVE_ENDIAN_H */
#define NPY_SIZEOF_SHORT 2
#define NPY_SIZEOF_INT 4
#define NPY_SIZEOF_LONG 8
#define NPY_SIZEOF_FLOAT 4
#define NPY_SIZEOF_COMPLEX_FLOAT 8
#define NPY_SIZEOF_DOUBLE 8
#define NPY_SIZEOF_COMPLEX_DOUBLE 16
#define NPY_SIZEOF_LONGDOUBLE 8
#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 16
#define NP... |
d00569025e37a65b4c035019aa18c9cf4430b431fc81bb6d115faa69d840fe24 | C/C++ | 934 | 31 | #pragma once
#include <ATen/cuda/Exceptions.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/CUDAConfig.h>
#include <ATen/cuda/PinnedMemoryAllocator.h>
namespace at::native {
static inline int cuda_int_cast(int64_t value, const char* varname) {
auto result = static_cast<int>(value);
TORCH_CHECK(static_c... |
80af5d7e1830bf443be844e7962027b80b6811f029779ae51859bf857a1ae69c | C/C++ | 935 | 28 | #pragma once
#include <ATen/native/DispatchStub.h>
#include <cstdint>
namespace at {
class Tensor;
namespace native {
using forward_fn = void (*)(const Tensor&, const Tensor&);
using backward_fn = void(*)(const Tensor &, const Tensor &, const Tensor&);
DECLARE_DISPATCH(forward_fn, softmax_lastdim_kernel)
DECLARE_D... |
f71d4755907ea9ebb671fa2b07103de639ad496f8693502f1c2f7d891e783c6a | C/C++ | 946 | 28 | #pragma once
#include <c10/metal/common.h>
template <typename idx_t = int64_t>
struct PadParams {
::c10::metal::array<idx_t, 3> input_sizes;
::c10::metal::array<idx_t, 3> output_sizes;
::c10::metal::array<idx_t, 3> left_pad;
::c10::metal::array<idx_t, 5> input_strides;
::c10::metal::array<idx_t, 5> output_st... |
7b919b668039caf80326566b6bca06ee4faabec93f8c73436688b88bcdd2fb7d | C/C++ | 947 | 36 | #pragma once
#include <ATen/native/CompositeRandomAccessorCommon.h>
#include <thrust/swap.h>
#include <thrust/tuple.h>
namespace at { namespace native {
struct TupleInfoCPU {
template <typename ...Types>
using tuple = thrust::tuple<Types...>;
template <typename ...Types>
static constexpr auto tie(Types&... ... |
748b57d32cfe3804236e19a21442c97d8cb2317cdfa53bf3192743bb12f0ffe1 | C/C++ | 950 | 34 | /*
* 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 <stddef.h>
#include <stdint.h>
#include <qnnpack/common.h>
#include <qnnpack/... |
6d2e9df8f3866ae6ad6440d1963c78e8542c1b0af74a43f7ca81b414dd47f454 | C/C++ | 955 | 22 | /***************************************************************************
*
* 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... |
9ff421eca8a3b8513d608981af27a38d3a0cef7e77d3720dd4af4b6f07217b10 | C/C++ | 957 | 25 | #pragma once
#include <ATen/functorch/Interpreter.h>
namespace at::functorch {
// This is the interpreter that handles the functionalize() transform.
// See NOTE: [functorch interpreter stack] for more details.
struct VmapInterpreterPtr {
explicit VmapInterpreterPtr(const Interpreter* base): base_(base) { TORCH_IN... |
c9f3f44815c621ca74699ab83794ea345f170d2988aa010d65e19a738c5df629 | C/C++ | 960 | 40 | #pragma once
#include <ATen/jit_macros.h>
#if AT_USE_JITERATOR()
#include <c10/macros/Export.h>
#include <c10/util/SmallVector.h>
#include <ATen/core/Tensor.h>
#include <string>
#include <vector>
namespace at::cuda {
TORCH_CUDA_CPP_API c10::SmallVector<at::Tensor> CompileAndLaunchKernel(
const std::string& code_... |
ba5c757d19306ce4ef09085fa969d86d01efa013705d98163159be133e958ea2 | C/C++ | 962 | 21 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
void MC_Set_Seed(unsigned long seed);
void MC_Lost(struct measure_type m, struct invert_type r, long n_photons,
double *ur1, double *ut1, double *uru, double *utu,
struct lost_type *lost_r, struct lost_type *lost_t, double *utu_lost);
void MC_... |
8f9ecdd5fa79eb82dba30b7efc0b9c6dadf16c1e8ed5f6dedd9016121100006d | C/C++ | 964 | 44 | #pragma once
#include <c10/core/QScheme.h>
// Forward declarations of core ATen types used in dispatch functions
namespace c10 {
template<typename T>
class List;
template<typename T>
class IListRef;
class Stream;
class Scalar;
class SymInt;
class SymIntList;
struct Storage;
struct TensorOptions;
template <typename T>... |
deece61f97f8b0f6dba37cdca9c91bfa4f41ee4da5a0dd05419c25720ad23162 | C/C++ | 968 | 29 | // Copyright © 2022 Apple Inc.
#pragma once
#include <ATen/core/Tensor.h>
namespace at::native::mps {
at::Tensor& mps_copy_(
at::Tensor& dst,
const at::Tensor& src,
bool non_blocking);
void copy_blit_mps(void* dst, const void* src, size_t size);
// General MPS->MPS copy: handles arbitrary strides, a dt... |
20f39c44c77b61b78baef1ca21856d865c6fdf644375922952719fd41d4772af | C/C++ | 970 | 37 | #pragma once
#include <ATen/core/Tensor.h>
namespace at::native::mps {
void _fused_adamw_amsgrad_mps_impl_(
TensorList params,
TensorList grads,
TensorList exp_avgs,
TensorList exp_avg_sqs,
TensorList max_exp_avg_sqs,
TensorList state_steps,
const double lr,
const double beta1,
con... |
40d06c64e9e4cf56eea21d08d8784a1b27f7bb11a1f0d19c1eaf80b400de8fb5 | C/C++ | 974 | 25 | #pragma once
#include <ATen/ATen.h>
#include <ATen/core/op_registration/op_registration.h>
#include <torch/library.h>
namespace at {
// If an operator doesn't have a batching rule implemented then we fallback
// to this implementation. The fallback only works on out-of-place operators
// that return only tensors with... |
33ce3c1836077066d7d36aed2c380e10885db133b31ad266a0aed73e567ce75c | C/C++ | 979 | 48 | #pragma once
#include <ATen/native/DispatchStub.h>
#include <c10/core/ScalarType.h>
#include <cstdint>
namespace at::native {
using unfold2d_copy_fn = void (*)(
ScalarType dtype,
void *finput,
const void *input,
int64_t kH,
int64_t kW,
int64_t dH,
int64_t dW,
int64_t padH,
int64_t... |
f08ebb2811934cd598cd514fc368523ca6aaf0262013bb3cafb341bbde91fede | C/C++ | 981 | 38 | #pragma once
#include <ATen/core/Tensor.h>
namespace at::native::mps {
void _fused_adam_amsgrad_mps_impl_(
TensorList params,
TensorList grads,
TensorList exp_avgs,
TensorList exp_avg_sqs,
TensorList max_exp_avg_sqs,
TensorList state_steps,
const double lr,
const double beta1,
cons... |
be756058ba25c15b77b36c6ec13496afba5935c4a5af25d48410d18056ca38bf | C/C++ | 986 | 43 | #pragma once
#include <ATen/ATen.h>
#include <ATen/Config.h>
#if AT_MKLDNN_ENABLED()
#include <ideep/tensor.hpp>
#include <utility>
namespace at::native::mkldnn {
struct ContextConv final {
ideep::tensor weight_packed_;
std::optional<at::Tensor> at_bias_;
std::vector<int64_t> padding_;
std::vector<int64_t>... |
4c0b7f92224ced7ac06ecfff59387e332b97dd70325bcbd0c2ec2b48f3078f5a | C/C++ | 998 | 56 | #ifndef GAUSS_PROCESS_H
#define GAUSS_PROCESS_H
#include <src/matrix2d.h>
#include <src/jaz/gravis/t3Vector.h>
class GpKernel;
class GaussianProcess
{
public:
struct Basis
{
std::vector<double> eigenvectors, eigenvalues;
};
static Matrix2D<double> computeCovariance(
const std::vector<gravis::d3... |
8916bba6e6f71232c80632726be7760e665c425a920209ba79d0b4d866284036 | C/C++ | 1,001 | 36 | #ifndef _PYSTFIO_H
#define _PYSTFIO_H
#include "libstfio/stfio.h"
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
#include <numpy/arrayobject.h>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#define array_d... |
32a4acc880216c8ed3eca008c73126c34fa3bdd92f5d2322289ec966a74b9934 | C/C++ | 1,003 | 59 | #ifndef NO_MOTION_MODEL_H
#define NO_MOTION_MODEL_H
#include <src/jaz/gravis/t3Vector.h>
class NoMotionModel
{
public:
NoMotionModel();
inline void updatePosition(
const double* x,
int particle_index,
gravis::d3Vector& position) const;
inline void updateDataTermGradient(
const gravis::d3Vect... |
ec10644ac78c8cf857c40aa72a6c9136a8bf1b080fc34e24d83e84b323d7a338 | C/C++ | 1,004 | 14 | // Copyright © 2022 Apple Inc.
#define AT_DISPATCH_MPS_TYPES(TYPE, NAME, ...) \
AT_DISPATCH_SWITCH( \
TYPE, \
NAME, ... |
03b81a4bafac7b1a2052fd1a631f07f4461b459c6f68d5f236d832e28bda65f3 | C/C++ | 1,007 | 24 | #pragma once
#include <ATen/ATen.h>
namespace at::caching {
// Some systems (just cudagraphs currently) will persist a static tensor output
// whose TensorImpl does not change across iterations. For these tensors caching
// dtype conversions is invalid. Additionally, there will be an extra reference
// count to thes... |
113ac16b5235c2b9d78fcefa889957c42a41d2bacc50d344639414b305220ce3 | C/C++ | 1,015 | 32 | #pragma once
#include <ATen/core/Tensor.h>
#include <cstdint>
namespace at::native {
Tensor& embedding_bag_byte_rowwise_offsets_out(
Tensor& output,
const Tensor& weight,
const Tensor& indices,
const std::optional<Tensor>& offsets_in,
const bool /* scale_grad_by_freq */,
const int64_t /* mode *... |
dd6e5ff6e0af5f59d7c079f3a45045ecfaeabe2e12e6c150503fd3ea915ea49b | C/C++ | 1,016 | 34 | #pragma once
#include <c10/macros/Macros.h>
namespace at {
TORCH_API bool get_dtensor_allow_implicit_replication();
TORCH_API void set_dtensor_allow_implicit_replication(bool enabled);
struct DTensorAllowImplicitReplication {
DTensorAllowImplicitReplication()
: prev_dtensor_allow_implicit_replication_(
... |
8a791aad45903ab3134d5fab0dcc0fc6777aee10dd03fa48c475e60ace0c7b15 | C/C++ | 1,022 | 35 | /*
* Copyright (C) 1993,1994 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* source.h defines source description structures
*/
#include <array.h>
/*
* At present, only dipolar sources are supported. The main source_desc
* structure holds nrofsources and a poi... |
7bccd0441ae2924c43765474cd01fc3581efd9e2f5cde194925ddc1c65c9e242 | C/C++ | 1,025 | 36 | /* FILE Deffs.h */
/* Deffs.h file for macros */
#include <stdio.h>
#include "../anal.h"
#include "Function.h"
#include "../config.h"
#include <math.h>
#include <fcntl.h> /* Open/close */
#include <sys/types.h> /* stat() */
#include <sy... |
5feb15d48e22eb1508d5b7c24c1473cb112064421640492db2ae15c9f931afaf | C/C++ | 1,026 | 46 | #ifndef TOMO_OPTIMISATION_SET_H
#define TOMO_OPTIMISATION_SET_H
#include <src/jaz/tomography/reference_map.h>
class OptimisationSet
{
public:
void read(
IOParser& parser, bool showOptimisationSet,
bool showParticles, bool particlesMandatory,
bool showTomograms, bool tomogramsMandatory,
... |
948a0c4d8c39080f510b0b953ff242c3cb77077af07fdc49d6df5cc25b2b46d1 | C/C++ | 1,026 | 42 | #ifndef PDB_HELPER_H
#define PDB_HELPER_H
#include <src/jaz/gravis/t3Vector.h>
#include <src/assembly.h>
#include <vector>
#include <map>
#include <string>
#include <set>
class PdbHelper
{
public:
static std::map<std::string,std::vector<gravis::d3Vector>>
groupAtomsByName(
const Assembly& assembly);
st... |
46634053ec65a94cc57c40dc5395d85c95d42ceab23ff9c7853ac96faeb21073 | C/C++ | 1,028 | 22 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
void Add(int n,
double **R01, double **R10, double **T01, double **T10,
double **R12, double **R21, double **T12, double **T21, double **R02, double **R20, double **T02, double **T20);
void Add_With_Sources(int n,
double **R01, double **R10... |
ada5904d6105fee5a1bb02dfcc30e099507d2bd2c96dfef425c6ff030ac26f28 | C/C++ | 1,030 | 25 | //***********************************************************************************************
//
// Copyright (c) 1993-1997 Axon Instruments.
// All rights reserved.
// Permission is granted to freely to use, modify and copy the code in this file.
//
//************************************************... |
48f80c8bd54e81310980e5c6ae37bb47cd751592c16644f138369a85fa7aab23 | C/C++ | 1,037 | 43 | #pragma once
#include <ATen/WrapDimUtils.h>
#include <c10/core/TensorImpl.h>
#include <bitset>
#include <sstream>
namespace at {
// This is in an extra file to work around strange interaction of
// bitset on Windows with operator overloading
constexpr size_t dim_bitset_size = 64;
inline std::bitset<dim_bitset_size... |
7a1564bbbbc8136ad580804fe2bbf9b3aa8fac8fd5eb625cfc19c114bbc74f4b | C/C++ | 1,050 | 36 | #ifndef ATOMIC_ADD_FLOAT
#define ATOMIC_ADD_FLOAT
#if (defined(__x86_64__) || defined(__i386__) || defined(__aarch64__))
#include <ATen/native/cpu/Intrinsics.h>
#else
#define _mm_pause()
#endif
#include <atomic>
static inline void cpu_atomic_add_float(float* dst, float fvalue)
{
#if defined(__cpp_lib_atomic_ref) && ... |
05eb2ef5da7e874d6b2ae606e3cc094e12d5d572fe518c830949ab2412d474d4 | C/C++ | 1,058 | 50 | #pragma once
#include <c10/metal/common.h>
// Source element strides of the OIDHW weight view (may be non-contiguous).
struct ConvWeightPermuteParams {
uint32_t output_channels;
uint32_t input_channels_per_group;
uint32_t kernel_height;
uint32_t kernel_width;
uint32_t output_channel_stride;
uint32_t input_... |
48cfaaef4808216ef552db4dc44900879c6f7ed5fd59f2d19d999891f869113d | C/C++ | 1,058 | 41 | #pragma once
#include <ATen/Tensor.h>
#include <ATen/native/mkldnn/Common.h>
#include <ATen/native/mkldnn/OpContext.h>
#if AT_MKLDNN_ENABLED()
namespace at::native::mkldnn::internal::convolution {
c10::intrusive_ptr<mkldnn::ConvOpContext> createConvPrePackOpContext(
Tensor weight,
std::optional<Tensor> bias... |
db3005888b6bb5b148c716fb9a19038a8c3496bfd5ed379cc0c57063af888250 | C/C++ | 1,059 | 43 | #ifndef MOTIF_REFINEMENT_H
#define MOTIF_REFINEMENT_H
#include "motif_detection.h"
#include <src/jaz/optimization/optimization.h>
#include <vector>
#include <src/jaz/gravis/t4Matrix.h>
class Motif;
class PointCloud;
class MotifRefinement : public DifferentiableOptimization
{
public:
MotifRefinement(
const ... |
e45edc61525f51dbe210622ee491c41dd74069ab185e65cfe89910543757e13e | C/C++ | 1,059 | 21 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
#define TOP_BOUNDARY 0
#define BOTTOM_BOUNDARY 1 \
void Init_Boundary(struct AD_slab_type slab, int n, double *R01, double *R10, double *T01, double *T10, char boundary);
void Boundary_RT(double n_i, double n_g, double n_t, int n, double b, double *R,... |
24718ef5297ca49df08382a2958db671a9ce5eb3e4c38ae9f72f2fcf27a57fab | C/C++ | 1,061 | 49 | #ifndef TOMO_CTF_HELPER_H
#define TOMO_CTF_HELPER_H
#include <src/ctf.h>
#include <src/jaz/gravis/t4Matrix.h>
class TomoCtfHelper
{
public:
static std::vector<CTF> loadCtffind4(
std::string path,
int imageCount,
double voltage = 300.0,
double Cs = 2.2,
double Q0 = 0.1,
double Bfac = 0.0,
... |
8965b988fb8e1fb2b77ec506362497aee7e152984831525bf80a0dc4b41f4fcf | C/C++ | 1,061 | 18 | #ifndef PSEUDOVARPARTIAL_H
#define PSEUDOVARPARTIAL_H
#include<RcppArmadillo.h>
// [[Rcpp::depends(RcppArmadillo)]]
Rcpp::List pseudovarPartial(arma::mat x, Rcpp::List rlevels, Rcpp::StringVector cnames);
Rcpp::List pseudovarPartial_C(arma::mat Z, Rcpp::List u_indices);
Rcpp::List pseudovarPartial_G(arma::mat Z, cons... |
e240152fd9711f612c0cb0978286dd81602e26dbb70e17a939659ed7212b55ad | C/C++ | 1,061 | 35 | /*
* 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 <gtest/gtest.h>
namespace qnnpack::testing {
enum class Mode {
Static,
R... |
ad56e4a928db86e4176ab285d839dd7a6933e1acbad334c30913ee031bd985ae | C/C++ | 1,062 | 37 | /*
* 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 <stddef.h>
#include <stdint.h>
#include <qnnpack/common.h>
#include <qnnpack/... |
b81e9b475312907e22c7e063603e173bf4786da4ed48e545baab8fb7d78ed2cf | C/C++ | 1,062 | 26 | /****************************************************************************\
* *
* Written 1990 - 1995 by AXON Instruments Inc. *
* *
... |
55f72f49647f1a32e596f44232888b3504b8a469326e07d0ae5684a46266da80 | C/C++ | 1,070 | 33 | #pragma once
#include <c10/core/SafePyObject.h>
#include <c10/macros/Export.h>
#include <vector>
namespace at::impl {
// TLS for torch.autograd.graph.node_creation_hook. Lives in ATen (rather than
// torch/csrc/autograd) so that at::ThreadLocalState can snapshot it across
// thread boundaries, e.g. into autograd eng... |
ac7c9acb7069323f1cb8c9aaa763b9af020570100ce4b43fc28756900e153f6f | C/C++ | 1,071 | 58 | #ifndef TRAJECTORY_H
#define TRAJECTORY_H
#include <src/jaz/gravis/t3Vector.h>
#include <vector>
class ParticleIndex;
class ParticleSet;
class Trajectory
{
public:
static std::vector<Trajectory> read(
std::string filename,
ParticleSet& particleSet);
static void write(
const std::vector<std::vect... |
de749198e30e1b2b0d0e2899806b411cac1837fda1e5310af1bb89bc4784f0de | C/C++ | 1,072 | 46 | #ifndef ASTIGMATISM_FIT_H
#define ASTIGMATISM_FIT_H
#include <src/jaz/optimization/optimization.h>
#include <src/jaz/image/buffered_image.h>
class AstigmatismFit : public Optimization
{
public:
AstigmatismFit(const std::vector<BufferedImage<float>>& spectra,
int num_threads, int k0, int k1,
... |
1bd7892245b1e3a575b7951cb1a318d7a3ae2033e430d72eb376faa58d10c530 | C/C++ | 1,074 | 32 | /***************************************************************************
*
* 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... |
ee5df84f897e20fc033f8de2f88e7f2cc5fde340c0592a01d631707cdfc44996 | C/C++ | 1,075 | 42 | #pragma once
#include <ATen/mkl/Exceptions.h>
#include <mkl_dfti.h>
#include <ATen/Tensor.h>
namespace at::native {
struct DftiDescriptorDeleter {
void operator()(DFTI_DESCRIPTOR* desc) {
if (desc != nullptr) {
MKL_DFTI_CHECK(DftiFreeDescriptor(&desc));
}
}
};
class DftiDescriptor {
public:
void... |
228d88dc8117e412d84851773c3dc07fb294b47129ce9d2b93ceb9a44773f519 | C/C++ | 1,076 | 56 | /* FILE deffs.h */
#define NEW_TOUCH 01 /* For head.h, head.flag */
#define DELTA_WRITE 02 /* analog data */
#define int short
typedef struct { /* Available to all! */
int time;
int type;
int one;
int two;
int three;
} EVENT;
/* TOUCH or ARMDATA: used by switch,file,graph */
typedef struct { ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.