Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GeneratorDatasetRegion (0.24 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/functional-control-flow-to-regions.mlir

                                    %arg2: tensor<!tf_type.resource>,
                                    %arg3: tensor<2xf32>) {
      // CHECK-NOT: tf.GeneratorDataset
      // CHECK: tf.GeneratorDatasetRegion
      // CHECK: ^
      // CHECK-SAME: tensor<4xf32>
      // CHECK: func.call @init
      // CHECK: ^
      // CHECK-SAME: tensor<7xf32>
      // CHECK-SAME: tensor<3xf32>
      // CHECK-NOT: tf_type.resource
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 06 21:59:28 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/region-control-flow-to-functional.mlir

      // CHECK: "tf.GeneratorDataset"
      // CHECK-DAG: @init
      // CHECK-DAG: @next
      // CHECK-DAG: @finalize
      // CHECK: return
      %0 = "tf.GeneratorDatasetRegion"(%arg0, %arg1, %arg2, %arg3) ({
      ^bb0(%arg4: tensor<4xf32>):
        %1 = func.call @init(%arg4) : (tensor<4xf32>) -> tensor<7xf32>
        "tf.Yield"(%1) : (tensor<7xf32>) -> ()
      }, {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 02 11:15:34 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

               while_op.getResults().take_front(while_region.getNumResults())))
        std::get<0>(it).replaceAllUsesWith(std::get<1>(it));
    
      while_region.erase();
      return success();
    }
    
    // Transform GeneratorDatasetRegion to GeneratorDatasetOp.
    LogicalResult RegionControlFlowToFunctional::ConvertGeneratorDatasetOp(
        SymbolTableCollection& symbol_table, GeneratorDatasetRegionOp regional) {
      mlir::MLIRContext* ctx = regional.getContext();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

          build($_builder, $_state, resultTypes, operands, attributes);
        }]>];
    
      let hasCanonicalizer = 1;
    }
    
    def TF_GeneratorDatasetRegionOp : TF_Op<"GeneratorDatasetRegion",
          [AttrSizedOperandSegments,
           DeclareOpInterfaceMethods<RegionBranchOpInterface, [
               "areTypesCompatible",
               "getEntrySuccessorOperands",
               "getRegionInvocationBounds",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

    func.func @testInvalidYieldOp(%arg0: f32) -> () {
      // expected-error @+1 {{'tf.Yield' op expects parent op to be one of 'tf.CaseRegion, tf.IfRegion, tf.WhileRegion, tf.GeneratorDatasetRegion'}}
      "tf.Yield"(%arg0) : (f32) -> ()
    }
    
    // -----
    
    // Test valid tf.IfRegion operation
    // CHECK-LABEL: func @testValidIfRegionOp
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
Back to top