Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx-examples
/ _linspace
Function
_linspace
stable_diffusion/stable_diffusion/sampler.py:8–10 ·
view source on GitHub ↗
(a, b, num)
Source
from the content-addressed store, hash-verified
6
7
8
def
_linspace(a, b, num):
9
x = mx.arange(0, num) / (num - 1)
10
return
(b - a) * x + a
11
12
13
def
_interp(y, x_new):
Callers
2
__init__
Method · 0.85
timesteps
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected