![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
KrikNN is a library that includes various components for neural network operations and tensor manipulations. This README provides an overview of the `Tensor` class and its functionality, as well as instructions for running the tests.
KrikNN is a library that includes various components for neural network operations and tensor manipulations. This README provides an overview of the Tensor
class and its functionality, as well as instructions for running the tests.
Documentation: https://andykr1k.github.io/KrikNN/
The Tensor
class is a fundamental component of the KrikNN library, allowing you to perform various operations on multidimensional arrays.
@
operator to perform matrix multiplication.+
or the -
operator to perform element-wise addition and subtraction.Here’s a brief guide on how to use the Tensor
class:
import numpy as np
from kriknn.engine.tensor import Tensor
# Create tensors
tensor1 = Tensor([[1.0, 2.0], [3.0, 4.0]])
tensor2 = Tensor([[2.0, 0.0], [1.0, 2.0]])
# Matrix multiplication
result = tensor1 @ tensor2
print(result.data) # Output: [[4.0, 4.0], [10.0, 8.0]]
# Addition
tensor3 = Tensor([[5.0, 6.0], [7.0, 8.0]])
result_add = tensor1 + tensor3
print(result_add.data) # Output: [[6.0, 8.0], [10.0, 12.0]]
# Subtraction
tensor4 = Tensor([[5.0, 6.0], [7.0, 8.0]])
result_sub = tensor4 - tensor1
print(result_sub.data) # Output: [[4.0, 4.0], [4.0, 4.0]]
The KrikNN library includes tests for the Tensor
class to ensure its functionality. The tests are written using unittest
and can be run using the following command:
python -m tests/run.py
The KrikNN library provides several examples to help you get started with tensor operations:
python examples/basic_tensor_operations.py
Contributions to the KrikNN library are welcome. Please fork the repository, make your changes, and submit a pull request. Ensure that your changes are covered by tests and adhere to the existing code style.
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
KrikNN is a library that includes various components for neural network operations and tensor manipulations. This README provides an overview of the `Tensor` class and its functionality, as well as instructions for running the tests.
We found that kriknn demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.