Commit 8c15afe7 authored by Jeremy Reizenstein's avatar Jeremy Reizenstein Committed by Facebook GitHub Bot
Browse files

fix warning from cross

Summary: Don't call tensor.cross() without dim, to avoid new warning.

Reviewed By: MichaelRamamonjisoa

Differential Revision: D49879590

fbshipit-source-id: e9ba83923b6dc3bcface6782b8b26729ab5b0a4c
parent 6b437e21
...@@ -37,7 +37,7 @@ inline void fill_cam_vecs( ...@@ -37,7 +37,7 @@ inline void fill_cam_vecs(
res->pixel_dir_y.x = pixel_dir_y.data_ptr<float>()[0]; res->pixel_dir_y.x = pixel_dir_y.data_ptr<float>()[0];
res->pixel_dir_y.y = pixel_dir_y.data_ptr<float>()[1]; res->pixel_dir_y.y = pixel_dir_y.data_ptr<float>()[1];
res->pixel_dir_y.z = pixel_dir_y.data_ptr<float>()[2]; res->pixel_dir_y.z = pixel_dir_y.data_ptr<float>()[2];
auto sensor_dir_z = pixel_dir_y.cross(pixel_dir_x); auto sensor_dir_z = pixel_dir_y.cross(pixel_dir_x, -1);
sensor_dir_z /= sensor_dir_z.norm(); sensor_dir_z /= sensor_dir_z.norm();
if (right_handed) { if (right_handed) {
sensor_dir_z *= -1.f; sensor_dir_z *= -1.f;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment