Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Unref (0.16 sec)

  1. tensorflow/c/experimental/gradients/math_grad_test.cc

        ASSERT_NO_FATAL_FAILURE(CheckTensorValue(outputs[1], dB_vals[i],
                                                 /*dims*/ {3, 3},
                                                 /*abs_error*/ 0));
        outputs[0]->Unref();
        outputs[1]->Unref();
      }
    }
    
    TEST_P(CppGradients, TestSqrtGrad) {
      AbstractTensorHandlePtr x;
      {
        AbstractTensorHandle* x_raw = nullptr;
        status_ = TestScalarTensorHandle<float, TF_FLOAT>(
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Apr 13 17:32:14 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/gradients/math_grad.cc

        return absl::OkStatus();
      }
      ~DivNoNanGradientFunction() override {
        for (auto input : forward_inputs_) {
          if (input) {
            input->Unref();
          }
        }
        for (auto output : forward_outputs_) {
          if (output) {
            output->Unref();
          }
        }
      }
    
     private:
      // TODO(b/174778737): Only hold needed inputs and outputs.
      vector<AbstractTensorHandle*> forward_inputs_;
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  3. tensorflow/c/eager/gradients.cc

    TapeTensor::TapeTensor(AbstractTensorHandle* handle) : handle_(handle) {
      handle_->Ref();
    }
    TapeTensor::TapeTensor(const TapeTensor& other) {
      handle_ = other.handle_;
      handle_->Ref();
    }
    TapeTensor::~TapeTensor() { handle_->Unref(); }
    
    int64_t TapeTensor::GetID() const { return ToId(handle_); }
    
    tensorflow::DataType TapeTensor::GetDType() const {
      return handle_->DataType();
    }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api.cc

      if (h == nullptr) return;
    
      tensorflow::profiler::TraceMe activity(
          "TFE_DeleteTensorHandle", tensorflow::profiler::TraceMeLevel::kInfo);
      if (h) {
        tensorflow::unwrap(h)->Unref();
      }
    }
    
    TF_DataType TFE_TensorHandleDataType(TFE_TensorHandle* h) {
      return static_cast<TF_DataType>(tensorflow::unwrap(h)->DataType());
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  5. tensorflow/c/c_api_function.cc

        return;
      }
      status->status = MessageToBuffer(it->second, output_attr_value);
    }
    
    void TF_DeleteFunction(TF_Function* func) {
      if (func == nullptr) {
        return;
      }
    
      func->record->Unref();
      func->record = nullptr;
      delete func;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  6. tensorflow/c/eager/dlpack.cc

      return tensor;
    }
    
    // Deleter for DLManagedTensor
    void DLManagedTensorDeleter(DLManagedTensor* arg) {
      TfDlManagedTensorCtx* owner =
          static_cast<TfDlManagedTensorCtx*>(arg->manager_ctx);
      owner->reference.Unref();
      delete owner;
    }
    
    // Converts TF_DATAType to DLPack data type.
    DLDataType GetDlDataType(TF_DataType data_type, TF_Status* status) {
      DLDataType dtype;
      dtype.lanes = 1;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  7. cmd/encryption-v1_test.go

    				t.Errorf("Case %d: unexpected err: %v", i, err)
    			}
    
    			oRef, lRef, skipRef, snRef, psRef := decryptedRangeRef(test.decSizes, skipLen, readLen, false)
    			if o != oRef || l != lRef || skip != skipRef || sn != snRef || ps != psRef {
    				t.Errorf("Case %d: test failed: %d %d %d %d %d (Ref: %d %d %d %d %d)",
    					i, o, l, skip, sn, ps, oRef, lRef, skipRef, snRef, psRef)
    			}
    		}
    
    		// Read the last 6Mib+1 bytes of the (decrypted)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Sep 24 04:17:08 GMT 2022
    - 19.9K bytes
    - Viewed (0)
Back to top