Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 70 for StringAttr (0.15 sec)

  1. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

          for (auto& attr : (*this)->getAttrs()) {
            all_attrs.insert(attr.getName().strref());
          }
          for (const auto& operand : llvm::enumerate(getArgumentTypes())) {
            if (auto attr_name = getArgAttrOfType<StringAttr>(
                operand.index(), kAttrArgumentNameAttr)) {
              all_attrs.insert(attr_name.getValue());
            }
          }
          return all_attrs;
        }
      }];
    
      let hasVerifier = 1;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

        // Terminators, qcast and decast are not quantizable.
        return false;
      }
    
      const bool attr_enforced_quantizable =
          op->hasAttrOfType<StringAttr>(kQuantTraitAttrName) &&
          op->getAttrOfType<StringAttr>(kQuantTraitAttrName).getValue().str() ==
              QuantTraitValues[QuantizationTrait::FullyQuantizable];
    
      const bool trait_enforced_quantizable =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/dilated_conv.h

      if (!op.getResult().hasOneUse()) {
        return rewriter.notifyMatchFailure(
            op, "result for current op has more than 1 use");
      }
      // Make sure Conv2D has 'VALID' padding.
      if (op->template getAttrOfType<StringAttr>("padding").getValue() != "VALID") {
        return rewriter.notifyMatchFailure(op,
                                           "Conv2D op doesn't have valid padding");
      }
      // Make sure dilations are all ones if set.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

      if (func_uses.has_value() && llvm::hasSingleElement(func_uses.value()))
        return func;
      func::FuncOp cloned = func.clone();
      cloned.setPrivate();
      cloned.setName(
          StringAttr::get(func.getContext(), func.getName().str() + "_lifted"));
      SymbolTable(module).insert(cloned);
      return cloned;
    }
    
    // Eliminates unused results for If/Case operations. Also patches up the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc

              mlir::cast<BlockArgument>(entry.getSecond()).getArgNumber();
        }
        if (lowered_callee != callee) {
          // Add the clone with a new name.
          lowered_callee.setName(StringAttr::get(
              callee->getContext(),
              llvm::formatv("{0}_stack_decomposed", callee.getName()).str()));
          SymbolTable(module).insert(lowered_callee);
          callee = lowered_callee;
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

    template <typename UniformQuantizedConvolutionOp>
    FailureOr<ElementsAttr> ConvertPaddingAttr(
        UniformQuantizedConvolutionOp op,
        const xla::ConvolutionDimensionNumbers &dnums, PatternRewriter &rewriter) {
      StringAttr conv_padding = op.getPaddingAttr();
      SmallVector<int64_t> padding_nums;
      ShapedType lhs_shape = mlir::cast<ShapedType>(op.getLhs().getType());
      ShapedType rhs_shape = mlir::cast<ShapedType>(op.getRhs().getType());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

    bool IsSupportedHostInputOp(Operation* op) {
      TF::IteratorGetNextOp iter = llvm::dyn_cast<TF::IteratorGetNextOp>(op);
      if (!iter) return false;
      auto device = op->getAttrOfType<StringAttr>(kDeviceAttr);
      if (!device) return false;
      tensorflow::DeviceNameUtils::ParsedName parsed_device;
      if (!tensorflow::DeviceNameUtils::ParseFullName(device.getValue().str(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

                                            tensor_cast.getResult());
      return success();
    }
    
    LogicalResult ConvertLSTMCellSimpleToFusedLSTM::InitializeFromFuncAttributes() {
      auto attr = fused_func_op_->getAttrOfType<StringAttr>(kTFImplements);
      if (!attr) {
        return fused_func_op_.emitError()
               << "Invalid function attribute, expected " << kTFImplements
               << " attribute "
                  "not found";
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/flatbuffer_operator.cc

    #include "tsl/platform/status.h"
    
    namespace {
    
    using ::absl::StatusOr;
    using ::tensorflow::Status;
    using ::tensorflow::errors::InvalidArgument;
    
    StatusOr<mlir::StringAttr> GetPaddingAttr(TfLitePadding pad_params,
                                              mlir::Builder builder,
                                              mlir::Location loc) {
      auto padding = tflite::Padding::Padding_VALID;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 38K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

      // indicating what `Method` has been applied to the quantized unit.
      call_op->setAttr(
          kQuantizationMethodAttr,
          xla_call_module_op->getAttrOfType<StringAttr>(kQuantizationMethodAttr));
    
      rewriter.replaceOp(xla_call_module_op, call_op);
    }
    
    // Replaces a quantized `xla_call_module_op` with a `func::CallOp`. The callee
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
Back to top