Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for init (0.64 sec)

  1. tensorflow/c/c_api.cc

      for (const auto* edge : oper->node.out_edges()) {
        if (edge->IsControlEdge() && !edge->dst()->IsSink()) {
          ++count;
        }
      }
      return count;
    }
    
    int TF_OperationGetControlOutputs(TF_Operation* oper,
                                      TF_Operation** control_outputs,
                                      int max_control_outputs) {
      int count = 0;
      for (const auto* edge : oper->node.out_edges()) {
    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/eager/c_api_unified_experimental.cc

    void TF_OutputListSetNumOutputs(TF_OutputList* o, int num_outputs,
                                    TF_Status* s) {
      unwrap(o)->expected_num_outputs = num_outputs;
      unwrap(o)->outputs.clear();
      unwrap(o)->outputs.resize(num_outputs);
    }
    int TF_OutputListNumOutputs(TF_OutputList* o) {
      return unwrap(o)->outputs.size();
    }
    TF_AbstractTensor* TF_OutputListGet(TF_OutputList* o, int i) {
      return wrap(unwrap(o)->outputs[i]);
    }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/dlpack_test.cc

    namespace {
    
    void TestHandleFromDLPack(TF_Status* status, TFE_Context* ctx,
                              std::vector<int64_t> shape,
                              std::vector<int64_t> strides) {
      size_t num_elements = 1;
      for (int i = 0; i < static_cast<int32_t>(shape.size()); ++i) {
        num_elements *= shape[i];
      }
      std::vector<float> data(num_elements);
      for (size_t j = 0; j < num_elements; ++j) {
        data[j] = j;
      }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Jun 30 03:04:46 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      ops->filesystem_ops = static_cast<TF_FilesystemOps*>(
          plugin_memory_allocate(TF_FILESYSTEM_OPS_SIZE));
      ops->filesystem_ops->init = tf_posix_filesystem::Init;
      ops->filesystem_ops->cleanup = tf_posix_filesystem::Cleanup;
      ops->filesystem_ops->new_random_access_file =
          tf_posix_filesystem::NewRandomAccessFile;
    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)
  5. tensorflow/c/c_api_experimental.cc

    int TF_CheckpointReaderHasTensor(TF_CheckpointReader* reader,
                                     const char* name) {
      return reader->HasTensor(name);
    }
    
    const char* TF_CheckpointReaderGetVariable(TF_CheckpointReader* reader,
                                               int index) {
      return reader->variable_list[index].c_str();
    }
    
    int TF_CheckpointReaderSize(TF_CheckpointReader* reader) {
    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)
  6. tensorflow/c/c_api_test.cc

      }
    }
    
    TEST_F(CApiAttributesTest, EmptyList) {
      auto desc = init("list(int)");
      TF_SetAttrIntList(desc, "v", nullptr, 0);
      auto oper = TF_FinishOperation(desc, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_TF_META("v", 0, TF_ATTR_INT, -1);
    }
    
    TEST_F(CApiAttributesTest, Names) {
      auto desc = init("string");
      TF_SetAttrString(desc, "v", "bunny", 5);
    
    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)
  7. tensorflow/c/eager/c_api_experimental_test.cc

      // Create two contexts.
      int32_t init_timeout_in_ms = 300000;
      TFE_Context* ctx_0 =
          CreateContext(serialized_server_def_0,
                        /*isolate_session_state=*/false, init_timeout_in_ms);
      TFE_Context* ctx_1 =
          CreateContext(serialized_server_def_1,
                        /*isolate_session_state=*/false, init_timeout_in_ms);
    
      // Remote device on `worker2`.
    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/gradients/grad_test_helper.cc

      auto s = RunModel(grad_model, ctx, inputs, absl::MakeSpan(outputs),
                        /*use_function=*/use_function);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
    
      for (int i = 0; i < num_inputs; ++i) {
        if (!outputs[i]) continue;
    
        AbstractTensorHandlePtr numerical_grad;
        {
          AbstractTensorHandle* numerical_grad_raw;
          s = CalcNumericalGrad(ctx, model, inputs,
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/gradients/array_grad.cc

     public:
      Status Compute(AbstractContext* ctx,
                     absl::Span<AbstractTensorHandle* const> grad_outputs,
                     absl::Span<AbstractTensorHandle*> grad_inputs) override {
        for (int i = 0; i < grad_outputs.size(); i++) {
          auto grad_input = grad_outputs[i];
          // TODO(srbs): Should we add a copy contructor to AbstractTensorHandle
          // that takes care of this similar to `Tensor`?
    C++
    - Registered: Tue Apr 09 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/grappler/grappler.cc

      TF_RETURN_IF_ERROR(
          env->GetSymbolFromLibrary(dso_handle, "TF_InitGraph", &dso_symbol));
    
      // Step 2: Call `TF_InitPlugin`
      auto init_fn = reinterpret_cast<TFInitGraphPluginFn>(dso_symbol);
      return InitGraphPlugin(init_fn);
    }
    
    absl::Status InitGraphPlugin(TFInitGraphPluginFn init_fn) {
      TP_OptimizerRegistrationParams params{
          TP_OPTIMIZER_REGISTRATION_PARAMS_STRUCT_SIZE};
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
Back to top