Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for destroy_resource_ (0.12 sec)

  1. tensorflow/c/experimental/saved_model/core/revived_types/restored_resource.cc

      // did not have their destroy_resource function saved, meaning they will
      // leak resources.
      //
      // Check that handle is null before calling destroy_resource function in case
      // destructor is invoked unintentionally.
      if (destroy_resource_ != nullptr && handle() != nullptr) {
        Status status = ExecuteNoArgDummyReturnFunction(destroy_resource_);
        if (!status.ok()) {
          LOG(WARNING)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/ops/variable_ops.h

    // the cleanup that occurs in a tf.Variable's EagerResourceDeleter:
    // https://github.com/tensorflow/tensorflow/blob/516608035f85cec8b126712b0ff8407220206b22/tensorflow/python/ops/resource_variable_ops.py#L289-L290
    Status DestroyResource(ImmediateExecutionContext* ctx,
                           ImmediateExecutionTensorHandle* handle);
    
    }  // namespace internal
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 21:44:45 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/core/ops/variable_ops.cc

        return errors::Internal("Unexpected tensor handle kind.");
      }
      output->reset(
          reinterpret_cast<ImmediateExecutionTensorHandle*>(owned_value.release()));
      return Status();
    }
    
    Status DestroyResource(ImmediateExecutionContext* ctx,
                           ImmediateExecutionTensorHandle* handle) {
      ImmediateOpPtr destroy_op(ctx->CreateOperation());
      TF_RETURN_IF_ERROR(destroy_op->Reset("DestroyResourceOp", nullptr));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 11:28:19 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top