Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 406 for onStop (0.18 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/constant_op_device_assignment.cc

              ConstantOpDeviceAssignmentPass> {
      void runOnOperation() override;
    };
    
    void ConstantOpDeviceAssignmentPass::runOnOperation() {
      ModuleOp module = getOperation();
    
      module.walk([&](TF::ConstOp op) {
        // Keep the ConstOp if the op already have the device attribute.
        if (StringAttr device_attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) {
          return WalkResult::advance();
        }
        OpBuilder builder(op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc

          .replaceAllUsesWith(cloned_const_op->getResult(0));
    }
    
    bool IsConstOrQConstInt(Operation* op) {
      if (!llvm::isa<TFL::ConstOp, TFL::QConstOp, arith::ConstantOp>(op))
        return false;
    
      if (auto arith_const_op = dyn_cast_or_null<arith::ConstantOp>(op)) {
        // arith ConstOp path.
        auto type =
            mlir::cast<ShapedType>(arith_const_op.getType()).getElementType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

          loc, mlir::RankedTensorType::get({}, getElementTypeOrSelf(shape)), shape,
          /*begin=*/
          builder->create<TF::ConstOp>(loc, builder->getI32TensorAttr({idx})),
          /*end=*/
          builder->create<TF::ConstOp>(loc, builder->getI32TensorAttr({idx + 1})),
          /*strides=*/
          builder->create<TF::ConstOp>(loc, builder->getI32TensorAttr({1})),
          /*begin_mask=*/0, /*end_mask=*/0, /*ellipsis_mask=*/0,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold.cc

      builder.setInsertionPointAfter(op);
      for (const auto& result_value : result_values) {
        results.push_back(builder.create<TF::ConstOp>(op->getLoc(), result_value));
      }
      return success();
    }
    
    bool IsOperationFoldable(Operation* op) {
      if (isa<TF::ConstOp>(op)) return true;
    
      if (op->getDialect()->getNamespace() != "tf" || !TF::CanBeFolded(op)) {
        return false;
      }
    
      // Check if the operands are foldable as well.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. src/regexp/syntax/prog.go

    type Prog struct {
    	Inst   []Inst
    	Start  int // index of start instruction
    	NumCap int // number of InstCapture insts in re
    }
    
    // An InstOp is an instruction opcode.
    type InstOp uint8
    
    const (
    	InstAlt InstOp = iota
    	InstAltMatch
    	InstCapture
    	InstEmptyWidth
    	InstMatch
    	InstFail
    	InstNop
    	InstRune
    	InstRune1
    	InstRuneAny
    	InstRuneAnyNotNL
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc

    class QuantizeConstWeights : public OpRewritePattern<TF::ConstOp> {
     public:
      explicit QuantizeConstWeights(
          MLIRContext* context,
          const tensorflow::quantization::QuantizationOptions& quantization_options)
          : OpRewritePattern<TF::ConstOp>(context),
            quant_options_(quantization_options) {}
    
      LogicalResult matchAndRewrite(TF::ConstOp op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. src/encoding/json/scanner.go

    	s.parseState = s.parseState[0:0]
    	s.err = nil
    	s.endTop = false
    }
    
    // eof tells the scanner that the end of input has been reached.
    // It returns a scan status just as s.step does.
    func (s *scanner) eof() int {
    	if s.err != nil {
    		return scanError
    	}
    	if s.endTop {
    		return scanEnd
    	}
    	s.step(s, ' ')
    	if s.endTop {
    		return scanEnd
    	}
    	if s.err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op_test.cc

                      .Input(inputs)
                      .Attr("ids", ids)
                      .Attr("calibration_methods", calibration_methods)
                      .Finalize(node_def()));
      ASSERT_THAT(InitOp(),
                  StatusIs(tsl::error::INVALID_ARGUMENT,
                           HasSubstr("NodeDef missing attr 'output_file_path'")));
    }
    
    TEST_F(CalibrationStatisticsSaverTest, WrongNumInputs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/sink_constant.cc

          // defined above and sink these constants in the region body.
          // The sunk_constant map keeps a mapping from a ConstOp defined above to
          // a sunk clone of it. This allows for reusing a sunk constant with
          // multiple uses in the region.
          llvm::DenseMap<Value, TF::ConstOp> sunk_constant;
          Region &body = cluster.getBody();
          visitUsedValuesDefinedAbove(body, [&](OpOperand *use) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.cc

        Value step_size = rewriter.create<ConstOp>(loc, GetScalarOfType(u64, 256));
        Value increment =
            rewriter.create<MulOp>(loc, u64_scalar, step_size, rng_op.getDelta());
    
        // Increment the counter.
        SmallVector<Value, 4> pack_args;
        RankedTensorType word_u64_type = RankedTensorType::get({}, u64);
        Value zero_u64 = rewriter.create<ConstOp>(loc, GetScalarOfType(u64, 0));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 8.1K bytes
    - Viewed (0)
Back to top