Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for placeholder (0.23 sec)

  1. tensorflow/c/c_api.cc

    }
    
    void TF_SetAttrPlaceholder(TF_OperationDescription* desc, const char* attr_name,
                               const char* placeholder) {
      tensorflow::AttrValue attr_value;
      attr_value.set_placeholder(placeholder);
      desc->node_builder.Attr(attr_name, attr_value);
    }
    
    void TF_SetAttrFuncName(TF_OperationDescription* desc, 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/eager/c_api_unified_experimental_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      // Add a placeholder to the graph.
      auto* placeholder_op = TF_NewAbstractOp(graph_ctx);
      TF_AbstractOpSetOpType(placeholder_op, "Placeholder", status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      TF_AbstractOpSetOpName(placeholder_op, "my_ph", status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    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)
  3. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      TF_OperationDescription* placeholder_desc =
          TF_NewOperation(body.get(), "Placeholder", "Placeholder");
      TF_SetAttrType(placeholder_desc, "dtype", TF_FLOAT);
      TF_Operation* placeholder_op = TF_FinishOperation(placeholder_desc, status);
      if (TF_GetCode(status) != TF_OK) return;
      TF_Output x{placeholder_op, 0};
    
      TF_OperationDescription* reduce_desc =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  4. tensorflow/c/c_api_test.cc

      ASSERT_TRUE(GetGraphDef(graph, &graph_def));
    
      // Validate GraphDef is what we expect.
      bool found_placeholder = false;
      bool found_scalar_const = false;
      bool found_add = false;
      for (const auto& n : graph_def.node()) {
        if (IsPlaceholder(n)) {
          EXPECT_FALSE(found_placeholder);
          found_placeholder = true;
        } else if (IsScalarConst(n, 3)) {
          EXPECT_FALSE(found_scalar_const);
    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)
  5. tensorflow/c/c_api_experimental.cc

        return;
      }
    
      TF_Operation* placeholder_op = TF_GraphOperationByName(
          session->graph,
          tensorflow::strings::StrCat("arg_tensor_enqueue_", tensor_id).c_str());
      if (placeholder_op == nullptr) {
        status->status = tensorflow::errors::Internal(
            "Unable to find the placeholder node as input to enqueue in the TF "
            "graph.");
        return;
      }
    
    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_function.cc

      tensorflow::FunctionDef fdef;
      status->status = tensorflow::GraphToFunctionDef(
          fn_body->graph, fn_name, append_hash_to_fn_name != 0,
          /*set_stateful_from_nodes=*/true,
          /*copy_placeholder_attrs_from_nodes=*/true, body_nodes, input_tensors,
          output_tensors, output_names_vec, control_output_nodes,
          control_output_names_vec, description, &fdef);
      if (TF_GetCode(status) != TF_OK) {
        return nullptr;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  7. tensorflow/c/c_test_util.cc

      TF_OperationDescription* desc = TF_NewOperation(graph, "Placeholder", name);
      TF_SetAttrType(desc, "dtype", dtype);
      if (!dims.empty()) {
        TF_SetAttrShape(desc, "shape", dims.data(), dims.size());
      }
      *op = TF_FinishOperation(desc, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      ASSERT_NE(*op, nullptr);
    }
    
    TF_Operation* Placeholder(TF_Graph* graph, TF_Status* s, const char* name,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  8. tensorflow/c/c_api_function_test.cc

       *                 v   v
       */
      // Define
      TF_Operation* feed1 = Placeholder(func_graph_, s_, "feed1");
      TF_Operation* feed2 = Placeholder(func_graph_, s_, "feed2");
      Define(-1, {}, {feed1, feed2}, {feed2, feed1}, {});
    
      // Use, run, and verify
      TF_Operation* two = ScalarConst(2, host_graph_, s_);
      TF_Operation* func_feed = Placeholder(host_graph_, s_);
      TF_Operation* func_op = Use({two, func_feed});
    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)
  9. tensorflow/c/eager/c_api_experimental_test.cc

    }
    
    TEST(CAPI, Function_ident_CPU) {
      // First create a simple identity function.
      TF_Graph* function_graph = TF_NewGraph();
      TF_OperationDescription* arg_descr =
          TF_NewOperation(function_graph, "Placeholder", "arg");
      TF_SetAttrType(arg_descr, "dtype", TF_INT32);
      TF_Status* status = TF_NewStatus();
      TF_Operation* arg = TF_FinishOperation(arg_descr, status);
      ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
    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)
  10. tensorflow/c/c_api_experimental_test.cc

          TF_NewGraph(), TF_DeleteGraph);
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> s(TF_NewStatus(),
                                                               TF_DeleteStatus);
    
      TF_Operation* feed = Placeholder(func_graph.get(), s.get());
      TF_Operation* neg = Neg(feed, func_graph.get(), s.get());
    
      TF_Output inputs[] = {{feed, 0}};
      TF_Output outputs[] = {{neg, 0}};
    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)
Back to top