Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for destructors (0.16 sec)

  1. tensorflow/cc/framework/scope.cc

          size_t idx = -1;
          while ((idx = name.find(kScopeSeparator, idx + 1)) != string::npos) {
            (*name_map)[name.substr(0, idx)] = 0;
          }
        }
        // We provide null destructors for these shared ptrs (except for name_map)
        // since the caller owns them and doesn't want the scope to destroy them.
        return Scope(new Scope::Impl(
            std::shared_ptr<Graph>(graph, [](Graph*) {}),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. src/runtime/race.go

    	// already held it's assumed that the first caller exits the program
    	// so other calls can hang forever without an issue.
    	lock(&raceFiniLock)
    
    	// __tsan_fini will run C atexit functions and C++ destructors,
    	// which can theoretically call back into Go.
    	// Tell the scheduler we entering external code.
    	entersyscall()
    
    	// We're entering external code that may call ExitProcess on
    	// Windows.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. tensorflow/c/eager/tape.h

    //
    // Keeps references to Tensors watched via Watch and computed in Accumulate
    // corresponding to output_tensors, and releases these references in its
    // destructor. However, waiting until the destructor runs loses the memory
    // efficiency of forward-mode autodiff. Instead, language bindings should call
    // DeleteGradient as soon as a Tensor which was `Watch`ed or was an output
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 12:40:29 UTC 2024
    - 47.2K bytes
    - Viewed (0)
  4. tensorflow/cc/experimental/libtf/value.h

        return v;
      }
    
      /// Constructs a TaggedValue with type CAPSULE with a default destructor.
      template <class T>
      static TaggedValue Capsule(T* data) {
        return Capsule(static_cast<void*>(data),
                       [](void* x) { delete static_cast<T*>(x); });
      }
      /// Constructs a TaggedValue with type CAPSULE with a custom destructor.
      static TaggedValue Capsule(void* data, void (*deleter)(void*)) {
        TaggedValue v;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:23:45 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/device_compiler.h

      // completed by waiting for all stream executors to complete.
      compiler_client_->WaitForProgramsToFinish();
      // Wait for all outstanding compilations to finish.
      // Resetting the pointer explicitly in the top level destructor.
      // Without this, the pointer would be reset when the AsyncCompilationState
      // is destructed, which is dependent on the order of the members in the
      // DeviceCompiler class, which is error prone if the order changes.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/saved_model/core/tf_concrete_function_loading_test.cc

        TF_EXPECT_OK(status) << status.message();
        // The function should be registered with context.
        EXPECT_TRUE(context()->FindFunctionByName(func_name));
      }
    
      // After `result's` destructor runs, the function should no longer be
      // registered with context.
      EXPECT_FALSE(context()->FindFunctionByName(func_name));
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

              TF_EXPECT_OK(
                  ReadCache(&cache, "a", i * block_size, block_size, &out));
              std::vector<char> x(block_size, 'x');
              EXPECT_EQ(out, x);
            }));
      }
      // The `threads` destructor blocks until the threads can be joined, once their
      // respective reads finish (which happens once they are all concurrently being
      // executed, or 10 seconds have passed).
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 15 03:16:57 UTC 2021
    - 23.2K bytes
    - Viewed (0)
  8. src/runtime/sys_darwin_arm64.s

    	MOVD	8(R0), R1	// arg 2 sig
    	MOVD	0(R0), R0	// arg 1 thread
    	BL	libc_pthread_kill(SB)
    	RET
    
    TEXT runtime·pthread_key_create_trampoline(SB),NOSPLIT,$0
    	MOVD	8(R0), R1	// arg 2 destructor
    	MOVD	0(R0), R0	// arg 1 *key
    	BL	libc_pthread_key_create(SB)
    	RET
    
    TEXT runtime·pthread_setspecific_trampoline(SB),NOSPLIT,$0
    	MOVD	8(R0), R1	// arg 2 value
    	MOVD	0(R0), R0	// arg 1 key
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 18.3K bytes
    - Viewed (0)
Back to top