Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for cdef (0.14 sec)

  1. tensorflow/c/c_api.cc

      return nullptr;
    #else
      mutex_lock l(api_def_map->lock);
      if (!api_def_map->update_docs_called) {
        api_def_map->api_def_map.UpdateDocs();
        api_def_map->update_docs_called = true;
      }
      string name_str(name, name_len);
      const auto* api_def = api_def_map->api_def_map.GetApiDef(name_str);
      if (api_def == nullptr) {
        return nullptr;
      }
    
    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/eager/parallel_device/parallel_device_remote_test.cc

    tensorflow::ServerDef GetServerDef(const std::string& job_name, int num_tasks) {
      tensorflow::ServerDef server_def;
      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++) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  3. tensorflow/c/c_test_util.cc

          }
        }
      }
      return found_t && found_n;
    }
    
    bool IsNeg(const tensorflow::NodeDef& node_def, const string& input) {
      return node_def.op() == "Neg" && node_def.name() == "neg" &&
             node_def.input_size() == 1 && node_def.input(0) == input;
    }
    
    bool GetGraphDef(TF_Graph* graph, tensorflow::GraphDef* graph_def) {
      TF_Status* s = TF_NewStatus();
      TF_Buffer* buffer = TF_NewBuffer();
    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)
  4. tensorflow/c/experimental/grappler/grappler.cc

      tensorflow::GraphDef graph_def;
      absl::Status s = tensorflow::BufferToMessage(graph_buf, &graph_def);
      if (!s.ok()) {
        tsl::Set_TF_Status_from_Status(status, s);
        return nullptr;
      }
      return reinterpret_cast<TF_FunctionLibraryDefinition*>(
          new tensorflow::FunctionLibraryDefinition(
              tensorflow::OpRegistry::Global(), graph_def.library()));
    }
    
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  5. tensorflow/c/c_api_function.cc

      tensorflow::GradientDef gdef;
      gdef.set_function_name(func->record->fdef().signature().name());
      gdef.set_gradient_func(grad->record->fdef().signature().name());
      status->status = g->graph.AddGradientDef(std::move(gdef));
    }
    
    int TF_GraphNumFunctions(TF_Graph* g) {
      tensorflow::mutex_lock l(g->mu);
      return g->graph.flib_def().num_functions();
    }
    
    int TF_GraphGetFunctions(TF_Graph* g, TF_Function** funcs, int max_func,
    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)
  6. tensorflow/c/eager/c_api_distributed_test.cc

          "      value: 'add2:z:0'"
          "    }",
          &def));
      return def.SerializeAsString();
    }
    
    void TestFunctionWithPackedInput(const bool remote) {
      tensorflow::ServerDef server_def = GetServerDef(3);
    
      // This server def has the task index set to 0.
      string serialized = server_def.SerializeAsString();
    
      server_def.set_task_index(1);
      std::unique_ptr<tensorflow::GrpcServer> worker_server1;
    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)
  7. tensorflow/c/experimental/grappler/grappler_test.cc

                           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;
      expected_op_def->SerializeToString(&expected_serialized);
      EXPECT_EQ(expected_serialized, actual_string);
      TF_DeleteBuffer(g_buf);
      TF_DeleteBuffer(op_buf);
    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)
  8. tensorflow/c/c_api_experimental.cc

      for (const FunctionDef& fdef : fdef_lib.function()) {
        // Make a copy so that we can mutate it.
        FunctionDef fdef_to_load = fdef;
        if (mutate_proto_func) {
          (*mutate_proto_func)(&fdef_to_load);
        }
        VLOG(1) << "Adding func to graph: " << fdef_to_load.DebugString();
        std::vector<char> binary_proto_buf(fdef_to_load.ByteSizeLong());
        fdef_to_load.SerializeToArray(binary_proto_buf.data(),
    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)
  9. tensorflow/c/eager/graph_function.cc

    namespace tensorflow {
    namespace tracing {
    namespace graph {
    GraphFunction::GraphFunction(FunctionDef fdef)
        : AbstractFunction(kGraph),
          func_record_(new FunctionRecord(std::move(fdef), {}, true)) {}
    GraphFunction::~GraphFunction() {}
    Status GraphFunction::GetFunctionDef(const FunctionDef **fdef) {
      *fdef = &(func_record_->fdef());
      return absl::OkStatus();
    }
    }  // namespace graph
    }  // namespace tracing
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Mar 04 19:49:06 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_cluster_test.cc

      // Adding a non-existent remote worker to cluster def. This should cause the
      // UpdateServerDef call to fail.
      tensorflow::ClusterDef* cluster_def = server_def.mutable_cluster();
      tensorflow::JobDef* job_def = cluster_def->mutable_job(0);
      int port = tensorflow::testing::PickUnusedPortOrDie();
      job_def->mutable_tasks()->insert(
          {2, tensorflow::strings::StrCat("localhost:", port)});
      server_def.set_task_index(0);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
Back to top