🚀 Implement Tensor-type and basic methods #15

Merged
julius merged 8 commits from core-types into master 2024-01-03 21:52:54 +00:00
Showing only changes of commit 7935cf8a1d - Show all commits

View File

@ -27,7 +27,7 @@ macro_rules! shape {
#[macro_export]
macro_rules! index {
($array:expr) => {
TensorIndex::from($array)
($tensor:expr, $indices:expr) => {
TensorIndex::from(($tensor.shape().clone(), $indices))
};
}