Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 372 for terminator (0.14 sec)

  1. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

      void runOnOperation() override;
    };
    
    // Updates function return type of the given functions to match the terminator
    // op operands' types.
    //
    // Requires the function has exactly one block.
    void UpdateFuncType(func::FuncOp func) {
      Operation* terminator = func.front().getTerminator();
      auto return_types = llvm::to_vector<4>(terminator->getOperandTypes());
    
      FunctionType func_type = func.getFunctionType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

    }
    
    // Updates control flow op terminator with an extra element `token`.
    void RewriteControlFlowTerminator(OpBuilder& builder, Operation* terminator,
                                      Value token, bool flatten_tuple) {
      assert(flatten_tuple || terminator->getNumOperands() == 1);
      assert(flatten_tuple || terminator->getBlock()->getNumArguments() == 1);
      // `mhlo.while` cond terminator does not need to be rewritten as it always
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      // a ReturnOp terminator.
      ReplicateOp::ensureTerminator(body, parser.getBuilder(), result.location);
    
      if (!llvm::hasSingleElement(body))
        return parser.emitError(loc) << "expects a single block region";
    
      Operation& terminator = body.front().back();
      if (!isa<ReturnOp>(terminator))
        return parser.emitError(loc) << "expects a tf_device.return terminator";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc

      Block& block = func.front();
      auto* terminator = block.getTerminator();
      builder.setInsertionPoint(terminator);
    
      if (mlir::isa<FloatType>(output_type)) {
        return success();
      }
    
      int num_return_operands = terminator->getNumOperands();
      new_output_types.reserve(num_return_operands);
      for (int i = 0; i != num_return_operands; ++i) {
        auto returned_value = terminator->getOperand(i);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

                             first_block.args_end());
    
      // Replace the existing terminator with a return.
      terminator = first_block.getTerminator();
      builder.setInsertionPoint(terminator);
      builder.create<func::ReturnOp>(terminator->getLoc(), return_values);
      terminator->erase();
    
      outlined_func.setPrivate();
    
      // Uniquify the function name, and insert into module.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

        op->erase();
      }
    }
    
    // Updates terminator op arguments of 'func' after removing arguments
    // specified in 'arguments_to_erase'.
    template <typename T>
    void UpdateTerminatorArguments(T& func,
                                   const ArrayRef<unsigned> arguments_to_erase,
                                   llvm::BitVector& erase_indices) {
      auto terminator = func.front().getTerminator();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tf_tfl_translate.cc

        mlir::Operation *terminator = nullptr;
        if (subgraph->name()) {
          if (auto fn = module.lookupSymbol<FuncOp>(subgraph->name()->str()))
            terminator = fn.back().getTerminator();
        }
        i = 0;
        for (auto output : *subgraph->outputs()) {
          print_buffer(*subgraph, i, output, [&](int i) {
            return terminator ? terminator->getOperand(i).getLoc() : unknown_loc;
          });
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 14K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

      Region* cluster_region = &cluster.getBody();
      llvm::SmallSetVector<Operation*, 4> tail_outside_compiled_ops_set;
      Operation* terminator = cluster.GetBody().getTerminator();
      llvm::SmallSetVector<Value, 4> cluster_results_set;
      cluster_results_set.insert(terminator->getOperands().begin(),
                                 terminator->getOperands().end());
    
      auto cluster_ops = llvm::reverse(cluster.GetBody().without_terminator());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

      }
    
      // Edit the return ops and remove the dequantize ops in place.
      auto* terminator = bb.getTerminator();
      int num_return_operands = terminator->getNumOperands();
      llvm::SmallVector<Type, 4> output_types;
      output_types.reserve(num_return_operands);
      for (int i = 0; i != num_return_operands; ++i) {
        auto returned_value = terminator->getOperand(i);
        Operation* returned_op = returned_value.getDefiningOp();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. src/net/cgo_unix.go

    //
    //	 Source		Encoding			Maximum length of single name entry
    //	 Unicast DNS		ASCII or			<=253 + a NUL terminator
    //				Unicode in RFC 5892		252 * total number of labels + delimiters + a NUL terminator
    //	 Multicast DNS	UTF-8 in RFC 5198 or		<=253 + a NUL terminator
    //				the same as unicast DNS ASCII	<=253 + a NUL terminator
    //	 Local database	various				depends on implementation
    const (
    	nameinfoLen    = 64
    	maxNameinfoLen = 4096
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top