# AttributeError: 'Module' object has no attribute 'GetFunction'

**URL:** <https://discuss.tvm.apache.org/t/attributeerror-module-object-has-no-attribute-getfunction/12337>\
**Category:** Development\
**Created:** [March 17, 2022, 9:12am UTC](https://discuss.tvm.apache.org/t/attributeerror-module-object-has-no-attribute-getfunction/12337 "2022-03-17T09:12:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jinfagang](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/jinfagang/32/2444_2.png) [@jinfagang](https://discuss.tvm.apache.org/u/jinfagang)\
**Post date:** [March 17, 2022, 9:12am UTC](https://discuss.tvm.apache.org/t/attributeerror-module-object-has-no-attribute-getfunction/12337/1 "2022-03-17T09:12:31Z")

</div>

I have a exported library, and using it in python, my code like this:

```auto
mods = tvm.runtime.load_module(lib_path)
    fc1 = mods.GetFunction(f'{prefix}_fc1')

```

Got error:

```auto
AttributeError: 'Module' object has no attribute 'GetFunction'

```

How to get the Func inside module?

---

<div class="post-metadata">

**Author:** ![kparzysz](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/kparzysz/32/252_2.png) [@kparzysz](https://discuss.tvm.apache.org/u/kparzysz)\
**Post date:** [March 18, 2022, 1:41pm UTC](https://discuss.tvm.apache.org/t/attributeerror-module-object-has-no-attribute-getfunction/12337/2 "2022-03-18T13:41:54Z")

</div>

Try `mods.get_function(...)` instead.
