This file contains 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
// "net/http" package tygo output | |
// Code generated by tygo. DO NOT EDIT. | |
////////// | |
// source: client.go | |
/** | |
* A Client is an HTTP client. Its zero value (DefaultClient) is a | |
* usable client that uses DefaultTransport. | |
* The Client's Transport typically has internal state (cached TCP |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
from __future__ import division | |
import theano | |
import theano.tensor as T | |
import lasagne | |
class MirrorPadLayer(lasagne.layers.Layer): | |
def __init__(self, incoming, width, batch_ndim=2, **kwargs): |
This file contains 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
from __future__ import division | |
import math | |
from multiprocessing import Process, Queue, JoinableQueue, Value | |
from threading import Thread | |
from functools import partial | |
class ParallelBatchIterator(object): | |
""" | |
Uses a producer-consumer model to prepare batches on the CPU in different processes or threads (while you are training on the GPU). |
This file contains 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
public Plane gamePlane; | |
// Use this for initialization | |
void Start () { | |
gamePlane = new Plane(Vector3.zero, Vector3.up, Vector3.right); | |
} | |
// Update is called once per frame | |
void Update () { | |