Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 47 for stats (0.14 sec)

  1. tensorflow/c/eager/c_api_experimental.cc

      if (h == nullptr) {
        status->status = tensorflow::errors::InvalidArgument("Invalid handle");
        return -1;
      }
      return tensorflow::unwrap(h)->DeviceId(&status->status);
    }
    
    TF_CAPI_EXPORT extern void TFE_TensorHandleGetStatus(TFE_TensorHandle* h,
                                                         TF_Status* status) {
      status->status = tensorflow::unwrap(h)->TensorHandleStatus();
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  2. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.cc

      }
      return pjrt_c_api_client;
    }
    
    absl::Status ResetPjRtClient(const DeviceType& device_type) {
      ResourceMgr* rmgr = tfrt_global::GetTFGlobalResourceMgr();
      PjRtState* pjrt_state;
      TF_RETURN_IF_ERROR(rmgr->Lookup(rmgr->default_container(),
                                      kPjRtStateResourceName, &pjrt_state));
      TF_RETURN_IF_ERROR(pjrt_state->MovePjRtClientToUnused(device_type));
      return absl::OkStatus();
    }
    
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_test_util.cc

      TF_DeleteStatus(status);
    
      return var_handle;
    }
    
    TFE_Op* AddOp(TFE_Context* ctx, TFE_TensorHandle* a, TFE_TensorHandle* b) {
      TF_Status* status = TF_NewStatus();
    
      TFE_Op* op = TFE_NewOp(ctx, "AddV2", status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_OpAddInput(op, a, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_OpAddInput(op, b, status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
  4. tensorflow/c/eager/c_api.cc

      if (h == nullptr) {
        status->status = tensorflow::errors::InvalidArgument("Invalid handle");
        return nullptr;
      }
      return tensorflow::unwrap(h)->BackingDeviceName(&status->status);
    }
    
    TF_CAPI_EXPORT extern TFE_TensorHandle* TFE_TensorHandleCopySharingTensor(
        TFE_TensorHandle* h, TF_Status* status) {
      if (h == nullptr) {
    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/eager/c_api_remote_test_util.cc

                                  status);
        CHECK_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    
        matmul = TFE_NewOp(ctx, "MatMulFunction", status);
        ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
        TFE_OpAddInput(matmul, h0_task0, status);
        ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 9.1K bytes
    - Viewed (0)
  6. tensorflow/c/c_api_experimental_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      EXPECT_EQ(assign, 1);
      int id = TF_OpIsStateful("Identity", status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      EXPECT_EQ(id, 0);
    }
    
    class ShapeInferenceTest : public ::testing::Test {
     protected:
      ShapeInferenceTest()
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  7. tensorflow/c/eager/c_api_unified_experimental_graph.cc

      }
    
      tensorflow::Status Shape(
          tensorflow::PartialTensorShape* shape) const override {
        DCHECK(shape != nullptr);
        TF_Status status;
        int num_dims = TF_GraphGetTensorNumDims(graph_, output_, &status);
        DCHECK_GE(num_dims, -1);
        TF_RETURN_IF_ERROR(StatusFromTF_Status(&status));
        if (num_dims == kUnknownRank) {
          return absl::OkStatus();
        }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  8. tensorflow/c/eager/unified_api_testutil.cc

      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 =
          TF_AbstractTensorGetEagerTensor(wrap(t), status.get());
      TF_RETURN_IF_ERROR(StatusFromTF_Status(status.get()));
    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)
  9. tensorflow/c/eager/unified_api_test.cc

    namespace {
    class UnifiedAPI
        : public ::testing::TestWithParam<std::tuple<const char*, bool, bool>> {
     protected:
      void SetUp() override {
        TF_StatusPtr status(TF_NewStatus());
        TF_SetTracingImplementation(std::get<0>(GetParam()), status.get());
        Status s = StatusFromTF_Status(status.get());
        CHECK_EQ(errors::OK, s.code()) << s.message();
      }
    
     public:
      bool UseMlir() const { return strcmp(std::get<0>(GetParam()), "mlir") == 0; }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  10. 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)
Back to top