Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Case (0.15 sec)

  1. tensorflow/c/c_api.cc

        SINGLE_CASE(kF, TF_ATTR_FLOAT, -1);
        SINGLE_CASE(kB, TF_ATTR_BOOL, -1);
        SINGLE_CASE(kType, TF_ATTR_TYPE, -1);
        SINGLE_CASE(kShape, TF_ATTR_SHAPE,
                    attr->shape().unknown_rank() ? -1 : attr->shape().dim_size());
        SINGLE_CASE(kTensor, TF_ATTR_TENSOR, -1);
    #undef SINGLE_CASE
    
        case tensorflow::AttrValue::kList:
          metadata.is_list = 1;
          metadata.list_size = 0;
    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)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

                           const char* dst, TF_Status* status) {
      // If target is a directory return TF_FAILED_PRECONDITION.
      // Target might be missing, so don't error in that case.
      struct stat st;
      if (stat(dst, &st) != 0) {
        if (errno != ENOENT) {
          TF_SetStatusFromIOError(status, errno, dst);
          return;
        }
      } else if (S_ISDIR(st.st_mode)) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

           ++device_index) {
        DeviceThread* device_thread = device_threads_[device_index].get();
        per_device_output_tensors.push_back(device_thread->Join(status));
        // We will run every Join even if there are bad statuses in case the user
        // wants to recover and continue running ops on the parallel device (which
        // would otherwise deadlock).
        if (TF_GetCode(status) != TF_OK &&
            (first_bad_status == nullptr
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  4. tensorflow/c/c_api_experimental.cc

      // scheduled on that same threadpool, causing a deadlock in cases where the
      // caller of event_mgr->ThenExecute() blocks on the completion of the callback
      // (as in the case of ConstOp kernel creation on GPU, which involves copying a
      // CPU tensor to GPU).
      // Setting a larger thread pool does not help with the Swift caller, as we use
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  5. tensorflow/c/eager/dlpack.cc

      switch (data_type) {
        case TF_DataType::TF_BOOL:
          dtype.code = DLDataTypeCode::kDLBool;
          break;
        case TF_DataType::TF_HALF:
        case TF_DataType::TF_FLOAT:
        case TF_DataType::TF_DOUBLE:
          dtype.code = DLDataTypeCode::kDLFloat;
          break;
        case TF_DataType::TF_INT8:
        case TF_DataType::TF_INT16:
        case TF_DataType::TF_INT32:
        case TF_DataType::TF_INT64:
    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)
  6. tensorflow/c/eager/c_api_test.cc

      TFE_DeleteOp(original_var_op);
      TFE_DeleteOp(cloned);
      TF_DeleteStatus(status);
      TFE_DeleteContext(ctx);
    }
    
    TEST(CAPI, ShareVariableAcrossContextsWorks) {
      // TODO(shreepadma): Add a test case with isolate_session_state set to true.
      tensorflow::ServerDef server_def_0 = GetServerDef(3);
      server_def_0.mutable_default_session_config()->set_isolate_session_state(
          false);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  7. tensorflow/c/eager/c_api_experimental_test.cc

    #include "tensorflow/core/protobuf/config.pb.h"
    
    using tensorflow::string;
    
    namespace tensorflow {
    namespace {
    
    static bool HasSubstr(absl::string_view base, absl::string_view substr) {
      bool ok = absl::StrContains(base, substr);
      EXPECT_TRUE(ok) << base << ", expected substring " << substr;
      return ok;
    }
    
    TEST(CAPI, MonitoringCounter0) {
      TF_Status* status = TF_NewStatus();
      auto* counter =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  8. tensorflow/c/experimental/grappler/grappler.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    // This file extends/implements core graph optimizer base classes in terms of
    // the C API defined in grappler.h. A class "CSomething" represents a
    // "Something" that can be manipulated via calls in the C interface and a C
    // struct called "TP_Something".
    
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  9. tensorflow/c/eager/c_api.cc

      switch (default_value.value_case()) {
        case tensorflow::AttrValue::kS: {
          const string& v = default_value.s();
          TFE_OpSetAttrString(op, attr_name, v.data(), v.size());
          break;
        }
        case tensorflow::AttrValue::kI:
          TFE_OpSetAttrInt(op, attr_name, static_cast<int64_t>(default_value.i()));
          break;
        case tensorflow::AttrValue::kF:
    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)
  10. tensorflow/c/c_api_function_test.cc

    TEST_F(CApiFunctionTest, AppendHash) {
      DefineFunction("func_name_base", &func_, "Return something",
                     /*append_hash=*/true);
      tensorflow::FunctionDef fdef;
      ASSERT_TRUE(GetFunctionDef(func_, &fdef));
    #if (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
      ASSERT_EQ(string("func_name_base_ZpgUD4x8oqk"), fdef.signature().name());
    #else
      ASSERT_EQ(string("func_name_base_qaJ8jA8UmGY"), fdef.signature().name());
    #endif
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
Back to top