Commit graph

2794 commits

Author SHA1 Message Date
Yang Wang
5d6dbb4331 Add conv3d related operations (#1915)
* add conv3d

* backpropinput

* fix conv3d

* add backpropinputv2

* add backpropfilter and refactor

* fix style

* address comments

* add serialization tests

* fix tests
2017-12-14 09:46:22 +08:00
Yang Wang
ff346bc2eb Added Dilation2D, Dilation2DBackpropFilter, Dilation2DBackpropInput (#1853)
* add ops

* fix style

* add more docs

* address comments

* fix test

* add serilization tests
2017-12-13 18:55:48 +08:00
Yang Wang
8961d576d1 add more ops (#1847) 2017-12-13 18:01:06 +08:00
Ian Wong
ef12a19dd4 Fix some issues found when save bigdl model to tensorflow format file (#1997)
* fix BN save tf issue when scale and offset is null; fix conv2d save tf issue when bias is null; support save LRN layer to tf format

* fix get padding info not correct when ceilMode=true and pad=0

* support save Scale in tf format

* refind some code

* fix unit test
2017-12-13 17:51:12 +08:00
Xin Qiu
5a39246214 UpSampling1D UpSampling2D (#1928) 2017-12-13 16:13:58 +08:00
Xianyan
46365ab6b3 Add serialize unit test for new add layer (#2021)
* Add serialize unit test for new add layer

* add PriorBox serializer
2017-12-13 10:29:18 +08:00
Xianyan
bc4758b270 Add image frame predict (#1972)
* Add VisionPredictor

* share convolution

* inception example can work

* move predictImage To Predictor
add matToTensor, remove postPorcessor
add python
Add more doc

* meet code review and fix unit test

* fix test

* remove unnecessary ClassTag in ImageFrame
2017-12-12 18:04:07 +08:00
Jerry Wu
bcb8083824 support serialization unittest auto-check (#2011)
* support serialization auto check

* fix typo

* merge master
2017-12-12 17:21:25 +08:00
Xianyan
231ff8b5e8 Add object detection related layers for model zoo and keras support (#2015)
* Add object detection model zoo support

* Add unit test

* Add more doc and python wrapper

* revert some and add createProposal

* Fix ut
2017-12-12 16:54:13 +08:00
Ian Wong
579f55b5a3 Support SperableConv2D and one hot crossentropy (#1944)
* Support SperableConv2D and one hot crossentropy

* fix compile error

* add python wrapper

* add new ut

* add ut

* fix unit test

* fix ut

* refine depthwiseConv2D

* fix seperable conv2d unit tests

* support DepthWiseConv2dBackpropInput and DepthWiseConv2DBackpropFilter

* refine the code

* add more test

* fix failed test and style issue

* fix inconsistant API with keras1

* add serialization unit test

* fix failed unit test
2017-12-12 15:06:53 +08:00
Yuhao Yang
01be6ce1a4 [keras][loss] kullback_leibler_divergence and poisson (#1938)
* add kdl and poisson

* add extra unittest

* poisson update

* kullback

* update kld

* kld update

* style fix

* add transient

* add extra ut

* init with null

* resolve conflict
2017-12-11 18:21:56 -08:00
zhangxiaoli73
569ee7aa97 add MeanAbsolutePercentageCriterion & MeanSquaredLogarithmicCriterion (#1916)
* add MeanAbsolutePercentageCriterion & MeanSquaredLogarithmicCriterion

* add docs

* meet pr comments

* meet pr comments

* exchange keras input target

* update readme
2017-12-11 16:49:59 +08:00
Jerry Wu
f48c0ed467 add Ser support to all tf related layers (#2002)
* add Ser support to all tf related layers

* fix style
2017-12-11 15:18:41 +08:00
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