Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A high level frontend Python machine learning framework/library for Tensor Array.

License

NotificationsYou must be signed in to change notification settings

Tensor-Array/Tensor-Array-Python

Repository files navigation

pypistatuspythondownload per monthlicense

This machine learning library usingTensor-Array library

This project is still in alpha version, we are trying to make this look like the main framework but it is easier to code.

How to install Tensor-Array python version.

Before install this library please installNVIDIA CUDA toolkit first.

It can not work withoutNVIDIA CUDA toolkit.

If you did not installPython then installPython 3:

apt-get updateapt-get install python3

After that go to command and install:

pip install TensorArray

Testing with theTensor object.

TheTensor class is a storage that store value and calculate the tensor.

TheTensor.calc_grad() method can do automatic differentiation.

TheTensor.get_grad() method can get the gradient after callTensor.calc_grad().

importtensor_array.coreastaimportnumpyasnpdeftest_add():example_tensor_array=ta.Tensor(np.array([        [1,2,3,4],        [5,6,7,8],        [9,10,11,12],        [13,14,15,16]        ],dtype=np.int32))example_tensor_array_scalar=ta.Tensor(100)example_tensor_sum=example_tensor_array+example_tensor_array_scalarprint(example_tensor_sum)example_tensor_sum.calc_grad()print(example_tensor_array.get_grad())print(example_tensor_array_scalar.get_grad())test_add()

About

A high level frontend Python machine learning framework/library for Tensor Array.

Topics

Resources

License

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp