Jucko13
93a242c08a
Implemented support for loading Concatenate layers
model.load_model now supports loading of concatenate layers.
python tensorflow exports concatenate layers in an extra nested array in the manifest so added a check for that in generic_utils.cs.
Concatenate was missing the build=true, this fix prevents the layer being build multiple times.
Concatenate has 2 or more input nodes so List<NodeConfig> was required instead of just NodeConfig in Functional.FromConfig.cs.
Added missing axis JsonProperty attribute for MergeArgs (used by Concatenate)
2 years ago
dogvane
baf620a3e8
解决keras模式下,使用GPU训练时会爆显存的bug。
观察到的现象是,一些模型增大batchsize后,会在首个epoch的中途爆显存不足,只要过了一个epoch后,就能完整训练。同样的batchsize在python下能设置大得多的值。
最后使用最小训练代码分析出,是每个step之后,图片加载到显存里的数据没有释放导致的。
在寻找释放显存接口没有结果的时候,直接使用了GC.Collect();可以让显存主动回收。
因此当前的修复方案是在每个step里,都执行一次 GC.Collect(); 用来释放显存资源。
2 years ago
Wanglongzhi2001
a1c64effcf
feat: add the implementation of class_weight in model.fit
2 years ago
hchen
0f02885dfb
Allow Model to cache weights.
2 years ago
Wanglongzhi2001
f5af07ce5e
feat: add the implementation of sample_weight in model.fit
2 years ago
Asaf Agami
1142828855
fix: model does not stop on stop_training == true
2 years ago
Haiping Chen
b2fe5ca080
Fix LSTM crash in release mode.
2 years ago
dogvane
fa213eb54c
change "bool training" => "bool? training"
the bool to tensor has a bug, if in init the training is False, the program not start.
2 years ago
Wanglongzhi2001
8ebe3e31e3
fix: fix the bug of repeated progress bar in Model.fit()
2 years ago
Wanglongzhi2001
35d2e107f3
refactor model.evaluate to deal with confilict
2 years ago
Wanglongzhi2001
cb31cf46c6
feat: support training of RNN
2 years ago
Luc Bologna
a8288af655
Update Model.Evaluate.cs
2 years ago
Luc Bologna
0effee430c
Update Model.Evaluate.cs
Fix my bad:
Bad handling between test_function and test_step_multi_inputs_function.
2 years ago
Luc BOLOGNA
f7208c9494
Refactor: Model.Evaluate.cs
2 years ago
Luc BOLOGNA
02cb239c5f
Refactor: Change Model evaluate
IModel.Dictionary<string, float> evaluate(NDArray, NDArray, ...) is now IModel.Dictionary<string, float> evaluate(Tensor, Tensor, ...)
Merge Model.Evaluate.test_step_multi_inputs_function(...) and Model.Evaluate.test_function(...)
Note: An internal function need to add an explicit cast in Tensor
2 years ago
Yaohui Liu
675b93a9d7
fix: none gradient error when training LSTM.
2 years ago
Yaohui Liu
f1fbcf2016
feat: support model building with RNN.
2 years ago
Yaohui Liu
46e190dbfc
feat: add RNN basic framework.
2 years ago
Luc BOLOGNA
e9f2caca57
Update PredictInternational on Model.Predict.cs
Fix issue if data_handler.steps() > 1
2 years ago
AsakusaRinne
4bca319eb4
fix: temporarily fix the sequential nest error.
2 years ago
Yaohui Liu
1c8f0a2d14
refactor: gen_nn_ops, gen_math_ops, gen_array_ops and related codes.
2 years ago
Kevin Hjelden
93cd2b66a6
fix: predict with multiple outputs
2 years ago
Yaohui Liu
9349ec4829
Add Tensorflow.NET.Hub and support loading bert.
2 years ago
Yaohui Liu
747e6585e7
Change type of BuildInputShape to KerasShapesWrapper.
2 years ago
Wanglongzhi2001
426a55ce7b
Add set_weights and get_weights APIs
2 years ago
Wanglongzhi2001
f4e7fd47e7
Merge branch 'master' of github.com:Wanglongzhi2001/TensorFlow.NET into dev1
2 years ago
Wanglongzhi2001
78bd4c758e
Add api set_weights and get_weights
2 years ago
Yaohui Liu
9420ba3243
Fix the error of loaded function model backward.
2 years ago
Yaohui Liu
fd1eb40f25
Partially support the backward of loaded function model.
2 years ago
Yaohui Liu
6a9ccea29f
Resolve some wrong implementations.
2 years ago
Yaohui Liu
4c1878bb62
Merge branch 'master' into support_function_load
2 years ago
Yaohui Liu
4252952208
Fix the error that loaded concrete function does not work.
2 years ago
AsakusaRinne
3943375b67
Support loading weights for customized layer.
2 years ago
AsakusaRinne
acae9b3e39
Partially support the analysis of loaded functions.
2 years ago
wangdapao666
fb1a863429
delete a typo in last commit
2 years ago
wangdapao666
539110b5ee
Fix validate_split has no output and add validation_data parameter to model.fit
2 years ago
wangdapao666
0433b3757d
Add an Stop_training attribute
2 years ago
Haiping Chen
c71745c041
model compile overload.
2 years ago
wangdapao666
36adf6ab64
Add EarlyStopping callback
2 years ago
Haiping Chen
3aa2738570
Add layers.Normalization.
2 years ago
wangdapao666
544ff9125b
Fix model.evaluate don't have output
2 years ago
wangdapao666
89fe0bb59a
Fix model.evaluate don't have output
2 years ago
Yaohui Liu
3db092b929
Support mutiple inputs of keras modek.predict.
2 years ago
Yaohui Liu
e5837dc8b3
Resolve the comment.
2 years ago
Yaohui Liu
404c803ce2
Support the multiple inputs of keras model.fit.
2 years ago
Haiping Chen
cbf2d81d6b
ICallback
2 years ago
Yaohui Liu
52b513d750
Support loading of SavedModel format ( #989 )
* Add CheckpointReader and corresponding C APIs.
* Add essential components of SavedModel format loading.
* Add checkpoint reading for SavedModel format loading.
* Revise customized json converters.
* Add support for loading models from python.
* Fix the duplicated weights in Keras.Model.
* Add alexnet loading test and check for loaded weights.
* Fix ci error caused by branch merge.
* Resolve the comments and errors.
* Fix the stucking of training when loading model.
* Fix the stucking of training when loading model.
* fix intptr.
---------
Co-authored-by: Haiping Chen <haiping008@gmail.com>
2 years ago
Haiping Chen
922139ff75
Set mean of all classes in F1 Score.
2 years ago
Haiping Chen
9e877d1c15
Add metrics of BinaryAccuracy, CategoricalAccuracy, CategoricalCrossentropy.
2 years ago
Haiping Chen
0ee50d319e
Add double to NDArrayConverter.
2 years ago