Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for hash_table (0.12 sec)

  1. tensorflow/compiler/mlir/lite/tests/legalize-tf-hashtables.mlir

      // CHECK-NEXT:  [[HASH_TABLE:%.*]] = "tfl.hashtable"() <{key_dtype = !tf_type.string, table_id = -1323619995 : i32, value_dtype = i64}> : () -> tensor<1x!tf_type.resource>
      // CHECK-NEXT:   "tfl.hashtable_import"([[HASH_TABLE]], [[CST]], [[CST_1]]) : (tensor<1x!tf_type.resource>, tensor<3x!tf_type.string>, tensor<3xi64>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/tests/remove_var_init_by_const.mlir

        return
      }
      // CHECK: @init_func_restore_op
      // CHECK-SAME: tf_saved_model.initializer_type = "restore_op"
      // CHECK: %[[CST:.*]] = "tf.Const"()
      // CHECK-NEXT: %[[HASH_TABLE:.*]] = "tf.HashTableV2"()
      // CHECK-NEXT: "tf.AssignVariableOp"(%[[HASH_TABLE]], %[[CST]])
    }
    
    // -----
    
    
    // Nothing happens when there are no `tf_saved_model.session_initializer`.
    
    // CHECK-LABEL: module
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/hash_table_v1.py

    # CHECK-NEXT: [[R6:%.*]] = "tf.Const"()
    # CHECK-NEXT: [[R5:%.*]] = "tf.Const"() <{value = dense<[1, 2,
    # CHECK-NEXT: [[R7:%.*]] = "tf.HashTableV2"()
    # CHECK-SAME: shared_name = "[[hash_table:.*]]"
    # CHECK-NEXT: "tf.LookupTableImportV2"([[R7]], [[R5]], [[R6]])
    
    # CHECK:      func {{@[a-zA-Z_0-9]+}}(
    # CHECK-SAME: [[ARG0:%.*]]: tensor<i32>
    # CHECK-SAME: [[ARG1:%.*]]: tensor<!tf_type.resource
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:49:35 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

    }
    
    // Checks if the HashTable is initialized. This function assumes that the
    // HashTable is initialized if it appears in the initializer since it can't
    // check the actual value.
    bool IsResourceInitialized(ModuleOp module_op, Operation* hash_table) {
      StringRef shared_name = GetSharedName(hash_table);
      if (shared_name.empty()) return false;
    
      for (func::FuncOp init_func_op :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/hash_table_asset_v1.py

    # CHECK-SAME: [[ARG1:%.*]]: tensor<!tf_type.string> {tf_saved_model.bound_input = @[[asset1]]}
    # CHECK-SAME: tf_saved_model.initializer_type = "init_op"
    # CHECK-NEXT: [[R0:%.*]] = "tf.HashTableV2"()
    # CHECK-SAME: shared_name = "[[hash_table:.*]]"
    # CHECK-NEXT: "tf.InitializeTableFromTextFileV2"([[R0]], [[ARG0]])
    
    
    def write_vocabulary_file(vocabulary):
      """Write temporary vocab file for module construction."""
      tmpdir = tempfile.mkdtemp()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:49:35 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/tests/analysis/cost_analysis.mlir

        // expected-remark@+1 {{Cost: 1}}
        %0 = "tf.HashTableV2"() {container = "", device = "/job:localhost/replica:0/task:0/device:CPU:0", key_dtype = !tf_type.string, shared_name = "hash_table", use_node_name_sharing = false, value_dtype = i64} : () -> tensor<!tf_type.resource>
        // expected-remark@+1 {{Cost: 1024}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 14 15:35:49 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/tests/lift_hashtable_ops_as_args.mlir

        return %6 : tensor<*xi64>
      }
    // Check that HashTable op is lifted.
    // CHECK: func.func private @serving_default
    // CHECK-SAME: (%arg0: tensor<?x!tf_type.string>, %arg1: tensor<!tf_type.resource>, %arg2: tensor<!tf_type.resource>) -> tensor<*xi64>
    // CHECK-SAME: tf.entry_function = {control_outputs = "", inputs = "input_vocabs:0,hash_table_1:0,hash_table_2:0", outputs = "FakeQuantWithMinMaxArgs_2:0"}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 15 05:41:44 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

    The scalar `default_value` is the value output for keys not present in the
    table. It must also be of the same type as the table values.
      }];
    
      let arguments = (ins
        TFL_ResourceTensor:$hash_table,
        TFL_TensorOf<[I32, TFL_Str, I64]>:$keys,
        TFL_TensorOf<[F32, I32, TFL_Str, I64]>:$default_value
      );
    
      let results = (outs TFL_TensorOf<[F32, I32, TFL_Str, I64]>:$out);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  9. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hashable.java

     * limitations under the License.
     */
    
    package org.gradle.internal.hash;
    
    /**
     * A snapshot of the state of some thing.
     */
    public interface Hashable {
        /**
         * Appends the snapshot to the given hasher.
         */
        void appendToHasher(Hasher hasher);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 837 bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/legalize_hashtables.cc

    }
    
    bool checkWhetherGraphHasValidStaticLookupTables(ModuleOp module) {
      auto hashtables = GetAllOps<TF::HashTableV2Op>(&module);
      // No needs to run the legalization patterns.
      if (hashtables.empty()) {
        return false;
      }
    
      for (auto hashtable : hashtables) {
        auto key_dtype = hashtable.getKeyDtype();
        auto value_dtype = hashtable.getValueDtype();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top