Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 263 for created (0.11 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      // Create return op for device computation region in the paralle_execute op
      Operation* after_op_r = builder.create<mlir::tf_device::ReturnOp>(
          new_device_cluster.getLoc(), device_results);
    
      builder.setInsertionPointToEnd(&parallel_execute_device_block);
    
      // Create return op for the new device cluster op
      builder.create<mlir::tf_device::ReturnOp>(device_cluster.getLoc(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.cc

        return {0, 2, 3, 1};
      } else {
        return {};
      }
    }
    
    // Shuffle elements in the `attr` according to the permutation. Optional
    // `inner_size` allows to shuffle array attributes created from rank 2 tensors
    // on outer dimension only.
    ArrayAttr ShuffleArrayAttr(ArrayAttr attr, ArrayRef<int64_t> permutation,
                               int inner_size) {
      if (attr.empty()) return attr;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/cc/quantization_unit_loc.cc

        // If the op is rewritten, FusedLoc can be created.
        for (Location child_loc : mlir::cast<FusedLoc>(loc).getLocations()) {
          std::optional<QuantizationUnitLoc::QuantizationUnit> found_unit =
              FindQuantizationUnitFromLoc(child_loc);
          if (found_unit.has_value()) return found_unit;
        }
      } else if (isa<CallSiteLoc>(loc)) {
        // If the graph is inlined, CallSiteLoc can be created.
        return FindQuantizationUnitFromLoc(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      for (Operation* subgraph_op : llvm::reverse(reverse_subgraph)) {
        // Create a deep copy of the subgraph ops' operands to the func op.
        stablehlo_func_op.getBody().begin()->push_back(subgraph_op->clone(mapper));
      }
    
      SmallVector<Value> result_values;
      for (const Value original_output_value : outputs) {
        // Use the mapped values in the newly created function that correspond to
        // outputs in the original function.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops_pass.cc

        "Resource ops decomposition did not converge";
    
    // Decomposing resource ops should not take more than a few iterations (2-3) to
    // converge as only a few patterns create new resource ops that can be further
    // decomposed. The rest of the iterations are enough to clean up any dead ops
    // created by decomposition.
    constexpr int kMaxIterations = 20;
    
    // Populates `reachable_functions` with all functions that can be reached from
    // device cluster ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:01:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/clustering_bridge_passes.cc

      // Guarantee all functions have one use, which enables more exact shape
      // inference.
      pm.addPass(mlir::TF::CreateGuaranteeAllFuncsOneUsePass());
      // Run shape inference so that tf_executor/tf_device ops created later will
      // likely to inherit more concrete types.
      pm.addPass(mlir::TF::CreateTFShapeInferencePass());
      pm.addNestedPass<FuncOp>(mlir::TFTPU::CreateTPUPartitionedOpConversionPass());
      pm.addNestedPass<FuncOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 16:09:14 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc

          // Create new ConstantOp-ConvertOp-Operation sequences. At this moment,
          // old ConstantOp is guaranteed to have one F32->F16 convert op regardless
          // of its number of users.
          rewriter.setInsertionPointAfter(op);
          // create new F16 constant op in that location
          ConstantOp new_const = rewriter.create<ConstantOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tpu_host_computation_expansion.cc

    constexpr char kXlaOutsideCompilationAttr[] = "_xla_outside_compilation";
    
    bool HasOutsideCompilationAttribute(Operation* op) {
      return op->getAttrOfType<StringAttr>(kXlaOutsideCompilationAttr) != nullptr;
    }
    
    // Finds op that created a given value. If the value is a BlockArgument, this
    // returns the owner of the Block.
    Operation* GetOpOfValue(Value value) {
      if (auto block_arg = mlir::dyn_cast<BlockArgument>(value))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_save_function_ops_to_main.cc

      auto builder = OpBuilder::atBlockTerminator(&main_graph_op.GetBody());
      // Create an IslandOp that will wrap the IdentityOp. Add a control dependency
      // for the newly copied save function.
      auto wrapper_island_op = builder.create<IslandOp>(
          name_loc, TypeRange{main_file_prefix_arg.getType()},
          tf_executor::ControlType::get(&ctx), ValueRange(control_inputs));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump.cc

      const std::string dump_file_path =
          tsl::io::JoinPath(*dump_dir, dump_file_name);
      TF_ASSIGN_OR_RETURN(std::unique_ptr<llvm::raw_ostream> file,
                          WritableFileWrapper::Create(dump_file_path));
    
      LOG(INFO) << "IR dump file created: " << dump_file_path;
      return file;
    }
    
    class PrinterConfig : public mlir::PassManager::IRPrinterConfig {
     public:
      explicit PrinterConfig(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 05:38:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top