Skip to content

Instantly share code, notes, and snippets.

View gist:1674139
type PushParser<'a> = Parser<'a, unit>
let ws = spaces
let str s = pstring s
let openList : PushParser<string> = str "(" .>> ws
let closeList : PushParser<string> = ws >>. str ")"
let internal pushProgram, internal pushProgramRef = createParserForwardedToRef()
@fierval
fierval / tensorflow_self_check.py
Last active Jul 28, 2017 — forked from mrry/tensorflow_self_check.py
TensorFlow on Windows self-check
View tensorflow_self_check.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# 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 applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@fierval
fierval / conv.cu
Created Mar 17, 2021 — forked from goldsborough/conv.cu
Convolution with cuDNN
View conv.cu
#include <cudnn.h>
#include <cassert>
#include <cstdlib>
#include <iostream>
#include <opencv2/opencv.hpp>
#define checkCUDNN(expression) \
{ \
cudnnStatus_t status = (expression); \
if (status != CUDNN_STATUS_SUCCESS) { \