Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 261 for getFlow (0.12 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc

    }
    
    static Value CreateTranspose(OpBuilder& builder, Value source,
                                 ArrayRef<int64_t> perm) {
      return builder.create<stablehlo::TransposeOp>(source.getLoc(), source, perm)
          ->getResult(0);
    }
    
    // Transform pad(transpose(x)) to transpose(pad(x))
    struct TransposeCommuteWithPad : public OpRewritePattern<stablehlo::PadOp> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/legalize_tf_while.cc

      // Create new TFL While op that will be used to replace TF While op.
      auto new_op = OpBuilder(op).create<TFL::WhileOp>(
          op->getLoc(), op->getResultTypes(), op->getOperands(),
          while_op.getIsStateless());
      Location loc = while_op->getLoc();
      CreateRegionWithCall(while_op.cond_function(), new_op.getCond(), loc);
      CreateRegionWithCall(while_op.body_function(), new_op.getBody(), loc);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/metrics/error_collector_inst.cc

      auto collectOps = [this](Operation *op) {
        const auto &op_name = op->getName().getStringRef().str();
        if (absl::StartsWith(op_name, "tf.") || absl::StartsWith(op_name, "tfl.")) {
          loc_to_name_.emplace(op->getLoc(), op_name);
        }
      };
    
      for (auto &region : module->getRegions()) {
        region.walk(collectOps);
      }
    
      pass_name_ = extract_pass_name(pass->getName().str());
      error_collector_->Clear();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/cast_bf16_ops_to_f32.cc

        for (int i = 0; i < op->getNumOperands(); i++) {
          Value input = op->getOperand(i);
          if (getElementTypeOrSelf(input).isBF16()) {
            Value f32_cast = rewriter.create<TF::CastOp>(
                op->getLoc(),
                CloneTypeWithNewElementType(input.getType(), rewriter.getF32Type()),
                input);
            op->setOperand(i, f32_cast);
          }
        }
    
        // Casts BF16 outputs of the operation.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

        auto new_reshape_type = RankedTensorType::get(new_reshape_dims, el_ty);
        ReshapeOp new_reshape =
            rewriter.create<ReshapeOp>(new_reshape_shape.getLoc(), new_reshape_type,
                                       op.getInput(), new_reshape_shape);
        TF::ConstOp new_broadcast_shape =
            GetI64ConstantTensor(rewriter, reshape_shape, op.getLoc());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc

      for (Value result : new_launch_op_results)
        new_launch_op_results_types.push_back(result.getType());
    
      auto new_launch_op = builder.create<tf_device::LaunchOp>(
          old_launch_op->getLoc(), old_launch_op->getDeviceAttr(),
          /*result_types=*/new_launch_op_results_types);
    
      new_launch_op.getBody().takeBody(old_launch_op->getBody());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.td

    def CreateTFReadVariableOpFromResourceHandle : NativeCodeCall<
        "$_builder.create<TF::ReadVariableOp>("
        "$0.getLoc(), GetResourceSubtype($1), $1)">;
    
    def CreateTFSelectOp: NativeCodeCall<
        "$_builder.create<TF::SelectOp>("
        "$0.getLoc(), $3.getType(), $1, $2, $3)">;
    
    def ConstAttrIfThenElse: NativeCodeCall<
        "($0).getValue() ? ($1) : ($2)">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/quantization/ir/ConvertConst.cc

      // When creating the new const op, use a fused location that combines the
      // original const and the qbarrier that led to the quantization.
      auto fusedLoc = rewriter.getFusedLoc(
          {qbarrier.getArg().getDefiningOp()->getLoc(), qbarrier.getLoc()});
      auto newConstOp = rewriter.create<arith::ConstantOp>(
          fusedLoc, newConstValueType, cast<TypedAttr>(newConstValue));
      rewriter.replaceOpWithNewOp<StorageCastOp>(qbarrier, qbarrier.getType(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      arg_types.push_back(RankedTensorType::get({}, builder.getI32Type()));
      arg_locs.push_back(module_op.getLoc());
      for (const Value input_value : inputs) {
        arg_types.push_back(input_value.getType());
        arg_locs.push_back(input_value.getLoc());
      }
    
      // Identify result types.
      SmallVector<Type> result_types;
      for (const Value output_value : outputs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  10. src/sync/pool.go

    		// reuse.
    		x, _ = l.shared.popHead()
    		if x == nil {
    			x = p.getSlow(pid)
    		}
    	}
    	runtime_procUnpin()
    	if race.Enabled {
    		race.Enable()
    		if x != nil {
    			race.Acquire(poolRaceAddr(x))
    		}
    	}
    	if x == nil && p.New != nil {
    		x = p.New()
    	}
    	return x
    }
    
    func (p *Pool) getSlow(pid int) any {
    	// See the comment in pin regarding ordering of the loads.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top