Commit graph

2831 commits

Author SHA1 Message Date
Kai Huang
4619ab5390 Map newly added keras layers on python side (#1990)
* update

* add maxoutdense

* add masking

* add srelu

* highway activation as string; update docs

* code clean
2017-12-08 18:13:02 +08:00
dding3
33bc824adf Add multiple rnn cell and support get/setHiddenState in Recurrent(#1591)
* add multicell
* add get/setHiddenStates
2017-12-07 15:15:46 -05:00
Yang Wang
62731ce677 fix output allocation bug (#1982)
* fix output allocation bug

* fix test

* fix rebase

* fix test

* fix ut
2017-12-07 13:22:57 +08:00
dding3
6a4d228113 Support Keras masking and maxoutdense (#1918)
* support keras Masking layer
* support keras maxoutdense
2017-12-06 14:17:03 -05:00
Jerry Wu
c0202a79f9 add support for multiple tensornumerics (#1984) 2017-12-05 19:57:44 -06:00
Yanzhang Wang
e7ca47e837 feat: SReLU and ActivityRegularization support (#1917)
* feat: SReLU and ActivityRegularization support

* fix: update doc

* fix: refactor the weights and gradWeights of SReLU

* fix: serialization for srelu

* fix: backward computing errors

* fix: ActivityRegularization to layer

* fix: change test location

* fix: add python api

* fix: shared axes have not consider enough
2017-12-05 17:42:49 +08:00
Jerry Wu
3c6e08f4f7 Pb support bigmodel (#1976)
* support new format

* add unit test

* add unit test

* refinement

* fix typo

* fix unit test
2017-12-05 02:05:32 -06:00
Ian Wong
02d186814f Support NHWC for LRN and batch normalization, and optimize batch normalization speed (#1936)
* add LRN and LRNGrad

* add LRNGrad

* support bn with NHWC

* support bn with NHWC

* add batch norm grad

* support tf bnv2/bngradv2

* fix uts

* fix uts

* fix ut

* fix ut

* fix ut

* fix ut

* fix style issue

* fix ut

* fix ut

* fix ut

* update python api and docs

* meet code review

* meet code review

* fix ut

* fix ut

* fix ut
2017-12-05 15:07:59 +08:00
Ian Wong
4671809646 Add an API to get node from graph model with given name (#1871)
* get node from graph

* add unit test

* add Graph.node api in python
2017-12-04 16:31:47 +08:00
Xianyan
5f8cbc7900 Add Upsample3d (#1911)
* add

* Add upsample3d

* add SerialVersionUID

* add python

* Fix ut

* add saveModule test

* add updample3d serializer and markdown doc

* meet code review

* meet code review

* fix ut

* fix ut

* resolve conflicts
2017-11-30 13:26:32 +08:00
Xianyan
b233affcdf Add keras highway (#1913)
* Add highway

* Fix unit test

* Add python support

* fix ut

* add module seri

* fix ut

* Add API doc

* Add Regularizer
2017-11-28 19:05:11 +08:00
Jerry Wu
ab60cab53f Keras support - add cosine proximity criterion (#1902)
* keras support to add CosineProximityCriterion

* fix criterion

* add unit test

* fix typo

* add comment
2017-11-27 19:09:19 -06:00
Shane Huang
a808c0aa6f add GaussianDropout, GaussianNoise layers (#1894)
* add GaussianDropout, GaussianNoise layers, unit tests, python wrapper, module serializer unit test and docs
2017-11-27 17:47:46 +08:00
Kai Huang
c5cb592d63 add activation for recurrent layers (#1909) 2017-11-27 16:54:13 +08:00
Jerry Wu
8654df46c6 fix graph missing generatebackward (#1877) 2017-11-27 02:04:59 -06:00
Kai Huang
b5ef25947c Add serialization test for CAveTable and VolumetricAveragePooling (#1926)
* add serialization uid

* add ut for serialization
2017-11-27 09:06:20 +08:00
Kai Huang
f574783f77 Add more keras layers and test (#1891)
* add, update and fix

* add hard_sigmoid

* fix python3.5 lambda in permute

* fix syntax for python3.5

* fix pooling and conv layers

* fix syntax

* fix permute for py35
2017-11-20 21:09:43 -06:00
Jerry Wu
1ff4bbc17a Keras support - add Hard-sigmoid layer (#1897)
* add hard sigmoid

* add python

* add python api

* fix typo

* add doc
2017-11-17 00:09:00 -06:00
li,zhichao
a9b3cacd6a Support keras model loading (#1827)
* keras load model and api wrapper

* fix batchnorm

* fix averagepooling

* remove function wrapper and clean code

* add unit test

* remove backend

* fix and clean

* update

* separate unittest

* x

* remove -n

* ignore application

* separate test

* pass parameter

* try to fix test

* disable shape checking

* ignore
2017-11-15 09:15:24 -06:00
Yang Wang
bd8097b145 Support keras squared_hinge and sparse_categorial_crossentropy (#1865)
* add squared hinge loss

* classNLL support prob as input

* add python api

* meet code review

* fix python tests

* more doc

* more doc
2017-11-14 12:45:08 +08:00
Wang Yanzhang
7c17e0ac3d refator: update initialize method for serialization 2017-11-13 21:43:02 -05:00
Jerry Wu
9ffa8d08d1 fix loading ds2 module issue (#1867)
* fix loading ds2 module issue

* refinemnt

* refinement per review
2017-11-14 09:48:48 +08:00
dding3
46b6b15c55 support SAME padding in 3d conv and allows user config padding size in convlstm and convlstm3d (#1862)
* support SAME padding in 3d conv

* allows user config padding size in convlstm and convlstm3d
2017-11-10 15:16:15 -05:00
Ian Wong
a9112a8799 Support load more tensorflow operations (#1858)
* add more ops

* checkin reduce

* add All

* support all and any

* add operation Round

* support floordiv and truncatediv

* support FloorMode/Mod/TruncateMod

* add exp/expm1

* add InTopK

* add rint

* remove a JDK8 api

* fix style issue

* fix a bug in floordiv
2017-11-10 15:48:11 +08:00
Xin Qiu
45a62d2a12 time counting for paralleltable's forward/backward (#1861) 2017-11-10 13:28:07 +08:00
Jerry Wu
d1e162fb3c Tf ParseExample add serialization support (#1852)
* update bigdl download url

* fix (#1719)

* fix jtensor (#1722)

* [Backport 0.3 PR1728]Bump script (#1729)

* checkin bump-version script

* add comments

* add serialization support
2017-11-09 08:40:58 +08:00
Yang Wang
b777c42cc9 Add Maximum, Minimum, BatchMatMul (#1828)
* add ops

* fix style
2017-11-06 19:37:28 +08:00
Yang Wang
b645120771 Add square related ops (#1823)
* add square related ops

* use another type parameter

* fix error message
2017-11-06 14:27:20 +08:00
Xianyan
de2a9e8dac Fix SmoothL1Criterion and SoftmaxWithCriterion (#1830) 2017-11-03 16:47:38 +08:00
Yang Wang
9b24d126c3 Add some operations (#1816)
* add some ops

* add SquareDifference

* squaredifference

* add SquaredDifference test

* add tests

* add abs

* fix style

* fix style

* fix style

* fix tests

* fix style

* add div

* meet code review

* meet code review

* meet code review
2017-11-03 09:55:51 +08:00
Hawkwood
7fb2dadba7 Fix cmul (#1822)
* fix CMul

* 1697 issue

*  add exception capture and modify unit test
2017-11-03 08:43:55 +08:00
Ian Wong
0bbcd78854 Support more tensorflow operations (#1818)
* add more operations

* add more ops

* fix style issue

* fix style issue

* remove some jdk8 pai
2017-11-02 15:01:19 +08:00
zhangxiaoli73
debbc93d92 optimize MSECriterion and Adam (#1701) 2017-11-02 10:28:48 +08:00
Jerry Wu
fd60a000f6 Caffe layer wise unit test (#1810)
* add run caffe jobs

* fix style

* fix typo

* chmod

* add test info

* refinement

* fix import

* refinement

* refinement to get exit status

* fix typo

* fix path

* add layers unit tests

* add python interface

* fix style
2017-11-01 15:37:25 +08:00
Yang Wang
a9a48ef47f support argmax operation (#1714) 2017-10-31 10:01:25 +08:00
Xin Qiu
6656112ec8 MSRA filler (#1802) 2017-10-31 10:00:11 +08:00
Xianyan
19c068e3c2 MapTable: Add module back in clearstate (#1778)
* MapTable: Add module back in clearstate

* add unit test
2017-10-27 14:19:38 +08:00
Xianyan
2d593c46a2 Clone graph keep their original prevs nodes and next nodes sequence (#1763)
* Clone graph keep their original prevs nodes and next nodes sequence

* add comments

* update

* simplify table merge
2017-10-27 11:24:40 +08:00
Ian Wong
f2018c6614 fix shape output tensor type from T to Int (#1737) 2017-10-25 20:36:48 +08:00
zhangxiaoli73
a5ae91c6d2 add toGraph (#1189)
* add toGraph

* refactor toGraph

* add getEndNodes for ParallelTable, MapTable

* add unit test
2017-10-23 10:45:34 +08:00
Yanzhang Wang
e8244efb6c fix: make the length of weight and gradWeight in quantized conv same length (#1692)
* fix: the different length of weight and gradWeight in quantized conv is
very confused. So make them same length.

* fix: return grad
2017-10-20 04:33:06 -04:00
Ian Wong
0cebe9d5f0 Support load more tensorflow operations (#1656)
* Support load more tf operation

* refine session

* fix style issue

* meet code reivew
2017-10-19 14:35:17 +08:00
zhangxiaoli73
c58cf4b348 add ptb model example (#1672)
* add ptb model example

* meet review
2017-10-19 14:24:36 +08:00
Yang Wang
a1508bc7f6 fix decode raw and StridedSlice and Transpose serilization issue (#1673) 2017-10-19 10:08:24 +08:00
Ian Wong
e72e2fae82 add more layers and operations (#1678)
* add more layers and operations

* fix compile error

* fix compile error
2017-10-19 09:56:14 +08:00
Jerry Wu
d48acf9ab9 Fix duplicated msg proto (#1659)
* fix protobuf duplicate msgs

* fix test cases
2017-10-18 09:56:11 +08:00
Yao Zhang
ec031c72a0 Add BroadcastGradientArgs (#1658)
* finish BroadcastGradientArgs

* remove breeze

* pass the tests

* refine the function

* fix scala style

* while instead of for
2017-10-16 17:29:30 +08:00
Xianyan
f4ccc9f754 move model freeze to AbstractModule (#1647)
* move model freeze to container

* update

* update freeze API

* refactor freeze API

* meet code review and add unit test

* fix doc

* meet code review
2017-10-15 22:28:35 -05:00
Xin Qiu
cd9c7b6cf7 SparseLinear SparseJoinTable DenseToSparse (#1652)
* SparseLinear SparseJoinTable DenseToSparse

* Python api

* add DenseToSparseSpec

* update to upstream

* add some method

* meet code review

* fix python unit test

* fix python unit test
2017-10-13 16:44:26 +08:00
zhangxiaoli73
7cbfdb88d4 throw clear exception in lookuptable (#1586) 2017-10-13 12:51:24 +08:00