$ python plaidbench.py --train --batch-size 8 vgg16
/Users/fak/plaidml/lib/python2.7/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Running 1024 examples with vgg16, batch size 8
Loading CIFAR data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Given previous tokens, predict the next token (and runners up) | |
let predictNextToken (previousKinds : SyntaxKind[]) : Prediction[] = | |
if ios11 then | |
let model : MLModel = model.Value // Load the cached model | |
let mutable predictions : Prediction[] = [| |] | |
// RNNs require external memory | |
let mutable lstm_1_h : MLMultiArray = null | |
let mutable lstm_1_c : MLMultiArray = null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let getRefInfo (x : SyntaxNode) (ident : SyntaxToken) (isO : bool) = | |
let si = semantics.GetSymbolInfo (x) | |
if si.Symbol <> null then | |
Some (ident, si.Symbol, true, isO) | |
else None | |
let getDefInfo (x : SyntaxNode) (ident : SyntaxToken) (isO : bool) = | |
let s = semantics.GetDeclaredSymbol (x) | |
if s <> null then | |
Some (ident, s, false, isO) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace Praeclarum | |
{ | |
/// <summary> | |
/// The type of <see cref="ListDiffAction{S,D}"/>. | |
/// </summary> | |
public enum ListDiffActionType | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Specialized; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Threading; | |
using System.Linq; | |
using System.Diagnostics; | |
using System.Threading.Tasks; | |
namespace Praeclarum |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Drone.Control.Matrix | |
open System | |
type Matrix = | |
| MZero of int * int | |
| MEye of int * float | |
| MArray of float[,] | |
| MTranspose of Matrix | |
| MDiagonal of float[] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Drone.Control.Ukf | |
open System | |
open Drone.Control.Matrix | |
type IDiscreteModel = | |
abstract Process : Matrix -> Matrix | |
abstract Observe : Matrix -> Matrix | |
abstract InitialState : Matrix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"Vibrantly Dark", | |
"version":"1.0", | |
"description":"A dark theme with vibrant highlights. Inspired by One Dark Vibrant from Atom.", | |
"originator":"Frank A. Krueger (@praeclarum)", | |
"colors":[ | |
{"name": "Background(Read Only)", "color":"#2A2A2A" }, | |
{"name": "Search result background", "color":"#005F60" }, | |
{"name": "Search result background (highlighted)", "color":"#007F80" }, | |
{"name": "Fold Square", "color":"#63677F", "secondcolor":"#2A2A2A" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UIKit; | |
using Microsoft.CodeAnalysis; | |
using System.Linq; | |
using Microsoft.CodeAnalysis.Host; | |
using System.Collections.Generic; | |
namespace RR | |
{ | |
public class TestVC : UITableViewController |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Parsing | |
/// Remember where we are in the code. | |
/// This is a struct to keep memory pressure down. | |
/// (Significant perf improvements on iOS.) | |
type ParseState = | |
struct | |
val Code : string | |
val Index : int | |
new (code : string, index : int) = |