Comments (3)
Hey @ulises-jeremias, I will take a look.
from vtl.
Given my first investigations, I think there is a bug in vtl.assignment.assign()
(which is untested) :
module main
import vtl
fn main()
{
test_tensor := vtl.from_array([1,2,3,4,5,6,7,8], [2, 4])
zeros := vtl.zeros<int>([2,2])
mut slice := test_tensor.slice_hilo([0,0], [2,2])
println("slice to replace = \n$slice")
/*
slice_to_repalce =
&[[1, 2],
[5, 6]]
*/
println("replacement = \n$zeros")
/*
zeros =
&[[0, 0],
[0, 0]]
*/
slice.assign(zeros)
println("new slice = \n$slice \n(should be \n$zeros)")
/*
new slice =
&[[0, 0],
[5, 6]]
(should be
&[[0, 0],
[0, 0]])
*/
assert zeros.equal(slice)
}
Weird given assert zeros.equal(slice)
passes (?)
I will investigate further
from vtl.
@cmnemoi hey! I saw you are contributing on VTL! probably this one can be challenging! Let me know if you want to take a look and you need any help on it!
from vtl.
Related Issues (20)
- vtl.stats.sum and vtl.stats.prod don't work HOT 1
- Undefined behavior of floats/doubles/... comparisons HOT 7
- datasets example compile error HOT 3
- autograd:register Inconsistency between use[p27,.....] and definition[p74] HOT 1
- vtl/examples: Add examples
- datasets: Add more datasets
- ml/metrics/examples: Add examples for ml metrics
- docs/tutorial: Improve the tutorial for VTL
- Fortran-like performance (use of "restrict")
- examples/plot: Add examples using vsl.plot
- Remove continue-on-error when v fmt -verify is fixed for VSL on CI
- Please remove this repository HOT 1
- Use YOLO (You Only Loop Once) for the autograd gates and NN layers
- Example program throws Unhandled Exception 0xC0000374 on Windows
- vtl/stats: Prevent using to_array to improve performance
- https://github.com/tracel-ai/burn
- operator overload doesn't work on Tensors HOT 3
- transpose(`.t()`) doesn't work HOT 2
- random generator (`random()`) doesn't work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vtl.