Comments (3)
This is an issue with an incorrect call to SliceFunction
. The arguments are not specified correctly.
from mappedtensor.
I've been thinking about the plus operator for MappedTensor. It seems there is no advantage of implementing it as an overloaded operator, like there is with multiply (which is a trivial operation). Most operations that require a full load of the tensor should probably be done only as necessary on a portion of the tensor being used at that moment, e.g. a(:,1,2,3)+1.
There seem a couple of interesting paths to me:
- Remove the + operator entirely and keep the class as clean as possible.
- Implement an eval string that remembers any operations done on the MappedTensor in the right order and applies them at the point they are requested.
So line 451:
tfData = mtVar.fRealFactor .* mt_read_data(mtVar.hShimFunc, mtVar.hRealContent, S, vnReferencedTensorSize, mtVar.strStorageClass, mtVar.nHeaderBytes, mtVar.bBigEndian, mtVar.hRepSumFunc, mtVar.hChunkLengthFunc);
might become a recursive set of feval() function calls done in the right order, e.g. 'minus( divide( plus( times( power( mtVar, A), B), C), D), E)'.
Option 1) is easier and probably the way to go but I can see the merit in 2) as well. The current approach is kind-of in between :)
from mappedtensor.
Yeah, I'm thinking that the plus
method isn't so useful. I agree with your point, that anything requiring a full load of the tensor should be performed on a referenced portion. I'll change it to raise an error.
from mappedtensor.
Related Issues (15)
- Allow integer types for index variables HOT 21
- Add overloaded `prod` method HOT 3
- Direct conversion of a tensor to a `MappedTensor` in the constructor HOT 3
- a=cast(a) could be implemented with strClass HOT 1
- class char silently converts to double HOT 17
- Empty index causes error HOT 1
- Shortcut casting causes errors HOT 1
- Shortcut casting still causes errors HOT 1
- Constructor fails with complex input HOT 2
- Does it have to inherit from a handle object? HOT 6
- Data is corrupted when subsampling a large file (8Gb) on windows HOT 13
- 340 Gigabyte data and error while creating .mex from mapped_tensor_shim.c HOT 4
- Error with uint indexes HOT 1
- Indexing a mapped tensor after permutation
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 mappedtensor.