- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for size_placeholder (0.14 sec)
-
tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass_test.cc
// size. So we first use a Placeholder to placate the shape refiner, and // later replace it with a bogus constant. Output size_placeholder = ops::Placeholder(root.WithOpName("size_placeholder"), DT_INT32); Output slice = ops::Slice(root.WithOpName("slice"), input, begin, size_placeholder); Output size = ops::Const(root.WithOpName("size"), {-8, 500}); TF_ASSERT_OK(root.graph()->UpdateEdge(/*new_src=*/size.node(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 18.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/init_text_file_to_import.mlir
// RUN: tf-opt -tf-init-text-file-to-import-test %s | FileCheck %s // Tests that the tf.InitializeTableFromTextFileV2 op are inlined. func.func @init_all_tables() { %cst = arith.constant dense<"%FILE_PLACEHOLDER"> : tensor<!tf_type.string> %0 = "tf.HashTableV2"() {container = "", device = "", key_dtype = !tf_type.string, shared_name = "hash_table_/tmp/vocab.txt_-2_-1", use_node_name_sharing = false, value_dtype = i64} : () -> tensor<!tf_type.resource>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 28 12:06:33 UTC 2022 - 2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import_test_pass.cc
if (!matchPattern(op.getOperation(), m_Constant(&attr))) { continue; } ArrayRef<StringRef> values = attr.getRawStringData(); if (values.size() != 1 || values[0] != "%FILE_PLACEHOLDER") { continue; } op.setValueAttr(DenseStringElementsAttr::get(shaped_type, {filename})); } } // Run the lowering pass. PassManager pm(context);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 04 09:19:38 UTC 2022 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir
//===--------------------------------------------------------------------===// // CHECK-LABEL: func @placeholderattr func.func @placeholderattr() -> () // CHECK: attributes {some_placeholder = #tf_type.placeholder<"foo">} { attributes {some_placeholder = #tf_type.placeholder<"foo">} { func.return } //===--------------------------------------------------------------------===// // Test TF operations (tf.*)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 23 14:40:35 UTC 2023 - 236.4K bytes - Viewed (0)