Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for init_ok (0.15 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export_test.cc

    TEST_F(ConvertMlirModuleToExportedModelTest, InitNodeNotSetIfLocNameMismatch) {
      // Define a module that initializes a tf.HashTableV2 whose control output node
      // for the initialization is named "init_ok". Since the output control node
      // name does not begin with "init_op" the init node could not have been found
      // after the conversion.
      mlir::OwningOpRef<mlir::ModuleOp> module_op = ParseModuleOpString(R"mlir(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 20 11:11:25 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model_ops_invalid.mlir

    }
    
    // -----
    
    module attributes {tf_saved_model.semantics} {
    
      "tf_saved_model.session_initializer"() { initializers = [@init_0, @init_1] } : () -> ()
    
      func.func @init_0() attributes {
        tf_saved_model.exported_names = ["__tf_saved_model_session_initializer_init_0"],
        tf_saved_model.initializer_type = "restore_op" } {
        func.return
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 19 13:38:14 UTC 2022
    - 14.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/freeze_saved_model_assets.cc

          for (auto init_op : init_table_from_text_file_ops_to_erase) {
            // Replace the InitializeTableFromTextFileV2Op to use the saved model's
            // asset filepath.
            builder.setInsertionPoint(init_op);
            builder.create<TF::InitializeTableFromTextFileV2Op>(
                init_op.getLoc(), init_op.getTableHandle(), const_op.getResult(),
                init_op.getKeyIndex(), init_op.getValueIndex(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jan 30 01:12:09 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/tests/merge_initializer_function_ops_to_main.mlir

    // CHECK-LOC: tf_executor.island({{.*}}) wraps "tf.NoOp"()
    // CHECK-LOC-SAME: loc("init_op_NoOp")
    }
    
    // -----
    
    // Test the case where there are 2 initializer functions ("init_op" and
    // "restore_op"). The init func of type "init_op" is merged first.
    
    // CHECK-LABEL: module attributes
    module attributes {tf.versions = {bad_consumers = [], min_consumer = 12 : i32, producer = 1228 : i32}, tf_saved_model.semantics} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:49:35 UTC 2023
    - 29.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/common_v1.py

        signature_def_map, init_op, assets_collection = create_signature()
    
        sess = tf.Session()
        sess.run(tf.initializers.global_variables())
        builder = tf.saved_model.builder.SavedModelBuilder(save_model_path)
        builder.add_meta_graph_and_variables(
            sess,
            [tf.saved_model.tag_constants.SERVING],
            signature_def_map,
            main_op=init_op,
            assets_collection=assets_collection,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 20 13:19:26 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/aot/tests/make_test_graphs.py

      y = variable_v1.VariableV1(constant_op.constant([0]), name='y_saved')
      math_ops.add(x, y, name='x_y_sum')
    
      init_op = variables.global_variables_initializer()
      saver = saver_lib.Saver(write_version=saver_pb2.SaverDef.V1)
      with session.Session() as sess:
        sess.run(init_op)
        sess.run(y.assign(y + 42))
        # Without the checkpoint, the variable won't be set to 42.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 15 15:25:23 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

        ModuleOp module = getOperation();
        if (!HasTfSavedModelSemantics(module)) {
          return;
        }
    
        auto init_op = GetSessionInitializerOp(module);
        if (init_op == nullptr || init_op.getInitializers().empty()) {
          return;
        }
    
        SymbolTable symbol_table(module);
        for (auto initializer : init_op.getInitializers()) {
          auto func = symbol_table.lookup<func::FuncOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model_test.cc

          "tf_saved_model.session_initializer"() {initializers = [@init_func]} : () -> ()
          func.func @init_func() attributes {tf_saved_model.exported_names = ["init_func"], tf_saved_model.initializer_type = "init_op"} {
            func.return
          }
        }
      )mlir";
    
      Block block;
      ModuleOp module_op = ParseModuleOp(kModuleOpStr, block, ctx_);
    
      func::FuncOp init_func_op = GetInitializerFunction(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 01 05:03:09 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op_test.cc

                      .Input(inputs)
                      .Attr("ids", ids)
                      .Attr("calibration_methods", calibration_methods)
                      .Finalize(node_def()));
      ASSERT_THAT(InitOp(),
                  StatusIs(tsl::error::INVALID_ARGUMENT,
                           HasSubstr("NodeDef missing attr 'output_file_path'")));
    }
    
    TEST_F(CalibrationStatisticsSaverTest, WrongNumInputs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  10. src/runtime/coverage/coverage.go

    // license that can be found in the LICENSE file.
    
    package coverage
    
    import (
    	"internal/coverage/cfile"
    	"io"
    )
    
    // initHook is invoked from main.init in programs built with -cover.
    // The call is emitted by the compiler.
    func initHook(istest bool) {
    	cfile.InitHook(istest)
    }
    
    // WriteMetaDir writes a coverage meta-data file for the currently
    // running program to the directory specified in 'dir'. An error will
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:41:02 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top