Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for SmallVectorImpl (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/side_effect_analysis_util.h

    namespace TF {
    
    std::string GetDeviceAttrAsResourceInstanceStr(Operation* op);
    
    void MarkResourceAsReadAndWrite(
        Value value,
        SmallVectorImpl<SideEffects::EffectInstance<MemoryEffects::Effect>>&
            effect);
    
    void MarkResourceAsReadOnly(
        Value value,
        SmallVectorImpl<SideEffects::EffectInstance<MemoryEffects::Effect>>&
            effect);
    
    }  // namespace TF
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 16 00:33:17 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/side_effect_analysis_util.cc

      // string) are seen as dependent (same resource instance).
      if (!device_attr) return "";
      return device_attr.str();
    }
    
    void MarkResourceAsReadAndWrite(
        Value value,
        SmallVectorImpl<SideEffects::EffectInstance<MemoryEffects::Effect>>&
            effects) {
      if (value.getType().cast<TensorType>().getElementType().isa<ResourceType>()) {
        effects.emplace_back(MemoryEffects::Read::get(), value,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 16 00:33:17 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

                                      SmallVectorImpl<Type>* output_types) const;
    
      // Creates the TF op and also the necessary tfr.cast ops to replace the
      // original TFR call op.
      LogicalResult CreateAndReplaceOp(
          PatternRewriter& rewriter, CallOp call_op,
          const SmallVectorImpl<Type>& output_types,
          const SmallVectorImpl<Value>& inputs, const NamedAttrList& attr_list,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc

                                     llvm::SmallVectorImpl<Type>& new_input_types,
                                     OpBuilder builder);
    
      // Modifies the element types of entry block returns to be user specified
      // and returns the new return types.
      LogicalResult ModifyOutputNodes(func::FuncOp func,
                                      llvm::SmallVectorImpl<Type>& new_output_types,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/convert_type.h

    void ConvertToMlirShape(const TensorShape& input_shape,
                            llvm::SmallVectorImpl<int64_t>* shape);
    
    // Converts an TensorFlow shape proto to the one used in MLIR.
    Status ConvertToMlirShape(const TensorShapeProto& input_shape,
                              llvm::SmallVectorImpl<int64_t>* shape);
    
    // Given a tensor shape and dtype, get the corresponding MLIR tensor type.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.h

    mlir::LogicalResult GetOutputTypesForLogicalDeviceComputation(
        int core_id, llvm::ArrayRef<xla::OpSharding> output_sharding_config,
        mlir::tf_device::ClusterFuncOp cluster_func,
        llvm::SmallVectorImpl<mlir::Type>* output_types,
        llvm::SmallVectorImpl<int>* cluster_to_core_index);
    
    // Remaps outputs of `new_parallel_execute` op that represent concurrent
    // execution of the `tf_device.cluster_func` at index `cluster_idx` of
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 22:18:34 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/fold_broadcast.cc

      LogicalResult RewriteOp(
          Operation* op, PatternRewriter& rewriter,
          const std::function<bool(ArrayRef<int64_t>, ArrayRef<int64_t>,
                                   SmallVectorImpl<int64_t>&)>&
              get_broadcasted_shape) const;
    
      LogicalResult RewriteBatchMatMulV2Op(Operation* op,
                                           PatternRewriter& rewriter) const;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_dialect.h

                                                 SmallVectorImpl<OpFoldResult> &);
      static void RegisterConstantFoldHook(ConstantFoldHook fn) {
        constant_fold_hook_ = std::move(fn);
      }
    
      static LogicalResult constantFold(Operation *op, ArrayRef<Attribute> operands,
                                        SmallVectorImpl<OpFoldResult> &results) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc

    // tf_executor.graph.
    void VisitOpOperand(GraphOp graph, Value operand,
                        llvm::SmallPtrSetImpl<Operation*>* reachable_ops,
                        llvm::SmallVectorImpl<Operation*>* ops_to_visit) {
      Operation* def = operand.getDefiningOp();
      if (def && def->getParentOp() == graph && reachable_ops->insert(def).second) {
        // Op has not been visited, add to queue to visit later.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/constant_fold.h

    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    
    namespace mlir {
    namespace TF {
    
    LogicalResult ConstantFoldFallbackHook(
        Operation *inst, ArrayRef<Attribute> operands,
        SmallVectorImpl<OpFoldResult> &results);  // NOLINT
    
    }  // namespace TF
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Dec 14 20:04:38 UTC 2020
    - 1.3K bytes
    - Viewed (0)
Back to top