# Call for a function to initialize vgg\_model

**URL:** <https://discourse.julialang.org/t/call-for-a-function-to-initialize-vgg-model/16597>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 21, 2018, 12:00pm UTC](https://discourse.julialang.org/t/call-for-a-function-to-initialize-vgg-model/16597 "2018-10-21T12:00:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lannisite110](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@lannisite110](https://discourse.julialang.org/u/lannisite110)\
**Post date:** [October 21, 2018, 12:00pm UTC](https://discourse.julialang.org/t/call-for-a-function-to-initialize-vgg-model/16597/1 "2018-10-21T12:00:59Z")

</div>

In the following code, i want to using compile function to initialize vgg\_model with vgg-verydeep-16.mat data. And vgg\_model is a model i realized. I want to find a similar function compared with compile. Do you know that?

```julia
file = matread("vgg-verydeep-16.mat")
global vgg = compile(:vgg_model; weights=file)

```
