Example #1
0
        public new CSRNDArray ToSType(StorageStype stype)
        {
            if (stype == StorageStype.Csr)
            {
                throw new Exception("cast_storage from row_sparse to Csr is not supported");
            }

            return((CSRNDArray)nd.CastStorage(this, stype));
        }
Example #2
0
 public Parameter(string name, OpGradReq grad_req = OpGradReq.Write, Shape shape = null, DType dtype = null,
                  float lr_mult           = 1.0f, float wd_mult      = 1.0f, Initializer init = null, bool allow_deferred_init = false,
                  bool differentiable     = true, StorageStype stype = StorageStype.Default,
                  StorageStype grad_stype = StorageStype.Default)
 {
     Name                     = name;
     Lr_Mult                  = lr_mult;
     Wd_Mult                  = wd_mult;
     Init                     = init;
     GradReg                  = grad_req;
     _shape                   = shape;
     DataType                 = dtype ?? DType.Float32;
     this.differentiable      = differentiable;
     Stype                    = stype;
     Grad_Stype               = grad_stype;
     this.allow_deferred_init = allow_deferred_init;
     grad_req                 = OpGradReq.Null;
     _ctx_map                 = new Dictionary <int, List <int> >();
 }
 public KerasSymbol(Symbol mxnet_symbol, StorageStype stype = StorageStype.Default, KerasSymbol[] neighbors = null, bool is_var = false)
 {
     throw new NotImplementedException();
 }
Example #4
0
 public virtual (StorageStype[], StorageStype[], StorageStype[]) InferStorageType(StorageStype in_stype)
 {
     throw new NotImplementedException();
 }