Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Dailey (0.2 sec)

  1. tensorflow/c/c_api.cc

        values[i] = TF_NewBuffer();
        status->status = MessageToBuffer(attr->list().shape(i), values[i]);
        if (!status->status.ok()) {
          // Delete everything allocated to far, the operation has failed.
          for (int j = 0; j <= i; ++j) {
            TF_DeleteBuffer(values[j]);
          }
          return;
        }
      }
    }
    
    void TF_OperationGetAttrTensor(TF_Operation* oper, const char* attr_name,
    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

        return;
      }
    
      struct stat st;
      fstat(fd, &st);
      if (S_ISDIR(st.st_mode)) {
        TF_SetStatus(status, TF_FAILED_PRECONDITION, "path is a directory");
      } else {
        const void* address =
            mmap(nullptr, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
        if (address == MAP_FAILED) {
          TF_SetStatusFromIOError(status, errno, path);
        } else {
          region->plugin_memory_region =
    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_test.cc

      EXPECT_NE(TF_GetCode(status.get()), TF_CANCELLED);
      EXPECT_EQ(TF_GetCode(status.get()), TF_INVALID_ARGUMENT);
      EXPECT_THAT(TF_Message(status.get()), HasSubstr("assertion failed"));
    
      // Note that future collectives with the same context do not work at the
      // moment; once canceled, the collective executor requires the program to be
      // restarted / context to be reset.
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_cluster_test.cc

      TFE_ContextUpdateServerDef(ctx, 0, serialized_update.data(),
                                 serialized_update.size(), status);
      EXPECT_NE(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      // Even after the prevoiusly failed cluster update, another update and op
      // execution should work fine as long as the provided server_def is valid.
      TFE_ContextUpdateServerDef(ctx, 0, serialized.data(), serialized.size(),
                                 status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      std::unique_ptr<WritableFile> new_file;
      status = env_->NewWritableFile(filepath, &new_file);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::FAILED_PRECONDITION);
    }
    
    TEST_P(ModularFileSystemTest, TestCreateFilePathIsInvalid) {
      const std::string filepath = GetURIForPath("a_file");
      std::unique_ptr<WritableFile> file;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_unified_experimental_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      // This should fail.
      TF_AbstractOpSetOpType(placeholder_op, "Placeholder", status.get());
      ASSERT_EQ(TF_FAILED_PRECONDITION, TF_GetCode(status.get()));
    
      TF_DeleteAbstractOp(placeholder_op);
      TF_DeleteExecutionContext(graph_ctx);
    }
    
    TEST_P(UnifiedCAPI, TF_AbstractOpSetOpNameAfterFinishingOpBuildingRaises) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      // Step 2: Load symbol for `TF_InitPlugin`
      void* dso_symbol;
      TF_RETURN_WITH_CONTEXT_IF_ERROR(
          env->GetSymbolFromLibrary(dso_handle, "TF_InitPlugin", &dso_symbol),
          "Failed to load TF_InitPlugin symbol for DSO: ", dso_path);
    
      // Step 3: Call `TF_InitPlugin`
      TF_FilesystemPluginInfo info;
      memset(&info, 0, sizeof(info));
      auto TF_InitPlugin =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

        counter.DecrementCount();
        if (!counter.WaitFor(std::chrono::seconds(10))) {
          // This avoids having the test time out, which is harder to debug.
          TF_SetStatus(status, TF_FAILED_PRECONDITION,
                       "desired concurrency not reached");
          return -1;
        }
        memset(buffer, 'x', n);
        TF_SetStatus(status, TF_OK, "");
        return n;
      };
      const int block_size = 8;
    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)
  9. tensorflow/c/c_api_test.cc

      EXPECT_EQ(TF_RESOURCE_EXHAUSTED,
                static_cast<TF_Code>(tensorflow::error::RESOURCE_EXHAUSTED));
      EXPECT_EQ(TF_FAILED_PRECONDITION,
                static_cast<TF_Code>(tensorflow::error::FAILED_PRECONDITION));
      EXPECT_EQ(TF_ABORTED, static_cast<TF_Code>(tensorflow::error::ABORTED));
      EXPECT_EQ(TF_OUT_OF_RANGE,
                static_cast<TF_Code>(tensorflow::error::OUT_OF_RANGE));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  10. tensorflow/c/env_test.cc

        TF_CreateDir(dirpath.c_str(), s);
        ASSERT_TF_OK(s) << "TF_CreateDir failed for " << dirpath << ": "
                        << TF_Message(s);
    
        ::tensorflow::string filepath =
            ::tensorflow::io::JoinPath(dirpath, "somefile.txt");
        TF_WritableFileHandle* handle;
        TF_NewWritableFile(filepath.c_str(), &handle, s);
        ASSERT_TF_OK(s) << "NewWritableFile failed for " << filepath << ": "
                        << TF_Message(s);
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Dec 10 20:52:48 GMT 2018
    - 4.2K bytes
    - Viewed (0)
Back to top