Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for VarIsInitializedOp (0.22 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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