mirror of
				https://github.com/ml-explore/mlx.git
				synced 2025-11-04 18:48:15 +08:00 
			
		
		
		
	rebase
This commit is contained in:
		
							
								
								
									
										105
									
								
								docs/build/html/dev/extensions.html
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										105
									
								
								docs/build/html/dev/extensions.html
									
									
									
									
										vendored
									
									
								
							@@ -8,7 +8,7 @@
 | 
			
		||||
    <meta charset="utf-8" />
 | 
			
		||||
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
 | 
			
		||||
 | 
			
		||||
    <title>Custom Extensions in MLX — MLX 0.19.0 documentation</title>
 | 
			
		||||
    <title>Custom Extensions in MLX — MLX 0.19.1 documentation</title>
 | 
			
		||||
  
 | 
			
		||||
  
 | 
			
		||||
  
 | 
			
		||||
@@ -16,27 +16,30 @@
 | 
			
		||||
    document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
 | 
			
		||||
    document.documentElement.dataset.theme = localStorage.getItem("theme") || "";
 | 
			
		||||
  </script>
 | 
			
		||||
  <!-- 
 | 
			
		||||
    this give us a css class that will be invisible only if js is disabled 
 | 
			
		||||
  -->
 | 
			
		||||
  <noscript>
 | 
			
		||||
    <style>
 | 
			
		||||
      .pst-js-only { display: none !important; }
 | 
			
		||||
 | 
			
		||||
    </style>
 | 
			
		||||
  </noscript>
 | 
			
		||||
  
 | 
			
		||||
  <!-- Loaded before other Sphinx assets -->
 | 
			
		||||
  <link href="../_static/styles/theme.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
 | 
			
		||||
<link href="../_static/styles/bootstrap.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
 | 
			
		||||
<link href="../_static/styles/pydata-sphinx-theme.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
 | 
			
		||||
 | 
			
		||||
  
 | 
			
		||||
  <link href="../_static/vendor/fontawesome/6.5.2/css/all.min.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
 | 
			
		||||
  <link rel="preload" as="font" type="font/woff2" crossorigin href="../_static/vendor/fontawesome/6.5.2/webfonts/fa-solid-900.woff2" />
 | 
			
		||||
<link rel="preload" as="font" type="font/woff2" crossorigin href="../_static/vendor/fontawesome/6.5.2/webfonts/fa-brands-400.woff2" />
 | 
			
		||||
<link rel="preload" as="font" type="font/woff2" crossorigin href="../_static/vendor/fontawesome/6.5.2/webfonts/fa-regular-400.woff2" />
 | 
			
		||||
  <link href="../_static/styles/theme.css?digest=26a4bc78f4c0ddb94549" rel="stylesheet" />
 | 
			
		||||
<link href="../_static/styles/pydata-sphinx-theme.css?digest=26a4bc78f4c0ddb94549" rel="stylesheet" />
 | 
			
		||||
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="../_static/styles/sphinx-book-theme.css?v=a3416100" />
 | 
			
		||||
  
 | 
			
		||||
  <!-- So that users can add custom icons -->
 | 
			
		||||
  <script src="../_static/scripts/fontawesome.js?digest=26a4bc78f4c0ddb94549"></script>
 | 
			
		||||
  <!-- Pre-loaded scripts that we'll load fully later -->
 | 
			
		||||
  <link rel="preload" as="script" href="../_static/scripts/bootstrap.js?digest=dfe6caa3a7d634c4db9b" />
 | 
			
		||||
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
 | 
			
		||||
  <script src="../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>
 | 
			
		||||
  <link rel="preload" as="script" href="../_static/scripts/bootstrap.js?digest=26a4bc78f4c0ddb94549" />
 | 
			
		||||
<link rel="preload" as="script" href="../_static/scripts/pydata-sphinx-theme.js?digest=26a4bc78f4c0ddb94549" />
 | 
			
		||||
 | 
			
		||||
    <script src="../_static/documentation_options.js?v=bce9d2e1"></script>
 | 
			
		||||
    <script src="../_static/documentation_options.js?v=071550fc"></script>
 | 
			
		||||
    <script src="../_static/doctools.js?v=9a2dae69"></script>
 | 
			
		||||
    <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 | 
			
		||||
    <script src="../_static/scripts/sphinx-book-theme.js?v=887ef09a"></script>
 | 
			
		||||
@@ -47,6 +50,7 @@
 | 
			
		||||
    <link rel="prev" title="Operations" href="../cpp/ops.html" />
 | 
			
		||||
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
 | 
			
		||||
  <meta name="docsearch:language" content="en"/>
 | 
			
		||||
  <meta name="docsearch:version" content="0.19.1" />
 | 
			
		||||
  </head>
 | 
			
		||||
  
 | 
			
		||||
  
 | 
			
		||||
@@ -62,19 +66,8 @@
 | 
			
		||||
    <i class="fa-solid fa-arrow-up"></i>Back to top</button>
 | 
			
		||||
 | 
			
		||||
  
 | 
			
		||||
  <input type="checkbox"
 | 
			
		||||
          class="sidebar-toggle"
 | 
			
		||||
          id="pst-primary-sidebar-checkbox"/>
 | 
			
		||||
  <label class="overlay overlay-primary" for="pst-primary-sidebar-checkbox"></label>
 | 
			
		||||
  
 | 
			
		||||
  <input type="checkbox"
 | 
			
		||||
          class="sidebar-toggle"
 | 
			
		||||
          id="pst-secondary-sidebar-checkbox"/>
 | 
			
		||||
  <label class="overlay overlay-secondary" for="pst-secondary-sidebar-checkbox"></label>
 | 
			
		||||
  
 | 
			
		||||
  <div class="search-button__wrapper">
 | 
			
		||||
    <div class="search-button__overlay"></div>
 | 
			
		||||
    <div class="search-button__search-container">
 | 
			
		||||
  <dialog id="pst-search-dialog">
 | 
			
		||||
    
 | 
			
		||||
<form class="bd-search d-flex align-items-center"
 | 
			
		||||
      action="../search.html"
 | 
			
		||||
      method="get">
 | 
			
		||||
@@ -82,7 +75,6 @@
 | 
			
		||||
  <input type="search"
 | 
			
		||||
         class="form-control"
 | 
			
		||||
         name="q"
 | 
			
		||||
         id="search-input"
 | 
			
		||||
         placeholder="Search..."
 | 
			
		||||
         aria-label="Search..."
 | 
			
		||||
         autocomplete="off"
 | 
			
		||||
@@ -90,8 +82,8 @@
 | 
			
		||||
         autocapitalize="off"
 | 
			
		||||
         spellcheck="false"/>
 | 
			
		||||
  <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
 | 
			
		||||
</form></div>
 | 
			
		||||
  </div>
 | 
			
		||||
</form>
 | 
			
		||||
  </dialog>
 | 
			
		||||
 | 
			
		||||
  <div class="pst-async-banner-revealer d-none">
 | 
			
		||||
  <aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="Version warning"></aside>
 | 
			
		||||
@@ -107,7 +99,8 @@
 | 
			
		||||
      
 | 
			
		||||
      
 | 
			
		||||
      
 | 
			
		||||
      <div class="bd-sidebar-primary bd-sidebar">
 | 
			
		||||
      <dialog id="pst-primary-sidebar-modal"></dialog>
 | 
			
		||||
      <div id="pst-primary-sidebar" class="bd-sidebar-primary bd-sidebar">
 | 
			
		||||
        
 | 
			
		||||
 | 
			
		||||
  
 | 
			
		||||
@@ -136,22 +129,18 @@
 | 
			
		||||
      
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    <img src="../_static/mlx_logo.png" class="logo__image only-light" alt="MLX 0.19.0 documentation - Home"/>
 | 
			
		||||
    <script>document.write(`<img src="../_static/mlx_logo_dark.png" class="logo__image only-dark" alt="MLX 0.19.0 documentation - Home"/>`);</script>
 | 
			
		||||
    <img src="../_static/mlx_logo.png" class="logo__image only-light" alt="MLX 0.19.1 documentation - Home"/>
 | 
			
		||||
    <img src="../_static/mlx_logo_dark.png" class="logo__image only-dark pst-js-only" alt="MLX 0.19.1 documentation - Home"/>
 | 
			
		||||
  
 | 
			
		||||
  
 | 
			
		||||
</a></div>
 | 
			
		||||
        <div class="sidebar-primary-item">
 | 
			
		||||
 | 
			
		||||
 <script>
 | 
			
		||||
 document.write(`
 | 
			
		||||
   <button class="btn search-button-field search-button__button" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
 | 
			
		||||
    <i class="fa-solid fa-magnifying-glass"></i>
 | 
			
		||||
    <span class="search-button__default-text">Search</span>
 | 
			
		||||
    <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
 | 
			
		||||
   </button>
 | 
			
		||||
 `);
 | 
			
		||||
 </script></div>
 | 
			
		||||
<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
 | 
			
		||||
 <i class="fa-solid fa-magnifying-glass"></i>
 | 
			
		||||
 <span class="search-button__default-text">Search</span>
 | 
			
		||||
 <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
 | 
			
		||||
</button></div>
 | 
			
		||||
        <div class="sidebar-primary-item"><nav class="bd-links bd-docs-nav" aria-label="Main">
 | 
			
		||||
    <div class="bd-toc-item navbar-nav active">
 | 
			
		||||
        <p aria-level="2" class="caption" role="heading"><span class="caption-text">Install</span></p>
 | 
			
		||||
@@ -482,6 +471,8 @@
 | 
			
		||||
<li class="toctree-l2"><a class="reference internal" href="../python/_autosummary/mlx.core.linalg.cross.html">mlx.core.linalg.cross</a></li>
 | 
			
		||||
<li class="toctree-l2"><a class="reference internal" href="../python/_autosummary/mlx.core.linalg.qr.html">mlx.core.linalg.qr</a></li>
 | 
			
		||||
<li class="toctree-l2"><a class="reference internal" href="../python/_autosummary/mlx.core.linalg.svd.html">mlx.core.linalg.svd</a></li>
 | 
			
		||||
<li class="toctree-l2"><a class="reference internal" href="../python/_autosummary/mlx.core.linalg.eigvalsh.html">mlx.core.linalg.eigvalsh</a></li>
 | 
			
		||||
<li class="toctree-l2"><a class="reference internal" href="../python/_autosummary/mlx.core.linalg.eigh.html">mlx.core.linalg.eigh</a></li>
 | 
			
		||||
</ul>
 | 
			
		||||
</details></li>
 | 
			
		||||
<li class="toctree-l1 has-children"><a class="reference internal" href="../python/metal.html">Metal</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
 | 
			
		||||
@@ -493,6 +484,7 @@
 | 
			
		||||
<li class="toctree-l2"><a class="reference internal" href="../python/_autosummary/mlx.core.metal.get_cache_memory.html">mlx.core.metal.get_cache_memory</a></li>
 | 
			
		||||
<li class="toctree-l2"><a class="reference internal" href="../python/_autosummary/mlx.core.metal.set_memory_limit.html">mlx.core.metal.set_memory_limit</a></li>
 | 
			
		||||
<li class="toctree-l2"><a class="reference internal" href="../python/_autosummary/mlx.core.metal.set_cache_limit.html">mlx.core.metal.set_cache_limit</a></li>
 | 
			
		||||
<li class="toctree-l2"><a class="reference internal" href="../python/_autosummary/mlx.core.metal.set_wired_limit.html">mlx.core.metal.set_wired_limit</a></li>
 | 
			
		||||
<li class="toctree-l2"><a class="reference internal" href="../python/_autosummary/mlx.core.metal.clear_cache.html">mlx.core.metal.clear_cache</a></li>
 | 
			
		||||
<li class="toctree-l2"><a class="reference internal" href="../python/_autosummary/mlx.core.metal.start_capture.html">mlx.core.metal.start_capture</a></li>
 | 
			
		||||
<li class="toctree-l2"><a class="reference internal" href="../python/_autosummary/mlx.core.metal.stop_capture.html">mlx.core.metal.stop_capture</a></li>
 | 
			
		||||
@@ -823,24 +815,16 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
document.write(`
 | 
			
		||||
  <button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button" title="light/dark" aria-label="light/dark" data-bs-placement="bottom" data-bs-toggle="tooltip">
 | 
			
		||||
    <i class="theme-switch fa-solid fa-sun fa-lg" data-mode="light"></i>
 | 
			
		||||
    <i class="theme-switch fa-solid fa-moon fa-lg" data-mode="dark"></i>
 | 
			
		||||
    <i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto"></i>
 | 
			
		||||
  </button>
 | 
			
		||||
`);
 | 
			
		||||
</script>
 | 
			
		||||
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button pst-js-only" aria-label="Color mode" data-bs-title="Color mode"  data-bs-placement="bottom" data-bs-toggle="tooltip">
 | 
			
		||||
  <i class="theme-switch fa-solid fa-sun                fa-lg" data-mode="light" title="Light"></i>
 | 
			
		||||
  <i class="theme-switch fa-solid fa-moon               fa-lg" data-mode="dark"  title="Dark"></i>
 | 
			
		||||
  <i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto"  title="System Settings"></i>
 | 
			
		||||
</button>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
document.write(`
 | 
			
		||||
  <button class="btn btn-sm pst-navbar-icon search-button search-button__button" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
 | 
			
		||||
<button class="btn btn-sm pst-navbar-icon search-button search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
 | 
			
		||||
    <i class="fa-solid fa-magnifying-glass fa-lg"></i>
 | 
			
		||||
  </button>
 | 
			
		||||
`);
 | 
			
		||||
</script>
 | 
			
		||||
</button>
 | 
			
		||||
<button class="sidebar-toggle secondary-toggle btn btn-sm" title="Toggle secondary sidebar" data-bs-placement="bottom" data-bs-toggle="tooltip">
 | 
			
		||||
    <span class="fa-solid fa-list"></span>
 | 
			
		||||
</button>
 | 
			
		||||
@@ -1769,7 +1753,8 @@ modest improvements right away!</p>
 | 
			
		||||
            
 | 
			
		||||
            
 | 
			
		||||
              
 | 
			
		||||
                <div class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner">
 | 
			
		||||
                <dialog id="pst-secondary-sidebar-modal"></dialog>
 | 
			
		||||
                <div id="pst-secondary-sidebar" class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner">
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  <div class="sidebar-secondary-item">
 | 
			
		||||
@@ -1850,8 +1835,8 @@ By MLX Contributors
 | 
			
		||||
  </div>
 | 
			
		||||
  
 | 
			
		||||
  <!-- Scripts loaded after <body> so the DOM is not blocked -->
 | 
			
		||||
  <script src="../_static/scripts/bootstrap.js?digest=dfe6caa3a7d634c4db9b"></script>
 | 
			
		||||
<script src="../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b"></script>
 | 
			
		||||
  <script defer src="../_static/scripts/bootstrap.js?digest=26a4bc78f4c0ddb94549"></script>
 | 
			
		||||
<script defer src="../_static/scripts/pydata-sphinx-theme.js?digest=26a4bc78f4c0ddb94549"></script>
 | 
			
		||||
 | 
			
		||||
  <footer class="bd-footer">
 | 
			
		||||
  </footer>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user