Haiping Chen
e5dfe90e9b
More SafeHandles.
2 years ago
Superpiffer
a7c9a75954
Use a local Status variable
Using a local reference ensure that the Status object cannot be disposed before the Dispose. This way it's also possible to use an external Status instance instead of the static one, if needed.
2 years ago
Haiping Chen
271dcefc15
fix keras model predict return result.
2 years ago
Haiping Chen
ec340eeff5
np.ones_like and np.zeros_like
2 years ago
Superpiffer
43625abe91
Removed use of tf.Status static instance
In multithreading .NET 4.8 applications, sometimes in Session finalizer the method c_api.TF_DeleteSession find f.Status static instance already disposed for some reason. No problem for .NET 6 application or with a single thread.
2 years ago
Oceania2018
ebfb3275cf
clean code.
3 years ago
Oceania2018
8dd1eecdbe
remove unnecessary variables.
4 years ago
Oceania2018
05443ead2b
refactor gradient tape.
4 years ago
Oceania2018
c341b37318
Don't dispose graph in LoadFromSavedModel.
4 years ago
Oceania2018
85139ed131
Fix Session.LoadFromSavedModel memroy leak.
4 years ago
Oceania2018
a4a4da9d30
np.permutation
4 years ago
Oceania2018
e73ed66b7c
add SafeTensorHandle to manage tensor handle reference.
4 years ago
Oceania2018
9c2d5c4897
fix NDArray creation in graph mode.
4 years ago
Oceania2018
2192f4d875
fix placeholder feeds value issue.
4 years ago
Oceania2018
4c51d1b678
fixt build_results.
4 years ago
Oceania2018
3231500660
linspace and meshgrid.
4 years ago
Oceania2018
f3eb31fb87
Built-in numpy api.
4 years ago
Oceania2018
48d96f4afc
return weights for load_weights.
4 years ago
Oceania2018
a6ee058d00
Memory leak in FuncGraph #727 .
4 years ago
Oceania2018
58d2daebfa
Fix graph instance in InputLayer.
4 years ago
Oceania2018
ba490102c1
clean code.
5 years ago
Oceania2018
e92aa44c1d
rename call to call_fn.
5 years ago
Oceania2018
e2f7be6d43
InputLayer for Keras.
5 years ago
Sam Harwell
5e2aa2bff5
Fix CS1711 (XML comment has a typeparam tag, but there is no type parameter by that name)
5 years ago
Sam Harwell
fe625866ad
Suppress CS0162 (Unreachable code detected)
5 years ago
Sam Harwell
33e17dff25
Mark SafeHandle interop constructors private
5 years ago
Sam Harwell
bfac6f7b6c
Implement SafeSessionOptionsHandle as a wrapper for TF_SessionOptions
5 years ago
Sam Harwell
6b48c0d208
Merge remote-tracking branch 'SciSharp/master' into safe-status-handle
5 years ago
Oceania2018
7d2d186fe3
Use shared status object.
5 years ago
Sam Harwell
d123f44322
Merge remote-tracking branch 'SciSharp/master' into safe-status-handle
5 years ago
Pavel Šavara
13b1b63b4e
fix NullReferenceException on session run with ITensorOrOperation signature
5 years ago
Sam Harwell
7a30362cdb
Implement SafeStatusHandle as a wrapper for TF_Status
5 years ago
Oceania2018
4893331bc5
Rename IObjectLife to ITensorFlowObject
5 years ago
dogvane
f10a72f747
1. 增加一个减法运算函数
2. 修正一个缺少参数处理的bug
5 years ago
Sam Harwell
a3795c880a
Renormalize all files
5 years ago
Oceania2018
ded0325f42
Change to NumSharp compact version.
5 years ago
Oceania2018
06c08c93de
ByteString #479
5 years ago
Matthew Moloney
2848c07f3b
Using ByteString instead of String
In TF ByteString is more of a byte buffer than valid utf8. Reading it as a String adds escape characters to non-valid utf8. Then converting it to utf16 causes separate issues. Going from ByteString to byte[] fixes both of these.
6 years ago
Eli Belash
448246b96b
Supported for forced singlethreading
- Separated multithreading related methods to classname.threading.cs partial file
- ops: Added enforce_singlethreading(), enforce_multithreading()
6 years ago
Oceania2018
1d9e2e57cd
overload session.run for 4 tuples.
6 years ago
Oceania2018
67949251b2
override graph
6 years ago
Oceania2018
6931d5c425
change Session(ConfigProto).
6 years ago
Eli Belash
d23eed0c34
Session.LoadFromSavedModel: Prevent optimization
6 years ago
Eli Belash
da70cdc790
Session.LoadFromSavedModel: Added fallback for non-absolute path
6 years ago
Eli Belash
dc4a4c22d8
Session.LoadFromSavedModel: Removed redundant .as_default() call.
6 years ago
Eli Belash
b2512954bf
Session: LoadFromSavedModel Fixed multithreading issue and added as_default() to the created session, fixed #380
6 years ago
Eli Belash
b252a07d29
BaseSession: Added transparent dtype conversion to feed_dict
6 years ago
Eli Belash
2259eb5196
Added process-wide locks to non-threadsafe calls. Added unit tests.
- Ignored all unit tests related to CSession as it does not use TF.NET's api directly and unable to be tested with other tests parallely.
6 years ago
Eli Belash
a539b9fd12
Merge branch 'gc-deallocation' into multithreading
6 years ago
Eli Belash
e4e62dd988
Tensor: Rewrite Creation to fix heap corruption.
TensorTest: Added Unit tests for more coverage, reformatted file.
c_api.tensor: Added overloads for TF_NewTensor that does not have deallocator parameters.
BaseSession: Removed disposal immediately after TF_SessionRun call.
c_api.DeallocatorArgs: Added DeallocatorArgs.Empty
6 years ago