<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>TadaoYamaoka</author_name>
  <author_url>https://blog.hatena.ne.jp/TadaoYamaoka/</author_url>
  <blog_title>TadaoYamaokaの開発日記</blog_title>
  <blog_url>https://tadaoyamaoka.hatenablog.com/</blog_url>
  <categories>
    <anon>MoE</anon>
  </categories>
  <description>前回、Pythonで実装したエンジンビルドスクリプトで保存した.engineを読み込んで、TensorRTで推論する処理をC++で実装する。 推論処理 TensorRTのライブラリの使用がメインである。 デフォルトで、CUDA Graphを有効にしている。 CUDA Graphは、プラグインでCUDAカーネルを呼び出す際のオーバーヘッドを削減する仕組みである。 infer.cpp #include &lt;NvInfer.h&gt; #include &lt;NvInferPlugin.h&gt; #include &lt;cuda_runtime_api.h&gt; #include &lt;dlfcn.h&gt; #include &lt;a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftadaoyamaoka.hatenablog.com%2Fentry%2F2026%2F05%2F29%2F235122&quot; title=&quot;dropless MoE(Mixture of Experts)を試す その5(推論処理) - TadaoYamaokaの開発日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-05-29 23:51:22</published>
  <title>dropless MoE(Mixture of Experts)を試す その5(推論処理)</title>
  <type>rich</type>
  <url>https://tadaoyamaoka.hatenablog.com/entry/2026/05/29/235122</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
