Skip to content

Commit

Permalink
modeld: remove redundant pred_mu assignment (commaai#33152)
Browse files Browse the repository at this point in the history
remove redundant pred_mu assignment
  • Loading branch information
deanlee authored Aug 2, 2024
1 parent c40d129 commit 2cd9975
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion selfdrive/modeld/parse_model_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def parse_mdn(self, name, outs, in_N=0, out_N=1, out_shape=None):
raw = outs[name]
raw = raw.reshape((raw.shape[0], max(in_N, 1), -1))

pred_mu = raw[:,:,:(raw.shape[2] - out_N)//2]
n_values = (raw.shape[2] - out_N)//2
pred_mu = raw[:,:,:n_values]
pred_std = np.exp(raw[:,:,n_values: 2*n_values])
Expand Down

0 comments on commit 2cd9975

Please sign in to comment.