Skip to content

Tensor Database mangagement systems #122832

Closed Answered by CopperEagle
AElnamaki asked this question in Programming Help
Discussion options

You must be logged in to vote

Hey @AElnamaki

If you use Python, you can use SQLite3, which is in the standard library. You can most of the familiar SQL language but you can store any kind of Python objects, including Pytorch.tensor, or any other type of tensor objects.

To quote the documentation of sqlite3 itself, added with comments for viewing

# To use the module, start by creating a database Connection object:
        
import sqlite3
cx = sqlite3.connect("test.db")  # test.db will be created or opened
    
# The special path name ":memory:" can be provided to connect to a transient
#  in-memory database:
    
# cx = sqlite3.connect(":memory:")  # connect to a database in RAM
    
# Once a connection has been establ…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@CopperEagle
Comment options

Answer selected by LiteBrite82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Programming Help Programming languages, open source, and software development.
3 participants