MCPcopy 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
8def _linspace(a, b, num):
9 x = mx.arange(0, num) / (num - 1)
10 return (b - a) * x + a
11
12
13def _interp(y, x_new):

Callers 2

__init__Method · 0.85
timestepsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected