Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 158 for getOperands (0.15 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.cc

      mhlo::ReturnOp return_op = dyn_cast<mhlo::ReturnOp>(body.back());
      if (!return_op) return failure();
      if (return_op.getNumOperands() != 1) return failure();
      if (return_op.getOperands().front() != body.getArgument(1)) return failure();
      return success();
    }
    
    bool NeedsReformatTypeAndPermutation(int batch_dim, int feature_dim,
                                         int spatial_dim_start,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

          auto body_yield_operand =
              LookThroughIdentity(body_yield.getOperand(op_idx));
          auto cond_yield_operand =
              cond_forwards_args
                  ? LookThroughIdentity(cond_yield.getOperand(op_idx + 1))
                  : nullptr;
          auto while_operand = while_op.getOperand(op_idx);
          if ((body_arg == body_yield_operand ||
               while_operand == body_yield_operand) &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc

      llvm::SetVector<Value> been_defined;
      llvm::SetVector<Value> results;
      auto update_from_op = [&](Operation* op) {
        been_defined.insert(op->getResults().begin(), op->getResults().end());
        for (Value input : op->getOperands()) {
          if (been_defined.contains(input)) {
            continue;
          }
          results.insert(input);
        }
      };
      for (Operation* op : partition_ops) {
        update_from_op(op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      return wrapped_op.getNumResults() == terminator->getNumOperands() &&
             std::equal(wrapped_op.getResults().begin(),
                        wrapped_op.getResults().end(),
                        terminator->getOperands().begin());
    }
    }  // end anonymous namespace
    
    TensorFlowDeviceDialect::TensorFlowDeviceDialect(MLIRContext* context)
        : Dialect(/*name=*/"tf_device", context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

        const std::string tf_op_full_name = llvm::Twine("tf.", tf_op_name).str();
    
        // Create the TF op
        OperationState op_state(op.getLoc(), tf_op_full_name);
        op_state.addOperands(op.getOperands());
        op_state.addTypes(op.getResultTypes());
    
        SmallVector<NamedAttribute, 2> attrs;
        std::string parsed_op_name;
        tensorflow::NodeDef node_def;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/pin_ops_with_side_effects.cc

      // then, they are represented as mlir::TF::IfOp. We add them here, anyway, to
      // be future-proof.
      if (llvm::isa<TF::IfOp, TFL::IfOp, TFL::CallOnceOp, TFL::WhileOp>(op))
        return true;
      for (auto operand : op->getOperands()) {
        if (IsResourceTensor(operand)) return true;
      }
      for (auto result : op->getResults()) {
        if (IsResourceTensor(result)) return true;
      }
      return false;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc

        return mlir::isa<mlir::TF::StringType>(type.getElementType());
      });
      return has_string;
    }
    
    bool HasStringOperand(Operation& op) {
      for (auto operand : op.getOperands()) {
        auto operand_type = getElementTypeOrSelf(operand);
        if (IsStringType(operand_type)) return true;
      }
      return false;
    }
    
    bool HasStringResult(Operation& op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

                  1, mlir::stablehlo::PrecisionAttr::get(
                         ctx_.get(), mlir::stablehlo::Precision::DEFAULT)))),
      };
      const SmallVector<Value> operands(dot_general_op->getOperands());
      const SmallVector<Value> results(dot_general_op->getResults());
      Operation* lifted_op =
          LiftAsFunctionCall(builder_, dot_general_op->getLoc(),
                             FunctionCallOpType::TFXlaCallModuleOp,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

      llvm::SetVector<Operation*> new_ops;
    
      while (!ops_to_process.empty()) {
        for (Operation* op : ops_to_process) {
          if (predecessors) {
            for (Value operand : op->getOperands()) {
              // Stop at the block boundary.
              if (mlir::isa<BlockArgument>(operand)) continue;
    
              Operation* predecessor = operand.getDefiningOp();
              if (!operations->contains(predecessor) &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

          for (auto result : filter_resources(op->getResults())) {
            for (auto operand : op->getOperands()) {
              PropagateInputToOutput(operand, result);
            }
          }
        } else if (llvm::isa<IdentityNOp, IdentityOp, CastOp>(op)) {
          for (auto result : filter_resources(op->getResults()))
            PropagateInputToOutput(op->getOperand(result.getResultNumber()),
                                   result);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
Back to top