Commit graph

5 commits

Author SHA1 Message Date
suleshahid
925909cf6b
Update internal name for Window OP (#2054)
We have some name clash issues with the current Window OP name.

We will be changing it from "Window"->"SignalWindow" until the names clashes are resolved and revert back afterwards.

This is an internal implementation detail, so user level API has no change from current usage, i.e. still use (op_resolver.AddWindow() and window_op.window)

BUG=[286250473](http://b/286250473)
2023-06-14 20:33:41 +00:00
suleshahid
c306ff6084
Adds Signal Library Window Op (#2019)
First Op for the TFLM Signal Processing Ops library.
Doc linked in bug.

The Window OP is a custom signal processing OP similar to what is found in tf.signal library, but specific for integer (int16) purposes.

You can directly use this as a builtin op via the op resolver as:
* `op_resolver.AddWindow()` 
* or via python as shown in `window_op_test.py`

3 testing options are provided:
* Micro(C++): `bazel run signal/micro/kernels:window_test`
* Tensorflow/Micro(Python): `bazel run python/tflite_micro/signal:window_op_test`
* Makefile(C++): `make -f tensorflow/lite/micro/tools/make/Makefile test_kernel_window_test`  

BUG=[259145369](http://b/259145369)
2023-06-14 00:25:02 +00:00
Ryan Kuester
10924c4403
build: upgrade C++ std used in py/cc_deps_link_test (#1967)
In preparation for upgrading the Tensorflow Python package dependency, upgrade
the C++ standard used when compiling //python/tests:cc_deps_link_test from
C++14 to C++17. cc_deps_link_test tests linking against the Tensorflow Python
package's extension module.

Bug=#1966.
2023-05-12 16:47:20 +00:00
TANMAY DAS
20d202fa43
Fixing google3 presubmit buildify errors. (#1809)
This changes are required to import the files to google3. They are failing the checks in presubmit.
BUG=http://b/271870585
2023-03-08 21:06:49 +00:00
Ryan Kuester
17aae9e35d
build: add means of linking with C libs in Py packages (#1668)
Extend the Python repository_rule used to create external repositories, adding targets for C-language binary libraries shipped inside Python packages; e.g., that shipped in package tensorflow-gpu.

These targets are to be used as dependencies by C-language targets.

Note: when debugging the build, it can be helpful to examine the repository directory and BUILD file this repository_rule generates in the bazel cache.

Begin using a python/ directory at the root of the project for code that is specific to Python.

Upgrade to the latest version of rules_python first. Note that the unit test to keep requirements.in and requirements.txt is disabled (specifically with 
ec6bdc5d4443285d28a44076f06c203d9582e4a1)

Add a unit test for this feature.

BUG=see description
2023-03-05 06:25:58 +00:00