Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,735 for status (0.2 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

        out->resize(bytes_transferred, n);
      }
      return status.status;
    }
    
    TEST(RamFileBlockCacheTest, IsCacheEnabled) {
      auto fetcher = [](const string& filename, size_t offset, size_t n,
                        char* buffer, TF_Status* status) -> int64_t {
        // Do nothing.
        TF_SetStatus(status, TF_OK, "");
        return 0;
      };
      tf_gcs_filesystem::RamFileBlockCache cache1(0, 0, 0, fetcher);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  2. tensorflow/c/eager/unified_api_testutil.cc

      *ctx = unwrap(TF_NewEagerExecutionContext(opts, status.get()));
      TF_RETURN_IF_ERROR(StatusFromTF_Status(status.get()));
      TFE_DeleteContextOptions(opts);
      return absl::OkStatus();
    }
    
    Status GetValue(AbstractTensorHandle* t, TF_Tensor** result_tensor) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TFE_TensorHandle* result_t =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  3. tensorflow/c/eager/immediate_execution_tensor_handle.h

      // Returns the device ID which created the handle.
      virtual int DeviceId(Status* status) const = 0;
      // Returns a tensor for the handle. If tensor is remote, it will be copied.
      virtual AbstractTensorInterface* Resolve(Status* status) = 0;
    
      std::string DebugString() const override;
    
      // Returns a Boolean hint indicating whether callers should prefer
      // `SummarizeValue` to resolving this handle and formatting the tensor.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Mar 10 21:56:24 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  4. tensorflow/c/c_op_requires.h

          ::tensorflow::Set_TF_Status_from_Status(C_STATUS, _s);      \
          TF_OpKernelContext_Failure(CTX, C_STATUS);                  \
          TF_DeleteStatus(C_STATUS);                                  \
          return;                                                     \
        }                                                             \
      } while (0)
    
    #define TF_CLEANUP_AND_RETURN_IF_ERROR(C_STATUS, BUFFER, __VA_ARGS__) \
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Aug 02 21:35:06 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  5. fastapi/exception_handlers.py

        headers = getattr(exc, "headers", None)
        if not is_body_allowed_for_status_code(exc.status_code):
            return Response(status_code=exc.status_code, headers=headers)
        return JSONResponse(
            {"detail": exc.detail}, status_code=exc.status_code, headers=headers
        )
    
    
    async def request_validation_exception_handler(
        request: Request, exc: RequestValidationError
    ) -> JSONResponse:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 19:08:14 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api.cc

      return tensorflow::wrap(tensorflow::unwrap(op)->GetContext());
    }
    
    void TFE_OpSetDevice(TFE_Op* op, const char* device_name, TF_Status* status) {
      status->status = tensorflow::unwrap(op)->SetDeviceName(device_name);
    }
    
    const char* TFE_OpGetDevice(const TFE_Op* op, TF_Status* status) {
      return tensorflow::unwrap(op)->DeviceName().c_str();
    }
    
    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)
  7. tensorflow/c/experimental/gradients/tape/tape_operation.cc

      return parent_op_->DeviceName();
    }
    Status TapeOperation::SetDeviceName(const char* name) {
      return parent_op_->SetDeviceName(name);
    }
    Status TapeOperation::AddInput(AbstractTensorHandle* input) {
      TF_RETURN_IF_ERROR(parent_op_->AddInput(input));
      forward_op_.inputs.push_back(input);
      return OkStatus();
    }
    Status TapeOperation::AddInputList(
        absl::Span<AbstractTensorHandle* const> inputs) {
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jun 07 01:53:35 GMT 2022
    - 9K bytes
    - Viewed (1)
  8. src/main/java/jcifs/smb1/smb1/SmbException.java

                int max = NT_STATUS_CODES.length - 1;
    
                while( max >= min ) {
                    int mid = (min + max) / 2;
    
                    if( errcode > NT_STATUS_CODES[mid] ) {
                        min = mid + 1;
                    } else if( errcode < NT_STATUS_CODES[mid] ) {
                        max = mid - 1;
                    } else {
                        return NT_STATUS_MESSAGES[mid];
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 5.5K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

      // Step 2: Initialize the opaque filesystem structure
      auto filesystem = std::make_unique<TF_Filesystem>();
      TF_Status* c_status = TF_NewStatus();
      Status status = OkStatus();
      core_filesystem_ops->init(filesystem.get(), c_status);
      status = Status(c_status->status);
      TF_DeleteStatus(c_status);
      if (!status.ok()) return status;
    
      // Step 3: Actual registration
      return Env::Default()->RegisterFileSystem(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 07 22:08:43 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  10. tensorflow/c/c_api.cc

      Tensor t;
      status->status = TF_TensorToTensor(value, &t);
      if (status->status.ok()) desc->node_builder.Attr(attr_name, t);
    }
    
    void TF_SetAttrTensorList(TF_OperationDescription* desc, const char* attr_name,
                              TF_Tensor* const* values, int num_values,
                              TF_Status* status) {
      status->status = absl::OkStatus();
      std::vector<Tensor> t;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
Back to top