Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 93 for created (0.15 sec)

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

        b.setInsertionPoint(op);
        if (auto dq = llvm::dyn_cast<DequantizeOp>(op)) {
          auto dcast = b.create<quantfork::DequantizeCastOp>(
              dq.getLoc(), dq.getOutput().getType(), dq.getInput());
          dq.getOutput().replaceAllUsesWith(dcast);
          dq.erase();
        } else if (auto q = llvm::dyn_cast<QuantizeOp>(op)) {
          auto qcast = b.create<quantfork::QuantizeCastOp>(
              q.getLoc(), q.getOutput().getType(), q.getInput());
    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/tfrt/tests/saved_model/saved_model_test.cc

      auto runtime =
          tensorflow::tfrt_stub::Runtime::Create(/*num_inter_op_threads=*/1);
      tfrt_stub::GraphExecutionOptions options(runtime.get());
    
      options.compile_options.device_target = TfrtDeviceInfraTarget::kGpu;
    
      TF_ASSERT_OK_AND_ASSIGN(
          std::unique_ptr<tfrt_stub::FallbackState> fallback_state,
          tfrt_stub::FallbackState::Create(SessionOptions(), FunctionDefLibrary()));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 13 01:17:29 UTC 2023
    - 9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/add_functions_for_exported_names.cc

        f.setName(StringAttr::get(f->getContext(), f.getName() + "_internal"));
    
        for (StringRef name : llvm::reverse(exported_names)) {
          // Create a "trampoline" function with the given name. So given
          //   func bar(...) {exported_names = ["foo"]}
          // we create
          //   func foo(...) {
          //     return bar(...)
          //   }
          func::FuncOp other = f.cloneWithoutRegions();
          other.setName(name);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tpu_colocate_composite_resource_ops.cc

                        llvm::StringRef device) {
      builder->setInsertionPoint(op);
      auto launch = builder->create<tf_device::LaunchOp>(
          loc, builder->getStringAttr(device), op->getResultTypes());
      launch.getBody().push_back(new Block);
      op->replaceAllUsesWith(launch);
    
      builder->setInsertionPointToEnd(&launch.GetBody());
      builder->create<tf_device::ReturnOp>(loc, op->getResults());
    
      // Move op inside cluster.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 17:41:12 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/localize_var_handles.cc

        // the resource, and we use it to just look up.
        // See core/kernels/data/iterator_ops.cc.)
        resource_op = builder.create<TF::IteratorOp>(
            op->getLoc(), resource.getType(), shared_name, container,
            it.getOutputTypes(), it.getOutputShapes());
      } else {
        resource_op = builder.create<TF::VarHandleOp>(
            op->getLoc(), resource.getType(), container, shared_name);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_xla_call_module_op_to_bfloat16.cc

        builder.setInsertionPoint(op);
        for (auto& op_operand : op->getOpOperands()) {
          if (IsLargeFloatType(op_operand.get().getType())) {
            op_operand.set(builder.create<TF::CastOp>(
                op->getLoc(), ToBfloat16Type(op_operand.get().getType()),
                op_operand.get()));
          }
        }
        builder.setInsertionPointAfter(op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 08:32:43 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_composite_to_tfl_custom.cc

      builder.setInsertionPoint(composite);
      if (IsKVCacheCompositeOp(composite)) {
        return builder.create<TFL::CustomOp>(
            composite->getLoc(), composite->getResultTypes(),
            composite->getOperands().slice(2, 3), composite.getName(),
            CustomOption(&builder, custom_option_buffer));
      }
      return builder.create<TFL::CustomOp>(
          composite->getLoc(), composite->getResultTypes(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/custom_call.cc

    namespace mlir {
    namespace odml {
    
    LogicalResult ConvertCustomCallOp::matchAndRewrite(
        mhlo::CustomCallOp mhlo_custom_call, OpAdaptor adaptor,
        ConversionPatternRewriter& rewriter) const {
      auto tfl_custom = rewriter.create<TFL::CustomOp>(
          mhlo_custom_call.getLoc(), mhlo_custom_call.getResultTypes(),
          mhlo_custom_call.getInputs());
      tfl_custom.setCustomCodeAttr(
          rewriter.getStringAttr(mhlo_custom_call.getCallTargetName()));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils_test.cc

        const llvm::SmallVector<int64_t>& expected_packed_shape,
        const llvm::SmallVector<int8_t>& expected_packed_values) {
      MLIRContext context;
      OwningOpRef<ModuleOp> module(ModuleOp::create(UnknownLoc::get(&context)));
      OpBuilder builder(&module->getBodyRegion());
      context.loadDialect<TF::TensorFlowDialect>();
    
      Value value = CreateConstValue<int8_t>(builder, module->getLoc(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfrt/tests/analysis/update_op_cost_in_tfrt_mlir_test.cc

      mlir::MLIRContext context(registry);
      auto module =
          mlir::parseSourceFile<mlir::ModuleOp>(saved_model_mlir_path, &context);
      ASSERT_TRUE(module);
    
      // Create a cost recorder with fake cost records.
      auto expected_op_cost_map = GetOpCostMap(module.get());
      EXPECT_EQ(expected_op_cost_map.size(), 1);
      unsigned int seed = 23579;
      for (auto& [op_key, cost] : expected_op_cost_map) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 21 22:52:12 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top