Граф коммитов

28 Коммитов

Автор SHA1 Сообщение Дата
Zhou Wang 73d798a791 improve error message; add tests for CopyVariableValueTo with free dimensions
update baseline

adjust tests to make sure batch length > 1 in case this is required.
2017-09-08 14:18:21 +02:00
Zhou Wang a47200fcd5 Support free dimensions in variable:
a) get inferred shape instead of original shape to support free dimension in variable
b) check dynamicaxes in the packed value to make sure this is the flattened case
c) remove exception test for inferred dimension, as it is now supported.
2017-08-28 21:41:04 +02:00
Eldar Akchurin aa4d01ca71 Moving data deserializer to the experimental header and refactoring common types between v2 and old readers.
- Breaking change in C++ API:
        NDShape::Unknown has been changed to NDShape::Unknown()
    - Readers mostly moved to CNTK namespace
    - Some duplicate types between readers and V2 library are removed
    - Readers now depend (header only) from V2
2017-07-17 14:27:56 +02:00
Zhou Wang f8d2a2a884 add exception tests for CopyVairableValueTo
update baseline

address CR comments
2017-06-20 22:51:15 +02:00
Zhou Wang 4eb4657561 add NumColsInMatrix as return value of ValidateCSCAndGetIndexBufferSizes() and bug fixes 2017-06-20 22:51:10 +02:00
Zhou Wang 67e36ab971 check NumRows/Cols of matrix; fix bug in CopyVariableValueToSparseCSC 2017-06-20 22:51:02 +02:00
Zhou Wang 3191e6dccc add Value:CopyVariableTo() for sparse csc output; re-arrange test cases;
add workaround for GPUSparseMatrix->CPUSparseMatrix; create variable using sparse format
2017-06-20 22:50:47 +02:00
Zhou Wang 14c4798918 add tests for SparseCSCDataBuffers
improve unit tests: add GeenrateNumOfAxes(); use Fixture for NDArrayViewTests; remove unneeded srand()
2017-06-20 22:49:42 +02:00
Amit Agarwal 39138b9c2d CNTK v2 library: Fix Value::Create to handle >1D sparse NDArrayViews. 2017-04-06 12:19:06 -07:00
Zhou Wang 927c1e49cf add CreateSequence from sparse input
expose CreateSequence using sparse in C#

adapt API and C# binding

update baseline

aligning argument names

adapt test case to make sure at 1 non-zero values is created

adapt random generation of sparse sequence
2017-03-16 07:30:57 +01:00
Mark Hillebrand 6246cc8e11 Split v2 tests according to device target 2017-03-11 14:46:13 +01:00
Ivan Rodriguez 57b7587917 Converting current v2 library unittests to boost framework.
Some of them were joined in a single project of e2e tests.
2017-02-08 15:22:49 +01:00
Zhou Wang 8176e0fccf add Function::FindByName(), Function::FindAllWithName; Add tests; 2017-02-06 11:42:45 +01:00
Zhou Wang 1e6febcfa7 add CreateBatch/Sequence/BatchOfSequence to C++
add tests

Use NDArraryView to avoid extra copy
2017-02-01 09:22:54 +01:00
Amit Agarwal 44eb327a62 CNTK v2 library: Fix a bug in Value::Create method for the case when there is a single sequence being packed with a sequenceStart flag setting of false which results in creation of a mask 2017-01-19 00:26:02 -08:00
Mark Hillebrand 7cb1db6620 Merge remote-tracking branch 'origin/master' into mahilleb/vs2015fi
Conflicts:
    Source/CNTKv2LibraryDll/Utils.cpp
2017-01-10 11:29:03 +01:00
Zhou Wang 750dccbfd3 remove isResizable and SequenceLength parameters from CopyTO until we have clear understanding for the use case; rename CopyTo to CopyVairiableValueTo; adapt test cases
fix error

fix errors in tests; add tests for exceptions

add more check in GetSequenceAndBatchLength(); Address CR comments
2017-01-06 10:06:49 +01:00
Zhou Wang 69c75c4494 Using Variable as parameter to CopyTo to infer dynamic axes correctly; Add check for PackedValue; Simplify processing based on assumption that sequence starts at 0 and ends at the first invalid mask; other changes from CR.
add tests for variable with 0,1 or 2 dynamic axes, and adapt tests to new API, refactor tests to share code

restore main and tests

make class Value after class Variable to make linux happy

fix bug in test
2017-01-06 10:06:48 +01:00
Zhou Wang 88ecb8d4ff update CopyTo for OneHot using vocabSize instead of shape 2017-01-06 08:53:27 +01:00
Zhou Wang 6ff0427195 add unit tests for CopyTo, improve unit tests to use random sequences, add test for single sample, single sequence in Value.Create
fix linux build

add missing error message.

fix linux build

switch order of function definition to make linux happy

add instantiation of functions

minor changes

add comments, using random number in tests

restore main.cpp
2017-01-06 08:53:27 +01:00
Zhou Wang f1cbc08e94 add CopyTo for onehot vector; refactor code to share between CopyTo methods;
fix bug using GPU device. The cpuArrayView must be alive in the function scope

add CopyTo for OneHot; support Value in both dense and sparse format
2017-01-06 08:53:27 +01:00
Zhou Wang f5fdbeb028 refactor Value::CopyTo to allocate memory in .h file; adapt unit tests; add sequencesLens as parameter for Value::CopyTo 2017-01-06 08:53:26 +01:00
Amit Agarwal 124c44b5f3 CNTK V2 library: Added Value::Create method to batch sparse sequences 2016-12-16 01:27:22 -08:00
Zhou Wang 588d305552 add #define __STDC_FORMAT_MACROS before inttypes.h 2016-12-08 14:10:58 +01:00
Alexey Reznichenko f5f7b0cc5d Add Parameter::SetValue 2016-12-06 10:01:03 +01:00
Zhou Wang 17089ed3a4 refactor to better share code
update printf to make gcc happy

use CheckShape
2016-12-03 21:53:58 +01:00
Zhou Wang 0f7f76d597 update makefile, fix printf format specifier for gcc 2016-12-03 10:46:29 +01:00
Zhou Wang f94b122beb add tests for Value:Create, dense/onehot and with/without mask 2016-12-03 10:43:55 +01:00