Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
pytorch3d
Commits
c2596d1b
Commit
c2596d1b
authored
May 21, 2025
by
fengzch-das
Browse files
fix: no matching conversion from 'int' to 'T'
parent
8f995972
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
pytorch3d/csrc/pulsar/include/camera.device.h
pytorch3d/csrc/pulsar/include/camera.device.h
+7
-0
pytorch3d/csrc/pulsar/include/camera.h
pytorch3d/csrc/pulsar/include/camera.h
+3
-0
No files found.
pytorch3d/csrc/pulsar/include/camera.device.h
View file @
c2596d1b
...
@@ -20,6 +20,13 @@ IHD CamGradInfo::CamGradInfo() {
...
@@ -20,6 +20,13 @@ IHD CamGradInfo::CamGradInfo() {
pixel_dir_x
=
make_float3
(
0.
f
,
0.
f
,
0.
f
);
pixel_dir_x
=
make_float3
(
0.
f
,
0.
f
,
0.
f
);
pixel_dir_y
=
make_float3
(
0.
f
,
0.
f
,
0.
f
);
pixel_dir_y
=
make_float3
(
0.
f
,
0.
f
,
0.
f
);
}
}
IHD
CamGradInfo
::
CamGradInfo
(
float
val
)
{
cam_pos
=
make_float3
(
val
,
val
,
val
);
pixel_0_0_center
=
make_float3
(
val
,
val
,
val
);
pixel_dir_x
=
make_float3
(
val
,
val
,
val
);
pixel_dir_y
=
make_float3
(
val
,
val
,
val
);
}
}
// namespace pulsar
}
// namespace pulsar
#endif
#endif
pytorch3d/csrc/pulsar/include/camera.h
View file @
c2596d1b
...
@@ -64,6 +64,7 @@ inline bool operator==(const CamInfo& a, const CamInfo& b) {
...
@@ -64,6 +64,7 @@ inline bool operator==(const CamInfo& a, const CamInfo& b) {
struct
CamGradInfo
{
struct
CamGradInfo
{
HOST
DEVICE
CamGradInfo
();
HOST
DEVICE
CamGradInfo
();
HOST
DEVICE
CamGradInfo
(
float
val
);
float3
cam_pos
;
float3
cam_pos
;
float3
pixel_0_0_center
;
float3
pixel_0_0_center
;
float3
pixel_dir_x
;
float3
pixel_dir_x
;
...
@@ -72,6 +73,8 @@ struct CamGradInfo {
...
@@ -72,6 +73,8 @@ struct CamGradInfo {
// TODO: remove once https://github.com/NVlabs/cub/issues/172 is resolved.
// TODO: remove once https://github.com/NVlabs/cub/issues/172 is resolved.
struct
IntWrapper
{
struct
IntWrapper
{
HOST
DEVICE
IntWrapper
(){}
HOST
DEVICE
explicit
IntWrapper
(
int
ival
)
:
val
{
0
}{}
int
val
;
int
val
;
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment