com
.
tencent
.
angel
.
ml
.
core
.
variable
PSVariable
Related Docs:
object PSVariable
|
package variable
abstract
class
PSVariable
extends
Variable
Linear Supertypes
Variable
,
TrainCycle
,
AnyRef
,
Any
Known Subclasses
PSBlasMatVariable
,
PSEmbedVariable
,
PSMatVariable
,
PSVecVariable
Ordering
Alphabetic
By Inheritance
Inherited
PSVariable
Variable
TrainCycle
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
PSVariable
(
name:
String
,
rowType:
RowType
,
updater:
Updater
,
formatClassName:
String
,
allowPullWithIndex:
Boolean
)
(
implicit
conf:
SharedConf
,
variableManager:
VariableManager
,
cilsImpl:
CILSImpl
)
Abstract Value Members
abstract
def
doInit
(
taskFlag:
Int
)
:
Unit
Attributes
protected
Definition Classes
Variable
abstract
def
doPull
(
epoch:
Int
,
indices:
Vector
)
:
Unit
Attributes
protected
Definition Classes
Variable
abstract
def
doPush
(
grad:
Matrix
,
alpha:
Double
)
:
Unit
Attributes
protected
Definition Classes
Variable
abstract
def
getMatrixCtx
:
MatrixContext
abstract
val
numFactors
:
Int
abstract
def
rowsSaved
(
withSlot:
Boolean
=
false
)
:
Array
[
Int
]
Attributes
protected
Concrete Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
val
allowPullWithIndex
:
Boolean
Definition Classes
Variable
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
implicit
val
conf
:
SharedConf
Definition Classes
Variable
def
create
[
T
]
(
envCtx:
EnvContext
[
T
]
)
:
Unit
Definition Classes
Variable → TrainCycle
var
ctx
:
MatrixContext
Attributes
protected
def
doCreate
[
T
]
(
envCtx:
EnvContext
[
T
]
)
:
Unit
Attributes
protected
Definition Classes
PSVariable
→ Variable
def
doLoad
[
T
]
(
envCtx:
EnvContext
[
T
]
,
path:
String
,
conf:
Configuration
)
:
Unit
Attributes
protected
Definition Classes
PSVariable
→ Variable
def
doRelease
[
T
]
(
envCtx:
EnvContext
[
T
]
)
:
Unit
Attributes
protected
Definition Classes
PSVariable
→ Variable
def
doSave
[
T
]
(
envCtx:
EnvContext
[
T
]
,
path:
String
)
:
Unit
Attributes
protected
Definition Classes
PSVariable
→ Variable
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
val
formatClassName
:
String
Definition Classes
Variable
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
getMatrixId
:
Int
def
getMatrixSaveContext
(
withSlot:
Boolean
=
false
)
:
MatrixSaveContext
def
getState
:
VarState
Definition Classes
TrainCycle
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
def
init
(
taskFlag:
Int
,
mean:
Double
,
stddev:
Double
)
:
Unit
Definition Classes
PSVariable
→ Variable → TrainCycle
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
load
[
T
]
(
envCtx:
EnvContext
[
T
]
,
path:
String
,
conf:
Configuration
)
:
Unit
Definition Classes
Variable → TrainCycle
val
lock
:
ReentrantReadWriteLock
Attributes
protected
Definition Classes
TrainCycle
var
matrixId
:
Int
Attributes
protected
var
mean
:
Double
Attributes
protected
Definition Classes
Variable
val
name
:
String
Definition Classes
Variable
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
val
numSlot
:
Int
Attributes
protected
Definition Classes
Variable
def
pull
(
epoch:
Int
,
indices:
Vector
)
:
Unit
Definition Classes
Variable → TrainCycle
def
push
(
grad:
Matrix
,
alpha:
Double
)
:
Unit
Definition Classes
Variable → TrainCycle
val
readLock
:
ReadLock
Attributes
protected
Definition Classes
TrainCycle
def
release
[
T
]
(
envCtx:
EnvContext
[
T
]
)
:
Unit
Definition Classes
Variable
val
rowType
:
RowType
Definition Classes
Variable
def
save
[
T
]
(
envCtx:
EnvContext
[
T
]
,
path:
String
)
:
Unit
Definition Classes
Variable → TrainCycle
def
setState
(
state:
VarState
)
:
Unit
Definition Classes
TrainCycle
var
state
:
VarState
Attributes
protected
Definition Classes
TrainCycle
var
stddev
:
Double
Attributes
protected
Definition Classes
Variable
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
transSate
(
from:
VarState
,
to:
VarState
)
:
Unit
Attributes
protected
Definition Classes
TrainCycle
def
update
[
T
]
(
epoch:
Int
,
batchSize:
Int
)
:
Future
[
T
]
Definition Classes
Variable → TrainCycle
val
updater
:
Updater
Definition Classes
Variable
implicit
val
variableManager
:
VariableManager
Definition Classes
Variable
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
val
writeLock
:
WriteLock
Attributes
protected
Definition Classes
TrainCycle
Inherited from
Variable
Inherited from
TrainCycle
Inherited from
AnyRef
Inherited from
Any
Ungrouped