MCPcopy Create free account
hub / github.com/PythonOT/POT / linspace

Method linspace

ot/backend.py:2186–2192  ·  view source on GitHub ↗
(self, start, stop, num, type_as=None)

Source from the content-addressed store, hash-verified

2184 return torch.std(a, unbiased=False)
2185
2186 def linspace(self, start, stop, num, type_as=None):
2187 if type_as is None:
2188 return torch.linspace(start, stop, num)
2189 else:
2190 return torch.linspace(
2191 start, stop, num, dtype=type_as.dtype, device=type_as.device
2192 )
2193
2194 def meshgrid(self, a, b):
2195 try:

Callers

nothing calls this directly

Calls 1

linspaceMethod · 0.45

Tested by

no test coverage detected