Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for destructors (0.33 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. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    	return sb.String()
    }
    
    // Destructor is a destructor.
    type Destructor struct {
    	Name AST
    }
    
    func (d *Destructor) print(ps *printState) {
    	ps.writeByte('~')
    	ps.print(d.Name)
    }
    
    func (d *Destructor) Traverse(fn func(AST) bool) {
    	if fn(d) {
    		d.Name.Traverse(fn)
    	}
    }
    
    func (d *Destructor) Copy(fn func(AST) AST, skip func(AST) bool) AST {
    	if skip(d) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
  5. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-test-part.h

    namespace testing {
    
    // A copyable object representing the result of a test part (i.e. an
    // assertion or an explicit FAIL(), ADD_FAILURE(), or SUCCESS()).
    //
    // Don't inherit from TestPartResult as its destructor is not virtual.
    class GTEST_API_ TestPartResult {
     public:
      // The possible outcomes of a test part (i.e. an assertion or an
      // explicit SUCCEED(), FAIL(), or ADD_FAILURE()).
      enum Type {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. src/runtime/cgo/gcc_libinit.c

    			pthread_cond_wait(&runtime_init_cond, &runtime_init_mu);
    		}
    
    		// The key and x_cgo_pthread_key_created are for the whole program,
    		// whereas the specific and destructor is per thread.
    		if (x_cgo_pthread_key_created == 0 && pthread_key_create(&pthread_g, pthread_key_destructor) == 0) {
    			x_cgo_pthread_key_created = 1;
    		}
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 01:07:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/cc/client/client_session.cc

      Status status = NewSession(session_options, &new_session);
      TF_CHECK_OK(status) << status;
      impl_.reset(new Impl(new_session, scope.graph_as_shared_ptr()));
      CHECK_NOTNULL(impl()->session_.get());
    }
    
    // Define destructor here so we can forward declare `Impl` in client_session.h.
    // If we define a dtor in the header file or use the default dtor,
    // unique_ptr<Impl> needs the complete type.
    ClientSession::~ClientSession() {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 09:04:10 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op.cc

        }
      }
    
      ~CalibrationStatisticsSaverOp() override {
        // Save to file during destruction so we only save it once.
        // TODO - b/335044516 : Find a way to flush outside of the destructor.
        CalibrationStatisticsMap statistics_map;
        for (const auto& [id, collector] : id_to_collector_) {
          std::optional<CalibrationStatistics> statistics =
              collector->GetStatistics();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. 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)
Back to top