Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for RepeatedPtrField (0.66 sec)

  1. tensorflow/cc/saved_model/fingerprinting_utils_test.cc

      TF_ASSERT_OK_AND_ASSIGN(RepeatedPtrField<FieldIndex> field_tags,
                              ExtractFieldTags(R"pb(
                                field_tag { field: 2 }
                                field_tag { index: 1505 }
                                field_tag { field: 5 }
                                field_tag { map_key { ui32: 123 } }
                              )pb"));
      RepeatedPtrField<FieldIndex> field_tags_sub;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 20 22:19:55 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  2. tensorflow/cc/saved_model/fingerprinting_utils.h

    using ::tensorflow::protobuf::Message;
    using ::tensorflow::protobuf::RepeatedPtrField;
    
    // Number of sequential FieldIndex matches of `a` in `b`. (Length of initial
    // subsequence.)
    // Example: `a = {4, 2}`, `b = {4, 2, 1, 3}`, `fieldTagMatches(a, b) == 2`
    absl::StatusOr<int> fieldTagMatches(
        const RepeatedPtrField<::tensorflow::proto_splitter::FieldIndex>& a,
        const RepeatedPtrField<::tensorflow::proto_splitter::FieldIndex>& b);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 20 22:19:55 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. tensorflow/cc/saved_model/fingerprinting_utils.cc

    using ::tensorflow::protobuf::Message;
    using ::tensorflow::protobuf::RepeatedPtrField;
    // NOLINTNEXTLINE: clang-tidy missing-includes false positive
    using ::tensorflow::protobuf::io::CodedOutputStream;
    // NOLINTNEXTLINE: clang-tidy missing-includes false positive
    using ::tensorflow::protobuf::io::StringOutputStream;
    
    absl::StatusOr<int> fieldTagMatches(const RepeatedPtrField<FieldIndex>& a,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 20 22:19:55 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  4. tensorflow/cc/experimental/libtf/runtime/runtime.cc

    using tensorflow::SavedObjectGraph;
    using tensorflow::Status;
    using tensorflow::StructuredValue;
    using tensorflow::TensorSpecProto;
    using tensorflow::libexport::TFPackage;
    using tensorflow::protobuf::RepeatedPtrField;
    using tensorflow::tracing::graph::GraphFunction;
    
    TaggedValue MakeCallable(const std::string& fn_name, Function fn,
                             AbstractContext* ctx) {
      auto CallFn = [fn_name, fn, ctx](TaggedValue args_,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 01 11:18:25 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  5. tensorflow/cc/experimental/libexport/load.cc

    #include "tensorflow/core/platform/path.h"
    #include "tensorflow/core/protobuf/meta_graph.pb.h"
    #include "tensorflow/core/util/tensor_bundle/tensor_bundle.h"
    
    namespace tensorflow {
    namespace libexport {
    
    using protobuf::RepeatedPtrField;
    
    tensorflow::StatusOr<TFPackage> TFPackage::Load(const std::string& path) {
      // Load the proto
      TFPackage tf_package;
      const string saved_model_pb_path = io::JoinPath(path, kSavedModelFilenamePb);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 13 15:16:07 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  6. tensorflow/cc/experimental/libexport/load.h

      // in constant time.
      tensorflow::StatusOr<const tensorflow::NodeDef*> GetGraphDefNode(
          std::string name);
    
      // Returns a list of function defs in the SavedModel.
      const protobuf::RepeatedPtrField<FunctionDef>& GetFunctionDefs();
    
      // Returns a BundleReader for reading variable values.
      //
      // This TFPackage retains ownership of the underlying reader.
      tensorflow::BundleReader* GetVariableReader() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 13 06:33:42 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

        // Referenced from tensorflow::ImporterBase::CreateOperation
    
        const auto set_segment_sizes_attr =
            [&](const tensorflow::NameRangeMap& arg_ranges,
                const tensorflow::protobuf::RepeatedPtrField<
                    tensorflow::OpDef::ArgDef>& args,
                llvm::StringRef attr_name) {
              std::vector<int32_t> values;
              values.reserve(args.size());
              for (const auto& arg : args) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_cluster_util.cc

      int size;
    
      // Maps op names to the number of times they appear in the cluster.
      absl::flat_hash_map<absl::string_view, int> op_histogram;
    };
    
    void HistogramMapToRepeatedOpAndCount(
        protobuf::RepeatedPtrField<XlaAutoClusteringSummary::OpAndCount>* result,
        const absl::flat_hash_map<absl::string_view, int>& histogram) {
      for (const auto& pair : histogram) {
        XlaAutoClusteringSummary::OpAndCount* new_entry = result->Add();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 08:39:39 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc

    }
    
    // Converts an MLIR dense string elements attribute to a TensorFlow tensor
    // proto.
    void ConvertStringElementsAttr(
        const DenseStringElementsAttr attr,
        protobuf::RepeatedPtrField<std::string>* output) {
      for (const auto& val : attr.getRawStringData())
        output->Add({val.data(), val.size()});
    }
    
    template <typename T>
    void ConvertComplexElementsAttr(const mlir::DenseElementsAttr attr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_test.cc

        tensorflow::OpList op_list;
        op_list.ParseFromArray(op_list_buffer->data, op_list_buffer->length);
        ASSERT_GE(op_list.op_size(), 1);
        typedef tensorflow::protobuf::RepeatedPtrField<tensorflow::OpDef> OpDefs;
        const OpDefs& ops = op_list.op();
        bool found = std::find_if(ops.begin(), ops.end(),
                                  [](const tensorflow::OpDef& op_def) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
Back to top