% Copyright 2018-2019 The MathWorks, Inc.

function out = googlenet_predict(in) 
%#codegen

persistent mynet;

if isempty(mynet)
    % Pass in name of the function 'resnet50' that returns a DAG network
    % for GoogLeNet model.
    mynet = coder.loadDeepLearningNetwork('googlenet','googlenet');
end

% pass in input   
out = mynet.predict(in);
