Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SerializeToString (0.34 sec)

  1. tensorflow/c/experimental/grappler/grappler_test.cc

      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);
      TF_DeleteStatus(status);
      TF_DeleteFunctionLibraryDefinition(func);
    }
    
    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)
  2. tensorflow/c/c_api_test.cc

      const int64_t pts1[] = {2, 4, -1, 8};
      tensorflow::PartialTensorShape(pts1).AsProto(&proto);
      proto.SerializeToString(&bytes1);
    
      const int64_t pts2[] = {1, 3, 5, 7};
      tensorflow::PartialTensorShape(pts2).AsProto(&proto);
      proto.SerializeToString(&bytes2);
    
      std::unique_ptr<const void*[]> list_ptrs;
      std::unique_ptr<size_t[]> list_lens;
    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)
  3. tensorflow/c/eager/c_api_experimental.cc

      cell->cell.Add(value);
    }
    
    void TFE_MonitoringSamplerCellValue(TFE_MonitoringSamplerCell* cell,
                                        TF_Buffer* buf) {
      string content;
      cell->cell.value().SerializeToString(&content);
      void* data = tensorflow::port::Malloc(content.length());
      content.copy(static_cast<char*>(data), content.length(), 0);
      buf->data = data;
      buf->length = content.length();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  4. tensorflow/c/c_api_function_test.cc

        // func_ -> fdef
        tensorflow::FunctionDef fdef;
        ASSERT_TRUE(GetFunctionDef(func_, &fdef));
        TF_DeleteFunction(func_);
    
        // fdef -> func_
        string buf;
        ASSERT_TRUE(fdef.SerializeToString(&buf));
        func_ = TF_FunctionImportFunctionDef(buf.data(), buf.size(), s_);
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      }
    
      void GetAttr(const char* attr_name, AttrValue* out_attr) {
    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)
  5. tensorflow/c/eager/c_api_test.cc

        config.mutable_graph_options()
            ->mutable_rewrite_options()
            ->set_min_graph_nodes(-1);
        string serialized_config;
        ASSERT_TRUE(config.SerializeToString(&serialized_config));
        TFE_OpSetAttrString(
            op, "config_proto",
            reinterpret_cast<const void*>(serialized_config.c_str()),
            serialized_config.length());
      }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  6. tensorflow/c/c_api.cc

          out_shape_and_type->set_dtype(p.dtype);
          *out_shape_and_type->mutable_type() = p.type;
        }
      }
      string str_data;
      handle_data.SerializeToString(&str_data);
    
      TF_Buffer* result = TF_NewBufferFromString(str_data.c_str(), str_data.size());
      return result;
    }
    
    void TF_SetHandleShapeAndType(TF_Graph* graph, TF_Output output,
    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)
Back to top