Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for none (0.15 sec)

  1. tensorflow/c/c_api.cc

          // added since the last TF_SessionRun() call.
          for (auto id = session->last_num_graph_nodes; id < num_nodes; ++id) {
            Node* const node = graph.FindNodeId(id);
            if (node != nullptr && node->IsOp()) {
              NodeDef* const node_def = graph_def.add_node();
              *node_def = node->def();
            }
          }
          *graph_def.mutable_library() = graph.flib_def().ToProto();
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_experimental.cc

    using tensorflow::FunctionDef;
    using tensorflow::Node;
    using tensorflow::NodeBuilder;
    using tensorflow::Status;
    using tensorflow::errors::InvalidArgument;
    
    namespace {
    typedef std::unique_ptr<TF_Function, decltype(&TF_DeleteFunction)>
        UniqueFuncPtr;
    }
    
    // struct TF_Operation { tensorflow::Node node; };
    static TF_Operation* ToTF_Operation(Node* node) {
      return static_cast<TF_Operation*>(static_cast<void*>(node));
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/gradients/math_grad_test.cc

    }
    
    TEST_P(CppGradients, TestMatMulGrad) {
      // TODO(vnvo2409): Figure out why `gradient_checker` does not work very
      // well with `MatMul` and remove `TestMatMul*` in
      // `mnist_gradients_test` when done.
      GTEST_SKIP();
    
      float A_vals[] = {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f};
      int64_t A_dims[] = {3, 3};
      AbstractTensorHandlePtr A;
      {
        AbstractTensorHandle* A_raw;
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Apr 13 17:32:14 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  4. 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 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  5. tensorflow/c/c_test_util.cc

        }
      }
      return found_dtype && found_value;
    }
    
    bool IsAddN(const tensorflow::NodeDef& node_def, int n) {
      if (node_def.op() != "AddN" || node_def.name() != "add" ||
          node_def.input_size() != n) {
        return false;
      }
      bool found_t = false;
      bool found_n = false;
      for (const auto& attr : node_def.attr()) {
        if (attr.first == "T") {
          if (attr.second.type() == tensorflow::DT_INT32) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  6. tensorflow/c/env.cc

      options->guard_size = 0;
      options->numa_node = -1;
    }
    
    TF_Thread* TF_StartThread(const TF_ThreadOptions* options,
                              const char* thread_name, void (*work_func)(void*),
                              void* param) {
      ::tensorflow::ThreadOptions cc_options;
      cc_options.stack_size = options->stack_size;
      cc_options.guard_size = options->guard_size;
      cc_options.numa_node = options->numa_node;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_function.cc

        TF_EXCLUSIVE_LOCKS_REQUIRED(fn_body->mu) {
      if (num_opers == -1) {
        for (const Node* node : fn_body->graph.op_nodes()) {
          const auto& iter = input_nodes.find(node);
          if (iter == input_nodes.end()) {
            // This node is not referenced in inputs. Add it to the body.
            body_nodes->push_back(node);
          } else {
            // This node is referenced in inputs. Currently, we place an
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  8. tensorflow/c/eager/c_api_distributed_test.cc

                             bool* control_rets_updated) override {
        // Inject failure to function instantiation if finding a node that contains
        // the given node name (error_node_) and requested device (error_device_).
        for (const auto node : graph->get()->nodes()) {
          if (node->name().find(error_node_) != string::npos &&
              node->requested_device() == error_device_) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/grappler/grappler_test.cc

      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      for (const NodeDef& node : item.graph.node()) {
        if (node.op() == "AddN") {
          int num_values = 0;
          TF_GetInputPropertiesListSize(graph_properties, node.name().c_str(),
                                        &num_values, status);
          EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Apr 13 22:30:58 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  10. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
    
      TensorHandlePtr negative_one_cpu(FloatTensorHandle(3., status.get()));
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
      components[0] = negative_one_cpu.get();
      components[1] = negative_one_cpu.get();
      TensorHandlePtr first_negative_one = CreatePerDeviceValues(
          context.get(), components, first_device_name, status.get());
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
Back to top