微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

【源码】将MATLAB算法嵌入Azure Function

在这里插入图片描述

Azure Function是一种无服务器计算服务,它允许用户运行事件触发的代码,而无需配置或管理基础结构。作为一种基于触发器的服务,它运行一个脚本或一段代码来响应各种事件。

Azure Function is a serverless compute service that enables user to run event-triggered code without having to provision or manage infrastructure. Being as a trigger-based service, it runs a script or piece of code in response to a variety of events.

Azure Function可以用来实现去耦、高吞吐量、可重用性和共享性。更可靠的是,它还可以用于生产环境。

Azure Functions can be used to achieve decoupling, high throughput, reusability and shared. Being more reliable, it can also be used for the production environments.

但是,截至2021年3月,Azure Function仅支持C#、Javascript、F#、Java、Powershell、Python和TypeScript。它们主要是开源语言。

However, as of march 2021, Azure Function is only supporting C#, Javascript, F#, Java, Powershell, Python, and TypeScript.They are mainly opensource language.

在本文档中,它将引导您了解将MATLAB算法嵌入Azure Function的两种方法

In this documentation, it will walk you through two ways to embed MATLAB Algorithm into Azure Function.

through MATLAB Coder > C# (.dll)

through MATLAB Compiler SDK > Python Package > Docker Image

Generally, solution(1) would allow your Azure function response faster than solution(2), as the C# is directly supported by Azure function natively. For solution (2), it requires more storage space for the docker image. Intuitively, solution (2) might be preferable due to MATLAB Runtime supports almost all MATLAB Function but MATLAB Coder is only supporting limited function for code generation.

更多精彩文章请关注公众号:

在这里插入图片描述

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐