Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for DebugString (0.29 sec)

  1. tensorflow/c/eager/immediate_execution_tensor_handle.cc

    #include "tensorflow/c/eager/immediate_execution_tensor_handle.h"
    
    namespace tensorflow {
    
    std::string ImmediateExecutionTensorHandle::DebugString() const {
      PartialTensorShape shape;
      std::string shape_string;
      if (Shape(&shape).ok()) {
        shape_string = shape.DebugString();
      } else {
        shape_string = "<error computing shape>";
      }
      std::string value_string;
      if (!SummarizeValue(value_string).ok()) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  2. tensorflow/c/checkpoint_reader.cc

    CheckpointReader::GetVariableToDataTypeMap() const {
      CHECK(var_to_data_type_map_);
      return *var_to_data_type_map_;
    }
    
    const string CheckpointReader::DebugString() const {
      if (reader_ != nullptr) return reader_->DebugString();
      return v2_reader_->DebugString();
    }
    
    void CheckpointReader::GetTensor(
        const string& name, std::unique_ptr<tensorflow::Tensor>* out_tensor,
        TF_Status* out_status) const {
      Status status;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Aug 25 21:29:12 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_experimental.cc

      tensorflow::mutex_lock c(graph->mu);
      const auto& debug_str = graph->graph.ToGraphDefDebug().DebugString();
      *len = debug_str.size();
      char* ret = static_cast<char*>(malloc(*len + 1));
      memcpy(ret, debug_str.c_str(), *len + 1);
      return ret;
    }
    
    char* TF_FunctionDebugString(TF_Function* func, size_t* len) {
      const auto& debug_str = DebugString(func->record->fdef());
      *len = debug_str.size();
    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)
  4. tensorflow/c/checkpoint_reader.h

    // variables.
    class CheckpointReader {
     public:
      CheckpointReader(const string& filename, TF_Status* status);
    
      bool HasTensor(const string& name) const;
      const string DebugString() const;
    
      // Returns a map from variable names to their shapes.  Slices of a partitioned
      // tensor are combined into a single entry.
      const TensorSliceReader::VarToShapeMap& GetVariableToShapeMap() const;
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 12 08:49:52 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  5. tensorflow/c/eager/abstract_tensor_handle.cc

    #include "tensorflow/c/eager/abstract_tensor_handle.h"
    
    namespace tensorflow {
    
    std::string AbstractTensorHandle::DebugString() const {
      PartialTensorShape shape;
      Status s = Shape(&shape);
      std::string shape_string;
      if (!s.ok()) {
        shape_string = "<error computing shape>";
      } else {
        shape_string = shape.DebugString();
      }
      return absl::StrCat("TensorHandle(shape=", shape_string,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  6. tensorflow/c/c_api_function_test.cc

      // Get attr
      AttrValue read_attr;
      GetAttr("test_attr_name", &read_attr);
      ASSERT_EQ(attr.DebugString(), read_attr.DebugString());
    
      // Retrieve the same attr after save/restore
      Reincarnate();
      AttrValue read_attr2;
      GetAttr("test_attr_name", &read_attr2);
      ASSERT_EQ(attr.DebugString(), read_attr2.DebugString());
    }
    
    TEST_F(CApiFunctionTest, Description) {
    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)
  7. tensorflow/c/c_api_test.cc

      *added_node = node_def;
      EXPECT_EQ(graph_def.DebugString(), graph_def2.DebugString());
    
      // Look up some nodes by name.
      TF_Operation* neg2 = TF_GraphOperationByName(graph, "neg");
      EXPECT_TRUE(neg == neg2);
      NodeDef node_def2;
      ASSERT_TRUE(GetNodeDef(neg2, &node_def2));
      EXPECT_EQ(node_def.DebugString(), node_def2.DebugString());
    
      TF_Operation* feed2 = TF_GraphOperationByName(graph, "feed");
    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)
  8. tensorflow/c/c_api.cc

        return;
      }
      if (!ic_dst->MergeInput(dst.index, shape)) {
        status->status = tensorflow::errors::InvalidArgument(
            "Cannot update edge, incompatible shapes: ", ic_dst->DebugString(shape),
            " and ", ic_dst->DebugString(ic_dst->input(dst.index)), ".");
        return;
      }
      status->status = graph->graph.UpdateEdge(&new_src.oper->node, new_src.index,
    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)
  9. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

                "not all have the same rank is not supported. One tensor had "
                "shape ",
                first_shape.DebugString(), " and another had shape ",
                component_shape.DebugString()));
          } else {
            // Generalize differing axis lengths to "variable"/"unknown".
            for (int axis_index = 0; axis_index < combined_shape.dims();
    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)
  10. tensorflow/c/eager/c_api.cc

            TF_SetStatus(
                status, TF_UNIMPLEMENTED,
                tensorflow::strings::StrCat("Unable to get setfor default value: ",
                                            default_value.DebugString())
                    .data());
          }
        } break;
        case tensorflow::AttrValue::kTensor:
          TF_FALLTHROUGH_INTENDED;
        case tensorflow::AttrValue::kPlaceholder:
          TF_FALLTHROUGH_INTENDED;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
Back to top