Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 112 for atTerminator (0.25 sec)

  1. src/text/template/parse/lex.go

    func lexVariable(l *lexer) stateFn {
    	if l.atTerminator() { // Nothing interesting follows -> "$".
    		return l.emit(itemVariable)
    	}
    	return lexFieldOrVariable(l, itemVariable)
    }
    
    // lexFieldOrVariable scans a field or variable: [.$]Alphanumeric.
    // The . or $ has been scanned.
    func lexFieldOrVariable(l *lexer, typ itemType) stateFn {
    	if l.atTerminator() { // Nothing interesting follows -> "." or "$".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 04 22:36:12 UTC 2022
    - 18.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/passes/rewrite_quantized_io.cc

              func->emitError(error_message);
              return;
            }
          }
        }
    
        builder.setInsertionPoint(terminator);
        // Replace tfr.cast(tensor<quant_type>) -> output
        // with tfr.cast(tensor<storage_type>) -> output
        for (OpOperand& returned_value : terminator->getOpOperands()) {
          auto returned_type =
              returned_value.get().getType().dyn_cast<TensorType>();
          if (!returned_type ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_parallel_execute_sink_resource_write.cc

          assign_var.getOperation()->moveBefore(terminator);
          assign_var.getValueMutable().assign(
              terminator->getOperand(result.index()));
          results_to_remove.push_back(result.index());
        }
    
        rewrite |= !results_to_remove.empty();
      }
    
      if (!rewrite) return;
    
      // Remove leftover unused results (terminator operands) from moving
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 06 04:46:18 UTC 2022
    - 6.6K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tensorflow/transforms/convert_tf_control_flow_to_scf.cc

                          TypeRange block_arguments_type,
                          PatternRewriter& rewriter) {
      // If `destination_block` isn't empty, erase its terminator to ensure that it
      // never contains two terminator-like ops after merging.
      if (!destination_block->empty())
        rewriter.eraseOp(destination_block->getTerminator());
    
      destination_block->addArguments(
          block_arguments_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/tf_device_ops_invalid.mlir

      ^bb:
        tf_device.return
      }
      func.return
    }
    
    // -----
    
    // Check that a replicate with a bad terminator is invalid.
    func.func @parser_replicate_terminator() {
      tf_device.replicate() {n = 2 : i32} {
    // expected-error@-1 {{custom op 'tf_device.replicate' expects a tf_device.return terminator}}
        func.return
      }
      func.return
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 14 15:35:49 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/parallel_execute_to_islands.cc

        Block& execute_block = parallel_execute_op.GetRegionBlockWithIndex(i);
    
        // Replace terminator with tf_executor.YieldOp.
        Operation* terminator = execute_block.getTerminator();
        builder->setInsertionPoint(terminator);
        auto yield = builder->create<tf_executor::YieldOp>(
            terminator->getLoc(), terminator->getOperands());
        terminator->erase();
    
        // Create new island for each region.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 19 19:47:16 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top