Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for VarIsInitializedOp (0.3 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/promote_resources_to_args.mlir

    // AssignVariableOp.
    
    // expected-error@+1 {{expects users of resource argument 0 to be 'tf.ReadVariableOp' or 'tf.AssignVariableOp', got [tf.UnknownOp, tf.VarIsInitializedOp]}}
    func.func @main(%arg0: tensor<!tf_type.resource<tensor<f32>>>) -> tensor<i1> {
      %0 = "tf.VarIsInitializedOp"(%arg0) : (tensor<!tf_type.resource<tensor<f32>>>) -> tensor<i1>
      %1 = "tf.UnknownOp"(%arg0) : (tensor<!tf_type.resource<tensor<f32>>>) -> tensor<i1>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/resource_op_lifting.mlir

          %6 = "tf.VarIsInitializedOp"(%arg0) : (!tf_res) -> tensor<i1>
          // CHECK-NEXT: "tf.Yield"([[IF_REGION_THEN]])
          "tf.Yield"(%6) : (tensor<i1>) -> ()
        // CHECK-NEXT: }, {
        }, {
          // CHECK-NEXT: [[IF_REGION_ELSE:%.+]] = "tf.Const"
          // CHECK-SAME: value = dense<true> : tensor<i1>
          %7 = "tf.VarIsInitializedOp"(%arg0) : (!tf_res) -> tensor<i1>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 74K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

      auto subtypes = resource_type.getSubtypes();
      if (subtypes.size() == 1) return subtypes[0];
      return nullptr;
    }
    
    // Replaces all `tf.VarIsInitializedOp` in a block with a constant true.
    // TODO(b/171039585): Replace this with proper analysis of
    // `tf.VarIsInitializedOp` in regards to resource writes and control flow.
    void SetAllVarIsInitializedToTrue(Block* block) {
      auto builder = OpBuilder::atBlockBegin(block);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    // VarIsInitializedOp
    //===----------------------------------------------------------------------===//
    
    namespace {
    
    /// Erase VarIsInitializedOp operations with no uses. This op has side effect on
    /// resources (read-only), but can still be deleted if it has zero uses.
    struct EraseDeadVarIsInitializedOp
        : public OpRewritePattern<VarIsInitializedOp> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      %is = "tf.VarIsInitializedOp"(%vh) : (tensor<!tf_type.resource<tensor<f32>>>) -> tensor<i1>
      %res = "tf.UnknownOp"(%vh) : (tensor<!tf_type.resource<tensor<f32>>>) -> tensor<i1>
      func.return %res : tensor<i1>
    }
    // Unused VarIsInitializedOp is erased.
    // CHECK: tf.VarHandleOp
    // CHECK-NEXT: tf.UnknownOp
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/mark_for_compilation_pass.cc

    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

      );
    
      TF_DerivedOperandTypeAttr T = TF_DerivedOperandTypeAttr<0>;
      TF_DerivedResultTypeAttr out_type = TF_DerivedResultTypeAttr<0>;
    }
    
    def TF_VarIsInitializedOp : TF_Op<"VarIsInitializedOp", []> {
      let summary = [{
    Checks whether a resource handle-based variable has been initialized.
      }];
    
      let arguments = (ins
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
Back to top