Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for getUnknownLoc (0.18 sec)

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

          builder_.getUnknownLoc(), /*value=*/10, builder_.getI32Type());
    
      ConversionTarget target =
          GetDefaultLegalConversionTargets(context_, /*legalize_chlo=*/false);
      EXPECT_TRUE(target.isLegal(const_int));
    }
    
    TEST_F(XlaLegalizeTargetsTest, AllowsCHLODialect) {
      auto const_int = builder_.create<chlo::ConstantOp>(
          builder_.getUnknownLoc(), builder_.getI32TensorAttr({42}));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 05:56:39 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/utils/stablehlo_type_utils_test.cc

          builder_.create<mlir::stablehlo::ConstantOp>(
              builder_.getUnknownLoc(), builder_.getI32IntegerAttr(0));
      EXPECT_TRUE(IsStablehloOp(*constant_op));
    }
    
    TEST_F(StablehloTypeUtilsTest, IsStablehloOpFailsWithArithOp) {
      const OwningOpRef<mlir::arith::ConstantOp> constant_op =
          builder_.create<mlir::arith::ConstantOp>(builder_.getUnknownLoc(),
                                                   builder_.getI32IntegerAttr(0));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 00:32:20 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/debug/debug_test.cc

        context_.loadAllAvailableDialects();
    
        mlir::OpBuilder builder(&context_);
        module_ = builder.create<mlir::ModuleOp>(builder.getUnknownLoc());
    
        builder.setInsertionPointToStart(module_->getBody());
        auto func = builder.create<mlir::func::FuncOp>(  //
            builder.getUnknownLoc(), "main", builder.getFunctionType({}, {}));
        func->setAttr("tfl.func", builder.getUnitAttr());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 11:15:16 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/python/mlir_wrapper/builders.cc

          .def(py::init<mlir::MLIRContext*>())
          .def(py::init<mlir::Region&>())
          .def(py::init<mlir::Operation*>())
          .def(py::init<mlir::Block*, mlir::Block::iterator>())
          .def("getUnknownLoc", &mlir::OpBuilder::getUnknownLoc)
          .def("setInsertionPoint",
               py::overload_cast<mlir::Block*, mlir::Block::iterator>(
                   &mlir::OpBuilder::setInsertionPoint))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 08:44:55 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/cluster_formation.cc

                                                 live_outs);
    
      llvm::SmallVector<Type, 4> live_out_types;
      live_out_types.reserve(live_outs.size());
      for (Value v : live_outs) {
        live_out_types.emplace_back(v.getType());
      }
    
      tf_device::LaunchOp launch_op = builder->create<tf_device::LaunchOp>(
          builder->getUnknownLoc(), builder->getStringAttr(c.target),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 05 13:30:21 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

            builder.getUnknownLoc(), storage_type_width, effective_mins[0],
            effective_maxs[0], narrow_range, converter.expressed_type, is_signed);
        if (legacy_float_scale) {
          quantized_element_type =
              DownCastScale(quantized_element_type, effective_mins[0],
                            effective_maxs[0], builder.getUnknownLoc());
        }
      } else if (min.size() == max.size()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_traits.h

          return UniformQuantizedType::getChecked(
              Sign, storage_type, result_type.getElementType(), scale, ZeroPoint,
              StorageTypeMin, StorageTypeMax, builder.getUnknownLoc());
        }
      };
    };
    
    // This class provides the API for ops that has input as bias. This is used
    // as a trait like this:
    //
    //   class Conv2DOp
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/python/mlir_wrapper/mlir_wrapper.pyi

        @overload
        def __init__(self, arg0: Block, arg1: Block_Iterator) -> None: ...
        def create(self, *args, **kwargs) -> Any: ...
        def getContext(self) -> MLIRContext: ...
        def getUnknownLoc(self) -> Location: ...
        def restoreInsertionPoint(self, arg0) -> None: ...
        def saveInsertionPoint(self, *args, **kwargs) -> Any: ...
        def setInsertionPoint(self, arg0: Block, arg1: Block_Iterator) -> None: ...
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 09 17:10:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump_test.cc

      mlir::PassManager pm = {&ctx};
      pm.addPass(CreateParentPass());
    
      EnableIrPrinting(pm, "dump");
    
      mlir::OpBuilder builder(&ctx);
      auto module_op = builder.create<mlir::ModuleOp>(builder.getUnknownLoc());
      // Destroy by calling destroy() to avoid memory leak since it is allocated
      // with malloc().
      const absl::Cleanup module_op_cleanup = [module_op] { module_op->destroy(); };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:17:14 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

            RankedTensorType type = RankedTensorType::get(
                {}, TF::StringType::get(builder.getContext()));
            auto const_op = builder.create<TF::ConstOp>(
                builder.getUnknownLoc(),
                DenseStringElementsAttr::get(type, {filename}));
    
            it = const_ops.insert({asset.getSymName(), const_op}).first;
          }
    
          argument.replaceAllUsesWith(it->second.getOutput());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top