13 #include "torch/script.h"
20 const std::string& str) {
23 CoordinateMapping::BALL_TO_CUBE_RADIAL;
24 if (str ==
"ball_to_cube_radial") {
25 coordinate_mapping = CoordinateMapping::BALL_TO_CUBE_RADIAL;
26 }
else if (str ==
"ball_to_cube_volume_preserving") {
27 coordinate_mapping = CoordinateMapping::BALL_TO_CUBE_VOLUME_PRESERVING;
28 }
else if (str ==
"identity") {
29 coordinate_mapping = CoordinateMapping::IDENTITY;
32 "coordinate_mapping must be one of ('ball_to_cube_radial', "
33 "'ball_to_cube_volume_preserving', 'identity') but got " +
36 return coordinate_mapping;
40 const std::string& str) {
43 if (str ==
"linear") {
44 interpolation = InterpolationMode::LINEAR;
45 }
else if (str ==
"linear_border") {
46 interpolation = InterpolationMode::LINEAR_BORDER;
47 }
else if (str ==
"nearest_neighbor") {
51 "interpolation must be one of ('linear', "
52 "'linear_border', 'nearest_neighbor') but got " +
open3d::ml::impl::CoordinateMapping ParseCoordinateMappingStr(const std::string &str)
Definition: ContinuousConvHelper.h:19
open3d::ml::impl::InterpolationMode ParseInterpolationStr(const std::string &str)
Definition: ContinuousConvHelper.h:39
InterpolationMode
Definition: ContinuousConvTypes.h:18
@ NEAREST_NEIGHBOR
Definition: VoxelPooling.h:21
CoordinateMapping
Definition: ContinuousConvTypes.h:26