Skip to content

Commit

Permalink
Incremental Training for imagenet (intel-analytics#1391)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxin2012 committed Jul 31, 2019
1 parent 50e8122 commit 095e11d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions python/dllib/src/bigdl/dllib/feature/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,13 @@ def image_frame(cls, image_frame, memory_type="DRAM", bigdl_type="float"):
"""
Create FeatureSet from ImageFrame.
:param image_frame: ImageFrame
:param memory_type: string, DRAM or PMEM
:param memory_type: string, DRAM, PMEM or a Int number.
If it's DRAM, will cache dataset into dynamic random-access memory
If it's PMEM, will cache dataset into Intel Optane DC Persistent Memory
If it's a Int number n, will cache dataset into disk, and only hold 1/n
of the data into memory during the training. After going through the
1/n, we will release the current cache, and load another 1/n into
memory.
:param bigdl_type: numeric type
:return: A feature set
"""
Expand Down Expand Up @@ -249,9 +253,13 @@ def rdd(cls, rdd, memory_type="DRAM", bigdl_type="float"):
"""
Create FeatureSet from RDD.
:param rdd: A RDD
:param memory_type: string, DRAM or PMEM
:param memory_type: string, DRAM, PMEM or a Int number.
If it's DRAM, will cache dataset into dynamic random-access memory
If it's PMEM, will cache dataset into Intel Optane DC Persistent Memory
If it's a Int number n, will cache dataset into disk, and only hold 1/n
of the data into memory during the training. After going through the
1/n, we will release the current cache, and load another 1/n into
memory.
:param bigdl_type:numeric type
:return: A feature set
"""
Expand Down

0 comments on commit 095e11d

Please sign in to comment.