Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Pytorch, OpenCV] Implicit ArrayRef, Updates for JavaCPP 1.5.10 #1455

Merged
merged 14 commits into from
Jan 14, 2024
Prev Previous commit
Next Next commit
Fix fetch_and_cast and cast_and_store for complexes
  • Loading branch information
HGuillemet committed Jan 9, 2024
commit d5b3c8c5f41d0f4061637ef908608c57437b82cc
12 changes: 10 additions & 2 deletions pytorch/src/gen/java/org/bytedeco/pytorch/global/torch.java
Original file line number Diff line number Diff line change
Expand Up @@ -59939,6 +59939,14 @@ public class torch extends org.bytedeco.pytorch.presets.torch {
ScalarType src_type,
@Const Pointer ptr);

@Namespace("c10") public static native @ByVal @Name("fetch_and_cast<c10::complex<float> >") FloatComplex fetch_and_cast_to_ComplexFloat(
ScalarType src_type,
@Const Pointer ptr);

@Namespace("c10") public static native @ByVal @Name("fetch_and_cast<c10::complex<double> >") DoubleComplex fetch_and_cast_to_ComplexDouble(
ScalarType src_type,
@Const Pointer ptr);

@Namespace("c10") public static native @Cast("bool") @Name("fetch_and_cast<bool>") boolean fetch_and_cast_to_boolean(
ScalarType src_type,
@Const Pointer ptr);
Expand Down Expand Up @@ -60009,11 +60017,11 @@ public class torch extends org.bytedeco.pytorch.presets.torch {
ScalarType dest_type,
Pointer ptr,
double value);
@Namespace("c10") public static native @Name("cast_and_store") void cast_and_store_from_qint8(
@Namespace("c10") public static native @Name("cast_and_store<c10::complex<float> >") void cast_and_store_from_ComplexFloat(
ScalarType dest_type,
Pointer ptr,
@ByVal FloatComplex value);
@Namespace("c10") public static native @Name("cast_and_store") void cast_and_store_from_qint8(
@Namespace("c10") public static native @Name("cast_and_store<c10::complex<double> >") void cast_and_store_from_ComplexDouble(
ScalarType dest_type,
Pointer ptr,
@ByVal DoubleComplex value);
Expand Down
4 changes: 2 additions & 2 deletions pytorch/src/main/java/org/bytedeco/pytorch/presets/torch.java
Original file line number Diff line number Diff line change
Expand Up @@ -2011,8 +2011,8 @@ We need either to put an annotation info on each member, or javaName("@NoOffset
{"at::Float8_e4m3fn", "Float8_e4m3fn"},
{"at::Float8_e5m2", "Float8_e5m2"}
}) {
infoMap.put(new Info("c10::fetch_and_cast<" + t[0] + ">").javaNames("fetch_and_cast_to_" + t[1]))
.put(new Info("c10::cast_and_store<" + t[0] + ">").javaNames("cast_and_store_from_" + t[1]));
infoMap.put(new Info(template("c10::fetch_and_cast", t[0])).javaNames("fetch_and_cast_to_" + t[1]))
.put(new Info(template("c10::cast_and_store", t[0])).javaNames("cast_and_store_from_" + t[1]));
}


Expand Down