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