You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
- using System.Collections.Generic;
- using System.Text;
-
- namespace Tensorflow
- {
- public class optimizer
- {
- public static _OptimizableVariable _get_processor(RefVariable v)
- {
- return new _RefVariableProcessor(v);
- }
- }
-
- public class _RefVariableProcessor : _OptimizableVariable
- {
- private RefVariable _v;
-
- public _RefVariableProcessor(RefVariable v)
- {
- _v = v;
- }
-
- public Tensor target()
- {
- return _v._ref();
- }
-
- public Operation update_op(Optimizer optimizer, Tensor g)
- {
- var update_op = optimizer._apply_dense(g, _v);
-
- return update_op;
- }
- }
- }
|