Skip to content

Instantly share code, notes, and snippets.

View galv's full-sized avatar

Daniel Galvez galv

View GitHub Profile
@galv
galv / pybind11_dlpack_caster.h
Created October 7, 2022 22:42
Basic custom type caster in pybind11 for
/*
* SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
@galv
galv / .luacheckrc
Created November 1, 2016 21:35
luacheck config file for torch
std = {_G = true, package = true, "_VERSION", "arg", "assert", "bit", "collectgarbage", "coroutine",
"debug", "dofile", "error", "gcinfo", "getfenv", "getmetatable", "io", "ipairs", "jit",
"load", "loadfile", "loadstring", "math", "module", "newproxy", "next", "os", "pairs",
"pcall", "print", "rawequal", "rawget", "rawset", "require", "select", "setfenv",
"setmetatable", "string", "table", "tonumber", "tostring", "type", "unpack", "xpcall",
"nn", "torch", "cutorch", "paths", "pl", "image", "cudnn"}