64 std::vector<double>* feature_values);
69 std::string
GetName()
override {
return "JUNCTION_MLP_EVALUATOR"; }
77 void SetObstacleFeatureValues(
Obstacle* obstacle_ptr,
78 std::vector<double>*
const feature_values);
86 void SetEgoVehicleFeatureValues(
Obstacle* obstacle_ptr,
88 std::vector<double>*
const feature_values);
95 void SetJunctionFeatureValues(
Obstacle* obstacle_ptr,
96 std::vector<double>*
const feature_values);
105 static const size_t OBSTACLE_FEATURE_SIZE = 4 + 2 * 5;
107 static const size_t EGO_VEHICLE_FEATURE_SIZE = 4;
109 static const size_t JUNCTION_FEATURE_SIZE = 12 * 8;
111 torch::jit::script::Module torch_model_;
112 torch::Device device_;