- Author: Richard Wei
- Date: October 2018
This document is written for both the machine learning community and the Swift programming language design community, with a strong focus on language design.
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04 | |
RUN apt-get update && apt-get install -y build-essential git cmake python3-pip libmpfr-dev libgmp-dev wget curl | |
RUN pip3 install pyyaml | |
RUN pip3 install typing | |
RUN cd && \ | |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh |
# nim cpp --app:lib .\obsplugin.nim | |
import nimline | |
cppincludes("obs-studio/libobs") | |
defineCppType(ObsData, "obs_data_t" , "obs-module.h") | |
defineCppType(ObsModule, "obs_module_t" , "obs-module.h") | |
defineCppType(ObsSource, "obs_source_t" , "obs-module.h") | |
defineCppType(ObsSourceInfo, "struct obs_source_info" , "obs-module.h") |
window.onload = function() { | |
var v0 = new Vertex("0"); | |
var v1 = new Vertex("1"); | |
var v2 = new Vertex("2"); | |
var v3 = new Vertex("3"); | |
var v4 = new Vertex("4"); | |
var v5 = new Vertex("5"); | |
var v6 = new Vertex("6"); | |
var v7 = new Vertex("7"); |
import strformat | |
import torch | |
import torch/[nn, optim] | |
let inputs = torch.tensor([ | |
[0.0, 0.0], | |
[0.0, 1.0], | |
[1.0, 0.0], | |
[1.0, 1.0], | |
]) |
This document is written for both the machine learning community and the Swift programming language design community, with a strong focus on language design.
diff --git a/caffe2/CMakeLists.txt b/caffe2/CMakeLists.txt | |
index 07f69d9f7..1eeb082c2 100644 | |
--- a/caffe2/CMakeLists.txt | |
+++ b/caffe2/CMakeLists.txt | |
@@ -64,39 +64,41 @@ endif() | |
# ---[ Caffe2 build | |
# Note: the folders that are being commented out have not been properly | |
# addressed yet. | |
-add_subdirectory(proto) | |
-add_subdirectory(contrib) |
function await(continuation) | |
local coro = coroutine.running() | |
local result | |
local async | |
continuation(function(err, value) | |
if async == nil then | |
async = false | |
result = value | |
if err then error(err) end | |
return |