Espruino/libs/tensorflow/patches/01-public-delete.diff

71 lines
3.5 KiB
Diff

diff -uN -r tensorflow/lite/experimental/micro/tools/make/gen/make_x86_64/prj/hello_world/make/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h /home/gw/workspace/Espruino/libs/tensorflow/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h
--- a/libs/tensorflow/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h 2019-09-11 15:49:01.989141904 +0100
+++ b/libs/tensorflow/tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h 2019-09-11 15:46:24.455056488 +0100
@@ -9,6 +9,7 @@
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
+// Minor modifications made for Espruino Microcontroller build by Gordon Williams <gw@pur3.co.uk>
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_KERNELS_ALL_OPS_RESOLVER_H_
#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_KERNELS_ALL_OPS_RESOLVER_H_
@@ -22,9 +23,8 @@
class AllOpsResolver : public MicroMutableOpResolver {
public:
AllOpsResolver();
-
- private:
TF_LITE_REMOVE_VIRTUAL_DELETE
+
};
} // namespace micro
diff -uN -r tensorflow/lite/experimental/micro/tools/make/gen/make_x86_64/prj/hello_world/make/tensorflow/lite/experimental/micro/memory_planner/greedy_memory_planner.h /home/gw/workspace/Espruino/libs/tensorflow/tensorflow/lite/experimental/micro/memory_planner/greedy_memory_planner.h
--- a/libs/tensorflow/tensorflow/lite/experimental/micro/memory_planner/greedy_memory_planner.h 2019-09-11 15:49:01.997142011 +0100
+++ b/libs/tensorflow/tensorflow/lite/experimental/micro/memory_planner/greedy_memory_planner.h 2019-09-11 15:46:28.087104556 +0100
@@ -12,11 +12,12 @@
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
-
+// Minor modifications made for Espruino Microcontroller build by Gordon Williams <gw@pur3.co.uk>
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_MEMORY_PLANNER_GREEDY_MEMORY_PLANNER_H_
#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_MEMORY_PLANNER_GREEDY_MEMORY_PLANNER_H_
#include "tensorflow/lite/experimental/micro/memory_planner/memory_planner.h"
+#include "tensorflow/lite/experimental/micro/compatibility.h"
namespace tflite {
@@ -125,6 +126,8 @@
// Whether buffers have been added since the last plan was calculated.
bool need_to_calculate_offsets_;
+
+ TF_LITE_REMOVE_VIRTUAL_DELETE
};
} // namespace tflite
diff -uN -r tensorflow/lite/experimental/micro/tools/make/gen/make_x86_64/prj/hello_world/make/tensorflow/lite/experimental/micro/micro_error_reporter.h /home/gw/workspace/Espruino/libs/tensorflow/tensorflow/lite/experimental/micro/micro_error_reporter.h
--- a/libs/tensorflow/tensorflow/lite/experimental/micro/micro_error_reporter.h 2019-09-11 15:49:01.969141639 +0100
+++ b/libs/tensorflow/tensorflow/lite/experimental/micro/micro_error_reporter.h 2019-09-11 15:46:25.167065911 +0100
@@ -12,6 +12,7 @@
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
+// Minor modifications made for Espruino Microcontroller build by Gordon Williams <gw@pur3.co.uk>
#ifndef TENSORFLOW_LITE_EXPERIMENTAL_MICRO_MICRO_ERROR_REPORTER_H_
#define TENSORFLOW_LITE_EXPERIMENTAL_MICRO_MICRO_ERROR_REPORTER_H_
@@ -26,8 +27,6 @@
public:
~MicroErrorReporter() {}
int Report(const char* format, va_list args) override;
-
- private:
TF_LITE_REMOVE_VIRTUAL_DELETE
};