Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 218 for getOperands (0.19 sec)

  1. tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.cc

          // Propagate the analysis results from within the callee's body.
          PropagatePotentiallyWrittenUpFromCallee(batch_function.func().getRegion(),
                                                  batch_function.getOperands());
          return;
        }
        // For all other ops, we assume it mutates all resources it uses, so
        // this errs on the side of being conservative. We should improve
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/reduce_type_precision.cc

        auto const_type = mlir::dyn_cast<ShapedType>(op.getOperand(0).getType());
        auto result_type = mlir::dyn_cast<ShapedType>(op.getResult().getType());
        if (!const_type || !const_type.getElementType().isSignlessInteger(4) ||
            !result_type || !result_type.getElementType().isSignlessInteger(8)) {
          return failure();
        }
    
        auto input_op =
            dyn_cast<arith::ConstantOp>(op.getOperand(0).getDefiningOp());
        if (!input_op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

        Operation::operand_range mean(fused_batch_norm->getOperands());
        ::mlir::FloatAttr exponential_avg_factor;
        ::mlir::TF::FusedBatchNormV3Op root;
        Operation::operand_range offset(fused_batch_norm->getOperands());
        Operation::operand_range x(fused_batch_norm->getOperands());
        Operation::operand_range scale(fused_batch_norm->getOperands());
        Operation::operand_range variance(fused_batch_norm->getOperands());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/xla_inline_device_ops.cc

      // This is the last op, should be tf_device::ReturnOp.
      assert(mlir::isa<mlir::tf_device::ReturnOp>(return_op));
    
      Value old_val, new_val;
      for (auto it : llvm::zip(cluster_op.getResults(), return_op.getOperands())) {
        std::tie(old_val, new_val) = it;
        old_val.replaceAllUsesExcept(new_val, &return_op);
      }
    
      cluster_op.erase();
    }
    
    void XlaInlineDeviceOpsPass::runOnOperation() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 00:59:46 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tf_functional_to_executor.cc

          island.getBody().front().begin(), body.getOperations(),
          copy_range.begin(), copy_range.end());
      builder.setInsertionPointToEnd(&island.getBody().front());
      builder.create<tf_executor::YieldOp>(loc, return_op.getOperands());
      for (auto item : llvm::enumerate(graph_op.getResults())) {
        return_op.setOperand(item.index(), item.value());
      }
    }
    
    std::unique_ptr<OperationPass<func::FuncOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

    }
    
    }  // end anonymous namespace
    
    OpFoldResult ReshapeOp::fold(FoldAdaptor adaptor) {
      auto operands = adaptor.getOperands();
      // Remove identity reshape with both static result and input shape.
      auto result_type = getType().cast<ShapedType>();
      auto input_type = getOperand(0).getType().cast<ShapedType>();
      if (InputOutputHasSameShape(input_type, result_type)) return getInput();
    
      // Constant folding
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/annotate_parameter_replication.cc

                mlir::cast<IntegerAttr>(mirrored_index).getInt());
          }
        }
        auto func =
            llvm::cast<func::FuncOp>(m.lookupSymbol(cluster_func.getFunc()));
        for (auto entry : llvm::enumerate(cluster_func.getOperands())) {
          auto operand = SkipIdentityAndReadVariable(entry.value());
          auto block_arg = mlir::dyn_cast<BlockArgument>(operand);
          if (block_arg && block_arg.getOwner() == &replicate.GetBody()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

      auto old_body_ret = body.front().getTerminator();
      auto new_retvals = llvm::to_vector<8>(old_body_ret->getOperands());
      for (int64_t i = 0; i < while_op.getNumResults(); ++i) {
        if (!ta_arg_buffer_type(i)) continue;
        auto retval = old_body_ret->getOperand(i);
        auto arg = retval.dyn_cast<BlockArgument>();
        if (!arg) {
          return while_op.emitOpError(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

          func_operand_types.push_back(operand.getType());
    
        // Function results are the yield operands
        SmallVector<Type, 16> func_result_types;
        for (Value operand : island_op.GetYield().getOperands())
          func_result_types.push_back(operand.getType());
        FunctionType func_type =
            FunctionType::get(ctx, func_operand_types, func_result_types);
    
        // Create the outlined function
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/cast_bf16_ops_to_f32.cc

      LogicalResult match(Operation* op) const override {
        if (isa<TF::CastOp, TF::ConstOp>(op) ||
            op->getName().hasTrait<OpTrait::ZeroOperands>()) {
          return failure();
        }
        for (Value input : op->getOperands()) {
          if (getElementTypeOrSelf(input).isBF16()) {
            return success();
          }
        }
        for (Value value : op->getResults()) {
          if (getElementTypeOrSelf(value).isBF16()) {
            return success();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top