 
         self.measureBlock {
             for _ in 1...1 {
-                net.forward(input!)
+                self.net!.forward(input!)
             }
         }
     }

        print("")*/

        /*var buf = Array<Float>(count: 112 * 112 * 4, repeatedValue: 0)
        net.conv1_7x7_s2.getBytes(&buf, bytesPerRow: 112*4, bytesPerImage: 112*112*4,
            fromRegion: MTLRegionMake2D(0, 0, 112, 112), mipmapLevel: 0, slice: 31)

        print("buf[341]=\(buf[341])")



class MetalDetectorTests: XCTestCase {
    var engine: Engine?
    var net: Net?

    override func setUp() {
        engine = Engine()
        net = Net(engine: engine!, config: GoogLeNetConfig())
        super.setUp()
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }

    func argMax(arr : [Float]) -> (Int, Float) {
