Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Empty file.
3 changes: 3 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pytest]
env =
KERAS_BACKEND=openvino
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ tf2onnx
--extra-index-url https://download.pytorch.org/whl/cpu
torch==2.6.0;sys_platform != 'darwin'
torch==2.6.0;sys_platform == 'darwin'
torch-xla==2.6.0;sys_platform != 'darwin'

# Jax.
# Pinned to 0.5.0 on CPU. JAX 0.5.1 requires Tensorflow 2.19 for saved_model_test.
Expand Down
Empty file added src/__init__.py
Empty file.
Binary file added src/__pycache__/__init__.cpython-313.pyc
Binary file not shown.
Empty file added src/ops/__init__.py
Empty file.
Binary file added src/ops/__pycache__/__init__.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions src/ops/decompositions/openvino/numpy_ops.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# src/ops/decompositions/openvino/numpy_ops.py

import numpy as np


# TODO: Replace with actual OpenVINO operations in the future
def logspace(start, stop, num=50, dtype=np.float32):
"""Generate log-spaced values (temporary NumPy implementation)."""
values = np.logspace(start, stop, num=num, dtype=dtype)
return values


# Temporary placeholder evaluation function
def _dummy_evaluate(node):
"""Return node as-is. TODO: Implement real OpenVINO evaluation."""
return node
18 changes: 18 additions & 0 deletions src/ops/numpy_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# src/ops/numpy_test.py

import numpy as np
from decompositions.openvino.numpy_ops import logspace, _dummy_evaluate


def test_logspace_basic():
"""Test logspace returns expected numpy array (placeholder)."""
node = logspace(0, 2, num=3, dtype=np.float32)
result = _dummy_evaluate(node)
expected = np.array([1.0, 10.0, 100.0], dtype=np.float32)
assert np.allclose(result, expected), f"Expected {expected}, got {result}"


if __name__ == "__main__":
import pytest

pytest.main([__file__, "-v"])
Empty file.
Loading