Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 84 for getRegion (0.12 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc

            TF::TensorFlowDialect::getDialectNamespace())
          return failure();
    
        // Refining types may have implications to the attached regions or symbol
        // references so do not update such ops.
        if (!op->getRegions().empty() || HasSymbolRefAttr(op)) return failure();
    
        IRMapping mapper;
        bool has_type_change = false;
        for (auto [original, updated] : llvm::zip(op->getOperands(), operands)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc

                         << "  No device for output #" << output_index << "\n");
              continue;
            }
            // Transfer the annotation to both region arguments
            for (Region* region : while_region.getRegions()) {
              BlockArgument arg = region->getArgument(output_index);
              LLVM_DEBUG(llvm::dbgs()
                         << "  Propagating device = '" << *device << "' to arg #"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  3. internal/event/config_test.go

    		{queue2, "us-east-1", ARN{TargetID{"1", "webhook"}, "us-east-1"}},
    		{queue2, "", ARN{TargetID{"1", "webhook"}, ""}},
    	}
    
    	for i, testCase := range testCases {
    		testCase.queue.SetRegion(testCase.region)
    		result := testCase.queue.ARN
    
    		if !reflect.DeepEqual(result, testCase.expectedResult) {
    			t.Fatalf("test %v: data: expected: %v, got: %v", i+1, testCase.expectedResult, result)
    		}
    	}
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Dec 05 10:16:33 UTC 2023
    - 29K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

        OperationState state(op->getLoc(), op->getName().getStringRef(), operands,
                             new_results, op->getAttrs(), op->getSuccessors());
        for (Region &region : op->getRegions()) {
          Region &new_region = *state.addRegion();
          rewriter.inlineRegionBefore(region, new_region, new_region.begin());
          if (failed(rewriter.convertRegionTypes(&new_region, *getTypeConverter())))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

        auto attribute_type = rewriter.getIntegerType(64);
        rewriter.replaceOpWithNewOp<TF::StridedSliceOp>(
            op, strided_slice_op.getType(), reshape, strided_slice_op.getBegin(),
            strided_slice_op.getEnd(), strided_slice_op.getStrides(),
            rewriter.getIntegerAttr(attribute_type, revised_begin_mask),
            rewriter.getIntegerAttr(attribute_type, revised_end_mask),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc

        builder.setInsertionPoint(&item);
        OperationState state(item.getLoc(), item.getName());
        types.assign(item.result_type_begin(), item.result_type_end());
        state.addTypes(types);
        for (Region& region : item.getRegions()) {
          state.addRegion()->takeBody(region);
        }
        // Assign existing operands for item.
        operands.assign(item.operand_begin(), item.operand_end());
    
        // Collect defining ops for existing operands.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc

                 << result.getResultNumber()
                 << ", resource type results are expected to have been "
                    "canonicalized away for region based control flow ops";
        }
      }
      for (Region& region : op.getRegions()) {
        if (failed(DecomposeStackOpsInternal(&region.front(), module,
                                             data_var_to_size_var,
                                             decomposed_partitioned_call_callees)))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

      if (!input_type || !input_type.hasStaticShape()) return failure();
    
      if (input_type.getRank() >= 4) return failure();
    
      auto begin = slice_op.getBegin();
      auto begin_type = mlir::dyn_cast_or_null<RankedTensorType>(begin.getType());
      if (!begin_type || !begin_type.hasStaticShape()) return failure();
    
      auto size = slice_op.getSize();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

      // If there is no TPUReplicateMetadata op in this block, process blocks in
      // regions attached to the op's in the block.
      if (metadata_map.empty()) {
        for (Operation& op : *block) {
          for (Region& region : op.getRegions()) {
            if (!llvm::hasSingleElement(region))
              return op.emitOpError("Expected single block region");
            if (failed(FormClustersInBlock(&region.front(), side_effect_analysis,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

                 << ", resource type results are expected to have been "
                    "canonicalized away for region based control flow ops";
        }
      }
    
      for (Region& region : op.getRegions()) {
        if (failed(DecomposeTensorArrayOps(&region.front(), module, stats,
                                           decomposed_partitioned_call_callees)))
          return failure();
      }
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
Back to top