Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,255 for OP (0.05 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/cluster_util.cc

      llvm::SetVector<Operation*> ops_depend_on_cluster;
      for (Operation& op : *c.ops.front()->getBlock()) {
        if (op.isBeforeInBlock(c.ops.front()) || c.ops.contains(&op)) {
          continue;
        }
        // Gets the live in values of the `op`
        llvm::SetVector<Value> live_ins(op.operand_begin(), op.operand_end());
        getUsedValuesDefinedAbove(op.getRegions(), live_ins);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 28 00:32:55 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc

        if (isa<TF::TPUCopyWithDynamicShapeOp>(op)) {
          if (failed(CheckOpIsValid(op))) return WalkResult::interrupt();
          if (CanMove(op)) {
            tpu_copy_with_dynamic_shape_ops.push_back(op);
          }
        }
        return WalkResult::advance();
      });
      if (walk_result.wasInterrupted()) return signalPassFailure();
    
      for (Operation* op : tpu_copy_with_dynamic_shape_ops) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/materialize_mlir_passthrough_op.cc

        if (!main) {
          op->emitError() << "MLIR Opaque Op expects a main() entry point\n";
          return;
        }
        if (main.getNumArguments() != op->getNumOperands()) {
          op->emitError() << "mismatch between MLIR Opaque Op number of operands ("
                          << op->getNumOperands()
                          << ") and main() entry point in the module ("
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_canonicalization_helper.h

    // during import.
    template <typename Op>
    struct DropAttributes : public OpRewritePattern<Op> {
      using OpRewritePattern<Op>::OpRewritePattern;
    
      // Drop the "output_shapes" attribute.
      LogicalResult matchAndRewrite(Op op,
                                    PatternRewriter &rewriter) const override {
        bool found = !!op->removeAttr("output_shapes");
        return success(found);
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Nov 12 21:57:12 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

      llvm::DenseSet<Block*> blocks;
      Operation* op = bottom;
      while (op && op != top) {
        blocks.insert(op->getBlock());
        op = op->getParentOp();
      }
      return blocks;
    }
    
    // For a given value defined somewhere underneath `target_blocks`, get the
    // result that's emitted through the op(s) that wrap it, in one of the
    // `target_blocks`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/hoist_loop_invariant.cc

    }
    
    bool ShouldMoveOutOfRegion(
        Operation *op, Region *region,
        const llvm::DenseSet<ResourceHandle> &read_only_vars) {
      return ResourceOpCanBeHoisted(op, region, read_only_vars) ||
             (isMemoryEffectFree(op) && isSpeculatable(op));
    }
    
    bool OnlyHasReadEffect(Operation *op) {
      auto interface = llvm::dyn_cast<MemoryEffectOpInterface>(op);
      if (!interface) return false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc

          return failure();
        }
        element_type = getElementTypeOrSelf(op->getOperand(1).getType());
      }
      if (attr == "output_quantization") {
        if (op->getNumResults() < 1) {
          return failure();
        }
        element_type = getElementTypeOrSelf(op->getOpResult(0).getType());
      }
      if (element_type) {
        is_8_bit = mlir::isa<TF::Qint8Type>(element_type);
        return success();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/move_tpu_compile_to_front.cc

    };
    
    void MarkCompilationOps(Operation* func) {
      func->walk([&](Operation* op) {
        if (llvm::isa<TF::_TPUCompileMlirOp>(op)) {
          op->setAttr("_is_compilation", UnitAttr::get(func->getContext()));
          op = op->getParentOp();
          while (op && op != func) {
            op->setAttr("_wraps_compilation", UnitAttr::get(func->getContext()));
            op = op->getParentOp();
          }
        }
      });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 17 00:26:18 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils_test.cc

    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 11 00:47:05 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/quantization_context.h

          return states_[operand_states_[{op, index}]];
        }
    
        // Returns the state of the index-th result of the op.
        QuantState &GetResultQuantState(Operation *op, int index) {
          return states_[result_states_[{op, index}]];
        }
    
        // Returns the state of the index-th operand of the op.
        RequantizeState &GetOperandRequantizeState(Operation *op, int index) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top