Skip to content

Commit

Permalink
remove duplicate code (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzijian1010 authored Sep 19, 2024
1 parent 8f66017 commit 72a97a0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lite/trt/sd/trt_unet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,6 @@ void TRTUNet::inference(const std::vector<std::vector<float>> &clip_output, std:
scheduler.step(noise_pred,noise_pred_dims, latents_fp32, noise_pred_dims,
pred_sample, t);

scheduler.step(noise_pred,noise_pred_dims, latents_fp32, noise_pred_dims,
pred_sample, t);

std::vector<half> pred_sample_fp16(pred_sample.size(),0);
std::transform(pred_sample.begin(), pred_sample.end(),
pred_sample_fp16.begin(),[](float f) { return __float2half(f);});
Expand Down

0 comments on commit 72a97a0

Please sign in to comment.