Comments (3)
Sure. Your instructions are quite straightforward. I'll take it.
X.
On 08/26/2015 09:08 AM, Daniel Povey wrote:
@naxingyu https://github.com/naxingyu, it would be great if you
could help with this because you have been working on similar code
recently. This is something I need for my work on CTC (which I am
working on currently in my personal fork of Kaldi). I'll add you to
the paper if you can help with this.The following code currently exists in cu-matrix.h:
|// This function, adds a list of MatrixElements (scaled by alpha) to corresponding locations to
// (*this).
void AddElements(Real alpha, const std::vector<MatrixElement >& input);// This function resizes the output to indexes.size(), and for each element of
// "indexes" it interprets it as a (row, column) index into _this, and puts
// (_this)(row, column) into the corresponding element of "output".
void Lookup(const std::vector &indexes,
std::vector *output) const;
|What I would like is (1) to change the interface of the existing
Lookup to take a Real* pointer instead of a std::vector, for greater
flexibility, (2) add a version of Lookup that takes CuArray instead,
that would be called internally by the existing function in cases
where CUDA is being used; and (3) add a version of AddElements that is
more compatible with the Lookup interface, as follows (we can add an
alpha to its interface later if it becomes necessary).| /// For each i, with indexes[i] = (j, k), does (*this)(j, k) += input[i]. Requires, but does
/// not check, that the vector of indexes does not contain repeated elements. 'input'
/// is the start of an array of length equal to indexes.Dim().
void AddElements(const CuArray &indexes, const Real *input);
|—
Reply to this email directly or view it on GitHub
#94.
from kaldi.
Should I update all the calls to the new interface?
from kaldi.
Yes.
On Tue, Aug 25, 2015 at 11:04 PM, Xingyu Na [email protected]
wrote:
Should I update all the calls to the new interface?
—
Reply to this email directly or view it on GitHub
#94 (comment).
from kaldi.
Related Issues (20)
- Does Kaldi fail to extract features from the non-standard pronunciation of ethnic minorities? HOT 3
- Dockerのイメージ作成時にGPGエラーになる HOT 3
- Intel MKL installation Fail HOT 1
- The error causes when using the command `./install_mkl.sh` to install mkl tools HOT 1
- When the following situations occur, the memory will increase HOT 3
- Request for prebuilt Android APK demonstrating capabilities HOT 2
- Is that OK to use Openfst 1.8.1 in Kaldi's latest version? HOT 3
- Chain alignments used for training HOT 1
- Error when build docker GPU image ubuntu22.04-cuda12.2.0
- ReadDecodeGraph():onlinebin-util.cc:52) Error reading FST (after reading header).
- kaldi uses the C++17 feature while compiling in the C++14 mode
- Please tag the repository with the version
- AMI download manifest and license, files do not exist HOT 2
- Error while building docker image: install_mkl.sh
- Seeking Guidance on Custom Urdu ASR Training Data and Vocabulary Expansion
- KaldiFatalError
- NO_PUBKEY on intell error HOT 1
- The `Resize` function doesn't change `stride_` if resize_type == kSetZero and `rows == MatrixBase<Real>::num_rows_ && cols == MatrixBase<Real>::num_cols_`.
- Integrate ZLUDA for AMD CUDA HOT 1
- issue with install_klm.sh 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 kaldi.