Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for NoValueOp (0.12 sec)

  1. tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.cc

            auto c = b.create<arith::ConstantOp>(q.getLoc(), q.getValue());
            q.getOutput().replaceAllUsesWith(c);
            q.erase();
          } else if (TFL::NoValueOp::isBuildableWith(value, type)) {
            auto c = b.create<TFL::NoValueOp>(q.getLoc(), type, mlir::UnitAttr());
            q.getOutput().replaceAllUsesWith(c);
            q.erase();
          }
        }
      });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 02:50:01 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

      // legalized to tfl.fully_connected
      Value legalized_rhs =
          !op.getAdjY() ? create_z_x_transpose_op(input_rhs) : input_rhs;
    
      Type output_type = op.getResult().getType();
      auto no_input = rewriter.create<TFL::NoValueOp>(
          op->getLoc(), rewriter.getNoneType(), rewriter.getUnitAttr());
      auto fc_op = rewriter.create<TFL::FullyConnectedOp>(
          op->getLoc(), ArrayRef<Type>{output_type},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/utils.td

    include "mlir/IR/OpBase.td"
    include "mlir/Dialect/Func/IR/FuncOps.td"
    include "mlir/IR/PatternBase.td"
    
    def CreateNoneValue : NativeCodeCall<
      "$_builder.create<TFL::NoValueOp>($0.getLoc(), $_builder.getUnitAttr())">;
    
    // Returns shape of a ranked tensor.
    // if called without a ranked tensor it will fail.
    def GetShape: NativeCodeCall<"GetShape($0)">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.cc

        Value output_rhs =
            !bmm_op.getAdjY() ? create_z_x_transpose_op(input_rhs) : input_rhs;
    
        Type output_type = bmm_op.getResult().getType();
        auto no_input = rewriter.create<TFL::NoValueOp>(
            bmm_op->getLoc(), rewriter.getNoneType(), rewriter.getUnitAttr());
        auto fc_op = rewriter.create<TFL::FullyConnectedOp>(
            bmm_op->getLoc(), ArrayRef<Type>{output_type},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      return {};
    }
    
    //===----------------------------------------------------------------------===//
    // NoValueOp
    //===----------------------------------------------------------------------===//
    
    OpFoldResult NoValueOp::fold(FoldAdaptor) { return getValueAttr(); }
    
    bool NoValueOp::isBuildableWith(Attribute value, Type type) {
      return value.isa<UnitAttr>() && type.isa<NoneType>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

        // If the number of current inputs is less than the op definition, fill in
        // with `none` value,
        llvm::SmallVector<Value, 4> none_operands(
            input_max_num - op_input_num,
            builder.create<mlir::TFL::NoValueOp>(loc, builder.getNoneType(),
                                                 builder.getUnitAttr()));
        op_state.addOperands(ArrayRef<Value>(none_operands));
      }
    
      if (op_name == "tfl.lstm") {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

      auto attr = DenseElementsAttr::get(type, values);
      return builder->create<arith::ConstantOp>(location, type, attr);
    }
    
    Value CreateNoneValue(OpBuilder* builder, mlir::Location location) {
      return builder->create<TFL::NoValueOp>(location, builder->getNoneType(),
                                             builder->getUnitAttr());
    }
    
    Value Transpose(OpBuilder* builder, Value value_to_transpose,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  8. 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) {
      for (const auto& operand : op->getOperands()) {
    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