Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for Oadd (0.16 sec)

  1. tensorflow/c/experimental/gradients/nn_grad.cc

        return absl::OkStatus();
      }
      ~SparseSoftmaxCrossEntropyWithLogitsGradientFunction() override {}
    
     private:
      vector<AbstractTensorHandle*> forward_outputs_;
    };
    
    // TODO(vnvo2409): Add python test
    class BiasAddGradientFunction : public GradientFunction {
     public:
      explicit BiasAddGradientFunction(AttrBuilder f_attrs)
          : forward_attrs_(f_attrs) {}
    
      Status Compute(AbstractContext* ctx,
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

      server_def.set_protocol("grpc");
      server_def.set_job_name(job_name);
      server_def.set_task_index(0);
      tensorflow::ClusterDef* cluster_def = server_def.mutable_cluster();
      tensorflow::JobDef* job_def = cluster_def->add_job();
      job_def->set_name(job_name);
      for (int i = 0; i < num_tasks; i++) {
        int port = tensorflow::testing::PickUnusedPortOrDie();
        job_def->mutable_tasks()->insert(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  3. tensorflow/c/c_api.cc

            return;
          }
          // We have a convoluted scheme here: Using the C++ graph construction API
          // to add potentially many nodes to the graph without running the checks
          // (such as uniqueness of the names of nodes) we run with other functions
          // that add a node to the graph (like TF_FinishOperation).
          if (!g->name_map.insert(std::make_pair(n->name(), n)).second) {
    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)
  4. tensorflow/c/eager/c_api_distributed_test.cc

          "      name: 'add1'"
          "      op: 'Add'"
          "      input: 'read0:value:0'"
          "      input: 'read1:value:0'"
          "      attr {"
          "        key: 'T'"
          "        value {"
          "          type: DT_FLOAT"
          "        }"
          "      }"
          "    }"
          "    node_def {"
          "      name: 'add2'"
          "      op: 'Add'"
          "      input: 'add1:z:0'"
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/grappler/grappler_test.cc

          TF_NewFunctionLibraryDefinition(g_buf, status);
    
      TF_LookUpOpDef(func, "Add", op_buf, status);
      string actual_string(reinterpret_cast<const char*>(op_buf->data),
                           op_buf->length);
      ASSERT_EQ(TF_OK, TF_GetCode(status));
    
      const OpDef* expected_op_def;
      TF_ASSERT_OK(OpRegistry::Global()->LookUpOpDef("Add", &expected_op_def));
      string expected_serialized;
    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)
  6. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

        std::string second_device =
            TFE_TensorHandleBackingDeviceName(components[1].get(), status.get());
        ASSERT_EQ(underlying_devices[1], second_device);
      }
    
      // Add a parallel tensor with different values on each device to the variable.
      {
        TensorHandlePtr value_one(FloatTensorHandle(3., status.get()));
        TensorHandlePtr value_two(FloatTensorHandle(-2., status.get()));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_function.cc

      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
            // artificial restriction and require that when num_opers=-1, such
    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)
  8. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

      summary = "{";
      std::vector<std::string> summarized_devices = device_.SummarizeDeviceNames();
      for (int component_index = 0; component_index < tensors_.size();
           ++component_index) {
        // TODO(allenl): Add a C API for summarizing tensors. Currently custom
        // devices limiting themselves to a C API (for ABI compatibility) would need
        // to implement summarization for component tensors themselves.
    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)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

        ParseGCSPath(test_dir, true, &bucket, &object, status);
        if (TF_GetCode(status) != TF_OK) {
          TF_DeleteStatus(status);
          return "";
        }
        TF_DeleteStatus(status);
    
        // We add a random value into `test_dir` to ensures that two consecutive
        // runs are unlikely to clash.
        std::random_device rd;
        std::mt19937 gen(rd());
        std::uniform_int_distribution<> distribution;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  10. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      TFE_OpSetAttrInt(op.get(), "group_size", group_size);
      TFE_OpSetAttrInt(op.get(), "group_key", 0);
      TFE_OpSetAttrInt(op.get(), "instance_key", 0);
      const std::string merge_op("Add");
      TFE_OpSetAttrString(op.get(), "merge_op", merge_op.c_str(),
                          merge_op.length());
      const std::string final_op("Id");
      TFE_OpSetAttrString(op.get(), "final_op", final_op.c_str(),
    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)
Back to top