# The function change for compiler

**URL:** <https://discourse.julialang.org/t/the-function-change-for-compiler/16564>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 20, 2018, 12:06pm UTC](https://discourse.julialang.org/t/the-function-change-for-compiler/16564 "2018-10-20T12:06:24Z")\
**Posts on this page:** 2\
**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 20, 2018, 12:06pm UTC](https://discourse.julialang.org/t/the-function-change-for-compiler/16564/1 "2018-10-20T12:06:24Z")

</div>

I want to use compile function to initialize vgg\_model with parameter extracted from vgg-verydeep-16.mat

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

```

```julia
ERROR: LoadError: UndefVarError: compile not defined

```

---

<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 20, 2018, 12:07pm UTC](https://discourse.julialang.org/t/the-function-change-for-compiler/16564/2 "2018-10-20T12:07:14Z")

</div>

anyone who knows the change. i need some help
