null
MModular
•Created by null on 7/10/2024 in #questions
How to initialize a tensor[DType.int8] with random values of either: -1, 0, or 1?
Ah, got it. a.unsafe_ptr() not a._take_data_ptr(). My intellisense betrayed me!
16 replies
MModular
•Created by null on 7/10/2024 in #questions
How to initialize a tensor[DType.int8] with random values of either: -1, 0, or 1?
"number of elements to fill", I assume that is 100. so:
randintDType.int8, 100, -1, 1)
then when I try and print:
16 replies
MModular
•Created by null on 7/10/2024 in #questions
How to initialize a tensor[DType.int8] with random values of either: -1, 0, or 1?
Actually, maybe that's right? It explodes when I try and print a though.
16 replies
MModular
•Created by null on 7/10/2024 in #questions
How to initialize a tensor[DType.int8] with random values of either: -1, 0, or 1?
err, not 1..
16 replies
MModular
•Created by null on 7/10/2024 in #questions
How to initialize a tensor[DType.int8] with random values of either: -1, 0, or 1?
Like this?
16 replies
MModular
•Created by null on 7/10/2024 in #questions
How to initialize a tensor[DType.int8] with random values of either: -1, 0, or 1?
Point being, I need a way to randomly initialize really large vectors (could be a million dimensions for example)
16 replies
MModular
•Created by null on 7/10/2024 in #questions
How to initialize a tensor[DType.int8] with random values of either: -1, 0, or 1?
@benny Playing with hyperdimensional vectors, requires vectors with dimensions over 10,000 to be useful (this is a rule in Vector Symbolic Architecture).
For example: https://torchhd.readthedocs.io/en/stable/generated/torchhd.random.html#torchhd.random
Except I want to experiment with 3 valued systems rather than two.
But anyway, to create a VSA you need operations like element wise multiplication, addition, and other operations (element wise XOR, etc, for the BSC architecture)
16 replies