Skip to content

Commit

Permalink
Disable scatternd in TRT8+ (open-mmlab#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
grimoire authored Dec 13, 2021
1 parent 25a5838 commit bd28671
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions csrc/backend_ops/tensorrt/scatternd/trt_scatternd.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
// Copyright (c) OpenMMLab. All rights reserved.
#include "trt_scatternd.hpp"

#include "NvInferVersion.h"
// ScatterND is supported since TensorRT8
#if NV_TENSORRT_MAJOR <= 7
#include <assert.h>
#include <stdio.h>

#include <chrono>

#include "trt_scatternd.hpp"
#include "trt_scatternd_kernel.hpp"
#include "trt_serialize.hpp"

Expand Down Expand Up @@ -151,3 +153,4 @@ nvinfer1::IPluginV2 *TRTScatterNDCreator::deserializePlugin(const char *name,

REGISTER_TENSORRT_PLUGIN(TRTScatterNDCreator);
} // namespace mmdeploy
#endif

0 comments on commit bd28671

Please sign in to comment.