Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GetRegionBlockWithIndex (0.28 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      }
      state.addTypes(output_types);
    }
    
    Block& ParallelExecuteOp::GetRegionBlockWithIndex(unsigned index) {
      return getOperation()->getRegion(index).front();
    }
    
    Operation::result_range ParallelExecuteOp::GetRegionOutputs(
        unsigned region_index) {
      int num_region_results =
          GetRegionBlockWithIndex(region_index).getTerminator()->getNumOperands();
    
      int return_value_offset = 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td

      }];
    
      let results = (outs
        Variadic<AnyType>:$execute_outputs
      );
    
      let regions = (region VariadicRegion<SizedRegion<1>>:$regions);
    
      let extraClassDeclaration = [{
        Block& GetRegionBlockWithIndex(unsigned index);
        Operation::result_range GetRegionOutputs(unsigned region_index);
    
        // Checks if a tf_device.parallel_execute index'th region block wraps a
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 23:53:20 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      SmallVector<mlir::tf_device::LaunchOp, 4> core_to_host_launch;
      for (int core = 0; core < core_to_tmp_host_launch.size(); ++core) {
        Block& host_computation_block =
            parallel_execute_op.GetRegionBlockWithIndex(core);
        builder.setInsertionPointToEnd(&host_computation_block);
    
        // map_outside_compilation with return values from host is not implemented.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

                    int end) {
      const int size_before = output_types->size();
      for (int index = start; index < end; ++index) {
        Block& block = parallel_execute.GetRegionBlockWithIndex(index);
        auto terminator_operand_types = block.getTerminator()->getOperandTypes();
        output_types->append(terminator_operand_types.begin(),
                             terminator_operand_types.end());
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

      assert(input_list.size() == num_cores_per_replica);
      for (int core = 0; core < num_cores_per_replica; ++core) {
        auto& block =
            new_parallel_execute->GetRegionBlockWithIndex((*cluster_idx) + core);
        builder->setInsertionPointToEnd(&block);
    
        // Create Execute op.
        //
        // TODO(b/148913294): Identify inputs/return values specific to each
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top