Skip to content

Commit

Permalink
Merge pull request #375 from asus4/v2.17.0
Browse files Browse the repository at this point in the history
v2.17.0
  • Loading branch information
asus4 authored Oct 16, 2024
2 parents bd96982 + 40da6c5 commit dd7577d
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 15 deletions.
6 changes: 3 additions & 3 deletions Packages/com.github.asus4.mediapipe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"license": "Apache License 2.0",
"unity": "2022.3",
"unityRelease": "0f1",
"version": "2.16.1-p3",
"version": "2.17.0",
"hideInEditor": false,
"dependencies": {
"com.github.asus4.tflite": "2.16.1-p3",
"com.github.asus4.tflite.common": "2.16.1-p3"
"com.github.asus4.tflite": "2.17.0",
"com.github.asus4.tflite.common": "2.17.0"
},
"documentationUrl": "https://github.com/asus4/tf-lite-unity-sample",
"changelogUrl": "https://github.com/asus4/tf-lite-unity-sample/releases",
Expand Down
4 changes: 2 additions & 2 deletions Packages/com.github.asus4.tflite.common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"license": "Apache License 2.0",
"unity": "2022.3",
"unityRelease": "0f1",
"version": "2.16.1-p3",
"version": "2.17.0",
"hideInEditor": false,
"dependencies": {
"com.unity.burst": "1.8.12",
"com.github.asus4.tflite": "2.16.1-p3"
"com.github.asus4.tflite": "2.17.0"
},
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions Packages/com.github.asus4.tflite/Runtime/BuiltinOps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,5 +226,6 @@ public enum BuiltinOperator
Dilate = 203,
StablehloRngBitGenerator = 204,
ReduceWindow = 205,
StablehloComposite = 206,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public enum Flags : uint
// Enable the latest XNNPACK operators and features in the delegate which have
// not yet been enabled by default.
ENABLE_LATEST_OPERATORS = 0x00000040,
// Enable XNNPack subgraph reshaping. This means that models with dynamic
// tensors are supported and that inputs may be efficiently resized.
ENABLE_SUBGRAPH_RESHAPING = 0x00000080,
}

[StructLayout(LayoutKind.Sequential)]
Expand All @@ -61,8 +64,10 @@ public struct Options
// TFLITE_XNNPACK_DELEGATE_FLAG_VARIABLE_OPERATORS mask.
[Obsolete("Use the flags bitfield with the TFLITE_XNNPACK_DELEGATE_FLAG_VARIABLE_OPERATORS mask.")]
public bool handleVariableOps;
// Enable adaptive optimization for AVX CPUs.
public bool experimental_adaptive_avx_optimization;
// Path to the weight cache to load if `weight_cache` is undefined.
//
// WARNING this is an experimental flag.
public IntPtr experimental_weight_cache_file_path; // char*
}

public TfLiteDelegate Delegate { get; private set; }
Expand Down
4 changes: 3 additions & 1 deletion Packages/com.github.asus4.tflite/Runtime/Interpreter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,16 @@ public enum DataType
Variant = 15,
UInt32 = 16,
UInt16 = 17,
Int4 = 18,
BFloat16 = 19,
}

public struct QuantizationParams
{
public float scale;
public int zeroPoint;

public override string ToString()
public override readonly string ToString()
{
return string.Format("scale: {0} zeroPoint: {1}", scale, zeroPoint);
}
Expand Down
2 changes: 1 addition & 1 deletion Packages/com.github.asus4.tflite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license": "Apache License 2.0",
"unity": "2022.3",
"unityRelease": "0f1",
"version": "2.16.1-p3",
"version": "2.17.0",
"hideInEditor": false,
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"depth": 0,
"source": "embedded",
"dependencies": {
"com.github.asus4.tflite": "2.16.1-p3",
"com.github.asus4.tflite.common": "2.16.1-p3"
"com.github.asus4.tflite": "2.17.0",
"com.github.asus4.tflite.common": "2.17.0"
}
},
"com.github.asus4.texture-source": {
Expand All @@ -37,7 +37,7 @@
"source": "embedded",
"dependencies": {
"com.unity.burst": "1.8.12",
"com.github.asus4.tflite": "2.16.1-p3"
"com.github.asus4.tflite": "2.17.0"
}
},
"com.unity.2d.sprite": {
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ Included prebuilt libraries:
],
"dependencies": {
// Core TensorFlow Lite libraries
"com.github.asus4.tflite": "2.16.1-p3",
"com.github.asus4.tflite": "2.17.0",
// Utilities for TFLite
"com.github.asus4.tflite.common": "2.16.1-p3",
"com.github.asus4.tflite.common": "2.17.0",
// Utilities for MediaPipe
"com.github.asus4.mediapipe": "2.16.1-p3",
"com.github.asus4.mediapipe": "2.17.0",
...// other dependencies
}
}
Expand Down

0 comments on commit dd7577d

Please sign in to comment.