This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #896 from xamarin/mu-20240725-fix-issue-754-tensor…
…flow-missing-build Manual updates 20240725 fix for issue 754
- Loading branch information
Showing
6 changed files
with
127 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...flow-lite-support-api/Additions/Xamarin.TensorFlow.Lite.Support.Common.TensorProcessor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#nullable restore | ||
using System; | ||
using System.Collections.Generic; | ||
using Android.Runtime; | ||
using Java.Interop; | ||
|
||
namespace Xamarin.TensorFlow.Lite.Support.Common | ||
{ | ||
|
||
// Metadata.xml XPath class reference: path="/api/package[@name='org.tensorflow.lite.support.common']/class[@name='TensorProcessor']" | ||
// [global::Android.Runtime.Register ("org/tensorflow/lite/support/common/TensorProcessor", DoNotGenerateAcw=true)] | ||
public partial class TensorProcessor // : global::Xamarin.TensorFlow.Lite.Support.Common.SequentialProcessor | ||
{ | ||
// [global::Android.Runtime.Register ("org/tensorflow/lite/support/common/TensorProcessor$Builder", DoNotGenerateAcw=true)] | ||
public new partial class Builder // : global::Java.Lang.Object | ||
{ | ||
static Delegate cb_buildTensorProcessor; | ||
#pragma warning disable 0169 | ||
static Delegate GetBuildTensorProcessorHandler () | ||
{ | ||
if (cb_buildTensorProcessor == null) | ||
cb_buildTensorProcessor = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_L (n_BuildTensorProcessor)); | ||
return cb_buildTensorProcessor; | ||
} | ||
|
||
static IntPtr n_BuildTensorProcessor (IntPtr jnienv, IntPtr native__this) | ||
{ | ||
var __this = global::Java.Lang.Object.GetObject<global::Xamarin.TensorFlow.Lite.Support.Common.TensorProcessor.Builder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); | ||
return JNIEnv.ToLocalJniHandle (__this.BuildTensorProcessor ()); | ||
} | ||
#pragma warning restore 0169 | ||
|
||
// Metadata.xml XPath method reference: path="/api/package[@name='org.tensorflow.lite.support.common']/class[@name='TensorProcessor.Builder']/method[@name='build' and count(parameter)=0]" | ||
[Register ("build", "()Lorg/tensorflow/lite/support/common/TensorProcessor;", "GetBuildTensorProcessorHandler")] | ||
public virtual unsafe global::Xamarin.TensorFlow.Lite.Support.Common.TensorProcessor BuildTensorProcessor () | ||
{ | ||
const string __id = "build.()Lorg/tensorflow/lite/support/common/TensorProcessor;"; | ||
try { | ||
var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod (__id, this, null); | ||
return global::Java.Lang.Object.GetObject<global::Xamarin.TensorFlow.Lite.Support.Common.TensorProcessor> (__rm.Handle, JniHandleOwnership.TransferLocalRef); | ||
} finally { | ||
} | ||
} | ||
} | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...orflow-lite-support-api/Additions/Xamarin.TensorFlow.Lite.Support.Image.ImageProcessor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#nullable restore | ||
using System; | ||
using System.Collections.Generic; | ||
using Android.Runtime; | ||
using Java.Interop; | ||
|
||
namespace Xamarin.TensorFlow.Lite.Support.Image | ||
{ | ||
|
||
// Metadata.xml XPath class reference: path="/api/package[@name='org.tensorflow.lite.support.image']/class[@name='ImageProcessor']" | ||
// [global::Android.Runtime.Register ("org/tensorflow/lite/support/image/ImageProcessor", DoNotGenerateAcw=true)] | ||
public partial class ImageProcessor // : global::Xamarin.TensorFlow.Lite.Support.Common.SequentialProcessor | ||
{ | ||
// Metadata.xml XPath class reference: path="/api/package[@name='org.tensorflow.lite.support.image']/class[@name='ImageProcessor.Builder']" | ||
// [global::Android.Runtime.Register ("org/tensorflow/lite/support/image/ImageProcessor$Builder", DoNotGenerateAcw=true)] | ||
public new partial class Builder // : global::Java.Lang.Object | ||
{ | ||
static Delegate cb_buildImageProcessor; | ||
#pragma warning disable 0169 | ||
static Delegate GetBuildImageProcessorHandler () | ||
{ | ||
if (cb_buildImageProcessor == null) | ||
cb_buildImageProcessor = JNINativeWrapper.CreateDelegate (new _JniMarshal_PP_L (n_BuildImageProcessor)); | ||
return cb_buildImageProcessor; | ||
} | ||
|
||
static IntPtr n_BuildImageProcessor (IntPtr jnienv, IntPtr native__this) | ||
{ | ||
var __this = global::Java.Lang.Object.GetObject<global::Xamarin.TensorFlow.Lite.Support.Image.ImageProcessor.Builder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); | ||
return JNIEnv.ToLocalJniHandle (__this.BuildImageProcessor ()); | ||
} | ||
#pragma warning restore 0169 | ||
|
||
// Metadata.xml XPath method reference: path="/api/package[@name='org.tensorflow.lite.support.image']/class[@name='ImageProcessor.Builder']/method[@name='build' and count(parameter)=0]" | ||
[Register ("build", "()Lorg/tensorflow/lite/support/image/ImageProcessor;", "GetBuildImageProcessorHandler")] | ||
public virtual unsafe global::Xamarin.TensorFlow.Lite.Support.Image.ImageProcessor BuildImageProcessor () | ||
{ | ||
const string __id = "build.()Lorg/tensorflow/lite/support/image/ImageProcessor;"; | ||
try { | ||
var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod (__id, this, null); | ||
return global::Java.Lang.Object.GetObject<global::Xamarin.TensorFlow.Lite.Support.Image.ImageProcessor> (__rm.Handle, JniHandleOwnership.TransferLocalRef); | ||
} finally { | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters