Video Tutorial – Using the DeepLearningKit example iOS app

By | February 14, 2016

This video shows how to use the standalone (very simple) example iOS app that comes with DeepLearningKit, the code can be found (as part of the main repository) at


import UIKit

class ViewController: UIViewController {
var deepNetwork: DeepNetwork!

override func viewDidLoad() {
// Do any additional setup after loading the view, typically from a nib.

override func viewDidAppear(animated: Bool) {
deepNetwork = DeepNetwork()

// conv1.json contains a cifar 10 image of a cat
let conv1Layer = deepNetwork.loadJSONFile("conv1")!
let image: [Float] = conv1Layer["input"] as! [Float]

var randomimage = createFloatNumbersArray(image.count)
for i in 0..

Leave a Reply

Your email address will not be published. Required fields are marked *