File tree 1 file changed +3
-3
lines changed
tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -404,7 +404,7 @@ public void attachFunction(ConcreteFunction function) {
404
404
*
405
405
* @param outerScope the pointer scope to attach the functions to.
406
406
*/
407
- synchronized List <NativeFunction > getNativeFunctions (PointerScope outerScope ) {
407
+ List <NativeFunction > getNativeFunctions (PointerScope outerScope ) {
408
408
try (Reference ref = ref ();
409
409
PointerScope scope = new PointerScope ()) {
410
410
TF_Status status = TF_Status .newStatus ();
@@ -438,7 +438,7 @@ synchronized List<NativeFunction> getNativeFunctions(PointerScope outerScope) {
438
438
* @return the found {@link ConcreteFunction}, or {@code null} if none were found with the correct
439
439
* name
440
440
*/
441
- public synchronized ConcreteFunction getFunction (String key ) {
441
+ public ConcreteFunction getFunction (String key ) {
442
442
try (Reference ref = ref ();
443
443
PointerScope scope = new PointerScope ()) {
444
444
List <NativeFunction > funcs = getNativeFunctions (scope );
@@ -458,7 +458,7 @@ public synchronized ConcreteFunction getFunction(String key) {
458
458
*
459
459
* @return all functions attached to this graph.
460
460
*/
461
- public synchronized List <ConcreteFunction > getFunctions () {
461
+ public List <ConcreteFunction > getFunctions () {
462
462
try (Reference ref = ref ();
463
463
PointerScope scope = new PointerScope ()) {
464
464
List <NativeFunction > funcs = getNativeFunctions (scope );
You can’t perform that action at this time.
0 commit comments