get_dense_and_sparse_variable
Function
Obtains variables at the dense layer and sparse layer in a model.
Prototype
1 | def get_dense_and_sparse_variable() |
Return Value
- Success: variables at the dense layer and sparse layer
- Failure: An exception is thrown.
Example
1 2 | from mx_rec.util.variable import get_dense_and_sparse_variable dense_variables, sparse_variables = get_dense_and_sparse_variable() |
See Also
For details about the API call sequence and example, see Porting and Training.
Parent topic: Model APIs