MCPcopy
hub / github.com/triple-mu/YOLOv8-TensorRT / trtweight

Function trtweight

models/api.py:10–12  ·  view source on GitHub ↗
(weights: np.ndarray)

Source from the content-addressed store, hash-verified

8
9
10def trtweight(weights: np.ndarray) -> trt.Weights:
11 weights = weights.astype(weights.dtype.name)
12 return trt.Weights(weights)
13
14
15def get_width(x: int, gw: float, divisor: int = 8) -> int:

Callers 2

Conv2dFunction · 0.85
ConvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected