25 #include "torch/extension.h" 26 #include "torch/script.h" 29 namespace prediction {
64 std::vector<std::pair<double, double>>* pos_history);
69 std::string
GetName()
override {
return "SEMANTIC_LSTM_EVALUATOR"; }
78 torch::jit::script::Module torch_vehicle_model_;
79 torch::jit::script::Module torch_pedestrian_model_;
80 at::Tensor torch_default_output_tensor_;
81 torch::Device device_;
SemanticLSTMEvaluator()=delete
Constructor.
Prediction obstacle.
Definition: obstacle.h:52
bool Evaluate(Obstacle *obstacle_ptr, ObstaclesContainer *obstacles_container) override
Override Evaluate.
Definition: obstacles_container.h:39
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
bool ExtractObstacleHistory(Obstacle *obstacle_ptr, std::vector< std::pair< double, double >> *pos_history)
Extract obstacle history.
Definition: semantic_map.h:30
std::string GetName() override
Get the name of evaluator.
Definition: semantic_lstm_evaluator.h:69
Definition: semantic_lstm_evaluator.h:31
void Clear()
Clear obstacle feature map.
virtual ~SemanticLSTMEvaluator()=default
Destructor.
Definition: evaluator.h:39
Define the data container base class.