Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RegionWrapsSingleOp (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td

        // Checks if a tf_device.parallel_execute index'th region block wraps a
        // single operation and the single operation results are perfectly forwarded
        // to the region block's return.
        bool RegionWrapsSingleOp(unsigned index);
      }];
    
      let builders = [
        OpBuilder<(ins "int":$num_regions, "TypeRange":$output_types)>,
      ];
    
      let hasVerifier = 1;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 23:53:20 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

    bool ParentParallelExecuteWrapsSingleOp(Operation* op) {
      auto parallel_execute =
          llvm::dyn_cast<tf_device::ParallelExecuteOp>(op->getParentOp());
      if (!parallel_execute) return true;
    
      return parallel_execute.RegionWrapsSingleOp(
          op->getParentRegion()->getRegionNumber());
    }
    
    void TPUMergeVariablesWithExecutePass::runOnOperation() {
      ModuleOp module = getOperation();
      mlir::TF::ResourceAliasAnalysis resource_analysis(module);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

        return_value_offset +=
            GetRegionBlockWithIndex(region_id).getTerminator()->getNumOperands();
    
      return getResults().slice(return_value_offset, num_region_results);
    }
    
    bool ParallelExecuteOp::RegionWrapsSingleOp(unsigned index) {
      return BlockWrapsSingleOp(&GetRegionBlockWithIndex(index));
    }
    
    //===----------------------------------------------------------------------===//
    // tf_device.replicate
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top