Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for parseFromString (0.23 sec)

  1. tensorflow/cc/experimental/libtf/tests/module_test.cc

      const std::string pb_txt = R"pb(
        user_object {
          identifier: "trackable_list_wrapper"
          version { producer: 1 min_consumer: 1 }
        }
      )pb";
    
      ASSERT_TRUE(::tensorflow::protobuf::TextFormat::ParseFromString(
          pb_txt, &saved_object_proto));
      TF_ASSERT_OK_AND_ASSIGN(Handle result,
                              BuildSavedUserObject(saved_object_proto));
      EXPECT_EQ(Cast<tf::libtf::List>(result)->size(), 0);
    }
    
    Registered: 2024-06-16 05:45
    - Last Modified: 2021-07-15 16:58
    - 4.6K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/daemon/DaemonContextParserTest.groovy

                        "-Duser.country=US," +
                        "-Duser.language=en," +
                        "-Duser.variant"
                ) + "]"
            when:
            DaemonContext parsedContext = DaemonContextParser.parseFromString(contextString, GradleVersion.version("8.7"))
            then:
            parsedContext != null
            parsedContext.javaVersion == JavaLanguageVersion.of(8) // hardcoded in fixture
        }
    
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-05-24 00:09
    - 5.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/python/converter_python_api.cc

      }
    
      // Use TOCO to produce new outputs.
      toco::ModelFlags model_flags;
      if (!model_flags.ParseFromString(model_flags_proto_txt)) {
        PyErr_SetString(PyExc_ValueError,
                        "Failed to convert Model to Python String.");
        return nullptr;
      }
      toco::TocoFlags toco_flags;
      if (!toco_flags.ParseFromString(toco_flags_proto_txt)) {
        PyErr_SetString(PyExc_ValueError,
    Registered: 2024-06-16 05:45
    - Last Modified: 2024-06-12 23:15
    - 19.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export_test.cc

    }
    
    TEST(CreateExportedModelTest, CreateExportedModelWithAddedAssetFileDefs) {
      AssetFileDef asset1;
      ASSERT_TRUE(
          TextFormat::ParseFromString(R"pb(filename: "fname1")pb", &asset1));
    
      AssetFileDef asset2;
      ASSERT_TRUE(
          TextFormat::ParseFromString(R"pb(filename: "fname2")pb", &asset2));
    
      const ExportedModel exported_model = CreateExportedModelFromGraphDef(
    Registered: 2024-06-16 05:45
    - Last Modified: 2024-03-20 11:11
    - 19.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/python/jax_to_tfl_flatbuffer.cc

      tsl::protobuf::TextFormat::Parser parser;
      NoOpErrorCollector collector;
      parser.RecordErrorsTo(&collector);
      return hlo_proto->ParseFromString(contents) ||
             parser.ParseFromString(contents, hlo_proto) ||
             hlo_proto->mutable_hlo_module()->ParseFromString(contents) ||
             parser.ParseFromString(contents, hlo_proto->mutable_hlo_module());
    }
    
    mlir::OwningOpRef<mlir::ModuleOp> HloToMlirHloTranslateFunction(
    Registered: 2024-06-16 05:45
    - Last Modified: 2024-03-11 19:29
    - 8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/cc/graph_def_test.cc

    using ::testing::SizeIs;
    using ::testing::StrEq;
    using ::tsl::protobuf::TextFormat;
    
    TEST(GraphDefTest, MutateNodeDefsMutatesTopLevelNodeDefs) {
      GraphDef graph_def;
      ASSERT_TRUE(TextFormat::ParseFromString(R"pb(
                                                node { name: "foo" }
                                              )pb",
                                              &graph_def));
      MutateNodeDefs(graph_def,
    Registered: 2024-06-16 05:45
    - Last Modified: 2023-11-28 18:38
    - 2.2K bytes
    - Viewed (0)
  7. tensorflow/cc/framework/cc_op_gen_test.cc

    TEST(CcOpGenTest, TestVisibilityChangedToHidden) {
      const string api_def = R"(
    op {
      graph_op_name: "Foo"
      visibility: HIDDEN
    }
    )";
      Env* env = Env::Default();
      OpList op_defs;
      protobuf::TextFormat::ParseFromString(kBaseOpDef, &op_defs);  // NOLINT
      ApiDefMap api_def_map(op_defs);
    
      string h_file_text, internal_h_file_text;
      // Without ApiDef
      GenerateCcOpFiles(env, op_defs, api_def_map, &h_file_text,
    Registered: 2024-06-16 05:45
    - Last Modified: 2022-09-29 20:04
    - 5.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils_test.cc

          cluster_func_op,
          /*num_replicas=*/1, /*num_cores_per_replica=*/1, {}, &compile_metadata)));
    
      tensorflow::tpu::TPUCompileMetadataProto expected_compile_metadata;
      ASSERT_TRUE(tsl::protobuf::TextFormat::ParseFromString(
          R"pb(
            num_replicas: 1 num_cores_per_replica: 1
          )pb",
          &expected_compile_metadata));
    
      EXPECT_THAT(compile_metadata, EqualsProto(expected_compile_metadata));
    }
    
    Registered: 2024-06-16 05:45
    - Last Modified: 2023-12-12 04:22
    - 6.1K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/saved_model/core/tf_concrete_function_test_protos.cc

            }
            dtype: DT_FLOAT
        }
        }
    }
    )";
    
    StructuredValue ParseStructuredValue(absl::string_view text_proto) {
      StructuredValue value;
      CHECK(tensorflow::protobuf::TextFormat::ParseFromString(string(text_proto),
                                                              &value));
      return value;
    }
    
    }  // namespace
    
    StructuredValue ZeroArgInputSignature() {
    Registered: 2024-06-16 05:45
    - Last Modified: 2020-07-08 07:00
    - 4.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc

                                       Value lhs, Value rhs, Value output,
                                       StringAttr dot_dimension_numbers_str) {
      xla::DotDimensionNumbers dot_dimension_numbers;
      dot_dimension_numbers.ParseFromString(dot_dimension_numbers_str.str());
      SmallVector<Value> input_arguments = {lhs, rhs};
      const int lhs_rank = mlir::cast<ShapedType>(lhs.getType()).getShape().size();
    Registered: 2024-06-16 05:45
    - Last Modified: 2024-04-25 16:01
    - 13.2K bytes
    - Viewed (0)
Back to top