         print("")*/
 
         /*var buf = Array<Float>(count: 112 * 112 * 4, repeatedValue: 0)
-        net.conv1_7x7_s2.getBytes(&buf, bytesPerRow: 112*4, bytesPerImage: 112*112*4,
+        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 {
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    func testInitMetal() {
        // This is an example of a functional test case.
        // Use XCTAssert and related functions to verify your tests produce the correct results.
        print("Hello, I am a test!")
        let metalDevice = MTLCreateSystemDefaultDevice()
        XCTAssert(metalDevice != nil)
    }

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


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