Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 380 for getOperation (0.2 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

          }
        }
    
        // Move inner ops from island to block containing graph.
        auto &island_body = island_op.GetBody().getOperations();
        Operation *operation = op.getOperation();
        operation->getBlock()->getOperations().splice(
            operation->getIterator(), island_body, island_body.begin(),
            std::prev(island_body.end()));
        rewriter.replaceOp(op, new_rets);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_cluster_formation.cc

        auto call = llvm::cast<CallOpInterface>(pcall_op.getOperation());
        auto callee =
            llvm::cast<FuncOp>(call.resolveCallable(&symbol_table_collection));
        callee->setAttr(noinline_attr_name, builder.getBoolAttr(true));
      }
      return mlir::success();
    }
    
    void XlaClusterFormationPass::runOnOperation() {
      ModuleOp module = getOperation();
      SymbolTableCollection symbol_table_collection;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 19:09:44 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/drop_while_shape_invariant.cc

      if (llvm::isa<WhileOp, WhileRegionOp>(op))
        op->removeAttr(kShapeInvariantAttr);
    }
    void DropWhileShapeInvariantPass::runOnOperation() {
      getOperation().walk([](Operation* op) { DropWhileShapeInvariantAttr(op); });
    }
    
    void DropWhileShapeInvariantInDeviceClusterPass::runOnOperation() {
      getOperation().walk([](tf_device::ClusterOp cluster) {
        cluster.walk([](Operation* op) { DropWhileShapeInvariantAttr(op); });
      });
    }
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/passes/decompose.cc

        Operation* inlined_point = call_op.getOperation();
        Operation* after_inlined_point =
            &*std::next(Block::iterator(call_op.getOperation()));
    
        // Use the inliner to replace all the uses of the call_op by its
        // composition.
        if (failed(inlineCall(inliner,
                              cast<CallOpInterface>(call_op.getOperation()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

      int64_t total_size_transferred = 0;
      for (auto input : to_graph.getOperands()) {
        Operation* input_op = input.getDefiningOp();
        if (input_op && input_op == from_graph.getOperation()) {
          auto input_type =
              mlir::dyn_cast_or_null<RankedTensorType>(input.getType());
          if (input_type == nullptr || !input_type.hasStaticShape()) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/decompose_hybrid_quantization.cc

     public:
      using OpRewritePattern<SrcOp>::OpRewritePattern;
    
      LogicalResult matchAndRewrite(SrcOp srcop,
                                    PatternRewriter &rewriter) const final {
        Operation *op = srcop.getOperation();
        bool allTypesFp = true;
        bool allTypesQuantizedOrInt = true;
        for (auto operand : op->getOperands()) {
          ShapedType type = mlir::dyn_cast<ShapedType>(operand.getType());
          if (!type) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc

        }
        // Use the min/max from the operands and the num_bits and narrow_range
        // attribute to create the quantization parameter for the new quantize op.
        rewriter.setInsertionPointAfter(tf_op.getOperation());
        IntegerAttr num_bits = rewriter.getI64IntegerAttr(tf_op.getNumBits());
        BoolAttr narrow_range = rewriter.getBoolAttr(tf_op.getNarrowRange());
        Type res_type = tf_op.getType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops_pass.cc

        RewritePatternSet patterns(&getContext());
        TF::PopulateDecomposeResourceOpsPatterns(&getContext(), &patterns);
    
        if (failed(applyPatternsAndFoldGreedily(getOperation(),
                                                std::move(patterns)))) {
          getOperation().emitError() << kBadDecompositionMessage;
          signalPassFailure();
        }
      }
    };
    
    #define GEN_PASS_DEF_DECOMPOSERESOURCEOPSINCLUSTERPASS
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:01:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_canonicalization_helper.h

    template <typename OpTy, typename... Args>
    OpTy CreateTfOp(RewriterBase &b, Operation *op, Args &&...args) {
      auto ret = b.create<OpTy>(op->getLoc(), std::forward<Args>(args)...);
      CopyDeviceAndUnderscoredAttributes(op, ret.getOperation());
      return ret;
    }
    
    // Helper function to replace TF op with another op while copying all underscore
    // attributes from the TF op.
    // TODO(jpienaar): This is a workaround until behavior is established.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Nov 12 21:57:12 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/device_attribute_to_launch.cc

          builder.create<tf_device::ReturnOp>(op->getLoc(), op->getResults())
              .getOperation();
      MLIRContext* context = launch_op.getContext();
      op->removeAttr(StringAttr::get(context, kDeviceAttr));
      op->moveBefore(return_op);
    }
    
    void DeviceAttributeToLaunch::runOnOperation() {
      const Dialect* tf_dialect = getContext().getLoadedDialect("tf");
    
      getOperation().walk([&](Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 00:59:46 UTC 2022
    - 2.7K bytes
    - Viewed (0)
Back to top