Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for over (0.16 sec)

  1. tensorflow/c/c_api.cc

    const char* TF_OperationName(TF_Operation* oper) {
      return oper->node.name().c_str();
    }
    
    const char* TF_OperationOpType(TF_Operation* oper) {
      return oper->node.type_string().c_str();
    }
    
    const char* TF_OperationDevice(TF_Operation* oper) {
      return oper->node.requested_device().c_str();
    }
    
    int TF_OperationNumOutputs(TF_Operation* oper) {
      return oper->node.num_outputs();
    }
    
    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/gradients.cc

      if (num_dims > TensorShape::MaxDimensions()) {
        return errors::InvalidArgument("Value specified for `", attr_name, "` has ",
                                       num_dims,
                                       " dimensions which is over the limit of ",
                                       TensorShape::MaxDimensions(), ".");
      }
      TensorShapeProto proto;
      if (num_dims < 0) {
        proto.set_unknown_rank(true);
      } else {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_test_util.cc

      TF_DeleteBuffer(buffer);
      TF_DeleteStatus(s);
      return ret;
    }
    
    bool GetNodeDef(TF_Operation* oper, tensorflow::NodeDef* node_def) {
      TF_Status* s = TF_NewStatus();
      TF_Buffer* buffer = TF_NewBuffer();
      TF_OperationToNodeDef(oper, buffer, s);
      bool ret = TF_GetCode(s) == TF_OK;
      EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    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/gradients/tape/tape_operation.cc

      if (num_dims > TensorShape::MaxDimensions()) {
        return errors::InvalidArgument("Value specified for `", attr_name, "` has ",
                                       num_dims,
                                       " dimensions which is over the limit of ",
                                       TensorShape::MaxDimensions(), ".");
      }
      TensorShapeProto proto;
      if (num_dims < 0) {
        proto.set_unknown_rank(true);
      } else {
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jun 07 01:53:35 GMT 2022
    - 9K bytes
    - Viewed (1)
  5. tensorflow/c/c_api_experimental.cc

    }
    
    // On success, returns a set of TF_Function instances from `text_proto` of
    // GraphDef type. These functions must be deleted by calling TF_DeleteFunction.
    //
    // If `mutate_proto_func` is non-NULL, run it over each FunctionDef proto,
    // before creating a TF_Function out of the possibly mutated proto.
    static std::vector<UniqueFuncPtr> CreateFunctionsFromTextProto(
        const char* text_proto,
    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)
  6. tensorflow/c/c_api_function.cc

        std::unordered_map<const Node*, std::vector<int>>* input_nodes)
        TF_EXCLUSIVE_LOCKS_REQUIRED(fn_body->mu) {
      input_tensors->reserve(ninputs);
      for (int i = 0; i < ninputs; ++i) {
        Node* node = inputs[i].oper ? &inputs[i].oper->node : nullptr;
        int idx = inputs[i].index;
    
        TF_RETURN_WITH_CONTEXT_IF_ERROR(
            fn_body->graph.IsValidOutputTensor(node, idx),
    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)
  7. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        return absl::OkStatus();
      }
    
      tensorflow::FullTypeDef FullType() const override {
        const FullTypeDef* ft;
        mutex_lock l(graph_->mu);
        graph_->graph.NodeType(output_.oper->node.name(), &ft);
        if (ft == nullptr) {
          return FullTypeDef();
        } else {
          return *ft;
        }
      }
    
      TF_Output output_;
    
      // For LLVM style RTTI.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  8. tensorflow/c/c_api_test.cc

      bool found_neg = false;
      size_t pos = 0;
      TF_Operation* oper;
      while ((oper = TF_GraphNextOperation(graph, &pos)) != nullptr) {
        if (oper == feed) {
          EXPECT_FALSE(found_placeholder);
          found_placeholder = true;
        } else if (oper == three) {
          EXPECT_FALSE(found_scalar_const);
          found_scalar_const = true;
        } else if (oper == add) {
          EXPECT_FALSE(found_add);
          found_add = true;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  9. tensorflow/c/eager/c_api_test.cc

                  "localhost:", tensorflow::testing::PickUnusedPortOrDie())});
    
      tensorflow::JobDef* job_def2 = cluster_def->add_job();
      job_def2->set_name("worker");
    
      // Copy over `host:port` at `task_index`
      for (auto task : cluster_server_def.cluster().job(0).tasks()) {
        if (task.first == task_index) {
          job_def2->mutable_tasks()->insert({task.first, task.second});
        }
      }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
Back to top