Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for while_node (0.16 sec)

  1. tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc

      EXPECT_EQ(input_node->name(), "arg0");
    
      // Check node "while" input and output edges.
      const Node *while_node = node_name_index.at("while");
      ASSERT_NE(while_node, nullptr);
      TF_CHECK_OK(while_node->input_node(0, &input_node));
      EXPECT_EQ(input_node->name(), "arg1");
      TF_CHECK_OK(while_node->input_node(1, &input_node));
      EXPECT_EQ(input_node->name(), "arg0");
      const Node *ret2_node = node_name_index.at("ret2");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/compilability_check_util.cc

      is_compilable &= ExtractNodeDefAndCheckCompilability(
          while_node, "cond", "while_cond", encapsulating_function, lib_runtime,
          stack_trace, uncompilable_nodes);
    
      if (!uncompilable_nodes && !is_compilable) return is_compilable;
    
      is_compilable &= ExtractNodeDefAndCheckCompilability(
          while_node, "body", "while_body", encapsulating_function, lib_runtime,
          stack_trace, uncompilable_nodes);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

        TF_RETURN_IF_ERROR(GraphToFunctionDef(*g, new_name, &replace_fdef));
        TF_RETURN_IF_ERROR(fld->AddFunctionDef(replace_fdef));
        loop_cond_func->set_name(new_name);
        while_node->ClearAttr("cond");
        while_node->AddAttr("cond", *loop_cond_func);
      }
    
      return absl::OkStatus();
    }
    
    // Rewrites while loop cond function for host.
    Status RewriteHostWhileLoopCond(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/embedding_pipelining.mlir

        %0 = "tf.While"(%cst_main) {body = @while_body, cond = @while_cond, is_stateless = false} : (tensor<i32>) -> (tensor<i32>)
        // expected-error @+1 {{'tf.While' op multiple users of function.}}
        %1 = "tf.While"(%cst_main) {body = @while_body, cond = @while_cond, is_stateless = false} : (tensor<i32>) -> (tensor<i32>)
        return
      }
      func.func private @while_body(%arg0: tensor<i32>) -> (tensor<i32>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 33.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/cluster_tf_ops_pass.mlir

      func.return %1 : tensor<i1>
    }
    
    // The @while_body function is a Multi-hosts function which contains three
    // parts:
    //   - A local subgraph which contains both local ops and remote_run kernels to
    //     trigger remote subgraphs
    //   - Two remote subgraph which contains remote ops on worker:1 and worker:2.
    // CHECK: func @while_body(%[[ARG_0:.*]]: tensor<i32> {tf.device = "/job:localhost/replica:0/task:0/device:CPU:0"})
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/tests/mlrt/async_while.mlir

    // CHECK-NEXT:    %0 = "tf.Less"(%arg0, %arg1) : (tensor<i32>, tensor<i32>) -> tensor<i1>
    // CHECK-NEXT:    return %0 : tensor<i1>
    
    // CHECK-LABEL: func.func private @"map/while_body"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/region-control-flow-to-functional.mlir

    // CHECK: func private @while_body
    // CHECK-LABEL: testWhileRegionTrivialCasts
    func.func private @while_cond(%arg0 : tensor<4xf32>, %arg1 : tensor<i32>) -> tensor<i1>
    func.func private @while_body(%arg0 : tensor<4xf32>, %arg1 : tensor<i32>) -> (tensor<4xf32>, tensor<i32>)
    func.func @testWhileRegionTrivialCasts(%arg0 : tensor<*xf32>, %arg1 : tensor<i32>) -> tensor<*xf32> {
      // CHECK: [[Result:%.*]]:2 = "tf.While"(%arg0, %arg1) <{body = @while_body, cond = @while_cond
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 02 11:15:34 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

      AppendFunctionArguments(while_body, num_chains, chaining_data_type);
      AppendFunctionResults(while_body, num_chains, chaining_data_type);
    
      // Insert identity ops with control dep
      ChainResourceOps(while_body, chain_resource_to_ops_map,
                       resource_equivalence_classes, ops_connected_to_fetch,
                       num_old_outputs);
      // Modify all the while ops referencing the body function and the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/legalize-tf-while.mlir

    // CHECK:   yield
    // CHECK: ^bb0([[ARGS]]):
    // CHECK:   call @while_body
    // CHECK:   yield
    // CHECK: while_body
    // CHECK: while_cond
    
    // INLINE: tfl.while
    // INLINE: ^bb0([[ARGS:.*]]):
    // INLINE:   tf.Less
    // INLINE:   yield
    // INLINE: ^bb0([[ARGS]]):
    // INLINE:   %cst_2 = arith.constant
    // INLINE:   yield
    // INLINE-NOT: while_body
    // INLINE-NOT: while_cond
    
    // CANON-LABEL:   func @while_main
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/end-to-end-tpu-reshard-variables.mlir

          %control = tf_executor.island {
            %0 = "tf.While"(%arg0) <{body = @while_body, cond = @while_cond, is_stateless = false, shape_invariant}> : (tensor<*x!tf_type.resource>) -> tensor<!tf_type.resource<tensor<i32>>>
            tf_executor.yield
          }
          tf_executor.fetch %control : !tf_executor.control
        }
        return
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 13 21:23:47 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top