Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ConstantOp (1.62 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

                                          OpBuilder *builder) {
      auto shape_tensor = builder->create<mhlo::ConstantOp>(
          loc, GetI64ElementsAttr({num_elements}, builder));
    
      auto lower = builder->create<mhlo::ConstantOp>(
          loc, builder->getI32IntegerAttr(lower_limit));
      auto upper = builder->create<mhlo::ConstantOp>(
          loc, builder->getI32IntegerAttr(upper_limit));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    namespace tflite {
    namespace {
    
    bool IsConst(mlir::Operation* op) {
      return llvm::isa<mlir::arith::ConstantOp, mlir::TF::ConstOp,
                       mlir::TFL::ConstOp, mlir::TFL::QConstOp>(op);
    }
    
    bool IsOpSupported(mlir::Operation* op, const std::string& hardware) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

          tensorflow::GetTypeFromTFTensorShape(shape, rewriter->getIntegerType(32));
      DenseElementsAttr attr =
          DenseElementsAttr::get(type, rewriter->getI32IntegerAttr(val));
      return rewriter->create<arith::ConstantOp>(loc, type, attr);
    }
    
    Value CreateI64SplatConst(Location loc, PatternRewriter *rewriter,
                              ArrayRef<int64_t> shape, int64_t val) {
      RankedTensorType type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

    }
    
    static bool IsConst(Operation* op) {
      return isa<mlir::func::ConstantOp, mlir::arith::ConstantOp, mlir::TF::ConstOp,
                 tfl::ConstOp, tfl::QConstOp, tfl::SparseConstOp,
                 tfl::SparseQConstOp, mlir::TFL::NoValueOp,
                 mlir::stablehlo::ConstantOp, mlir::vhlo::ConstantOpV1>(op);
    }
    
    static bool IsTFResourceOp(Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
Back to top