Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for do (0.02 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

      mlir::Builder builder(ctx);
    
      // Collect devices with attached metadata.
      llvm::SmallVector<mlir::NamedAttribute, 8> devices;
      devices.reserve(device_set->devices().size());
    
      // For device that do not have any metadata, or if we failed to parse metadata
      // from the DeviceSet, we add a unit attribute to the `tf.devices` attribute.
      for (Device* device : device_set->devices()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.cc

        }
    
        auto layout = mlir::GetTPUInfeedLayout(
            mlir::TupleType::get(builder.getContext(), result_types), builder);
        if (failed(layout)) return mlir::WalkResult::interrupt();
        // Do not append a UnitAttr for the "token" operand here to avoid
        // compilation failure when exporting the "layouts" attribute to a graph
        // node. Instead, add the UnitAttr during LegalizeTF pass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.cc

      if (absl::Status status = AddCalibrationStatistics(
              module_op, calibration_data_dir, config.calibration_options(),
              *py_function_lib_);
          !status.ok()) {
        LOG(WARNING) << "Some CustomAggregator ops do not have min or max "
                        "values. Parts of the graph are not quantized. "
                     << status;
      }
    
      return module_op;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate_registration.cc

    ==============================================================================*/
    
    // This file wraps TensorFlow Graph(Def) to MLIR module conversion into passes
    // to satisfy the API of MLIR pass registration. In order to do this, the
    // command-line option header is pulled in.
    
    #include <memory>
    #include <utility>
    
    #include "absl/container/flat_hash_set.h"
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/merge_fusion_with_dequantize.cc

        rewriter.eraseOp(call_op);
        func_op.eraseResult(0);
        func_op.insertResult(0, new_call_op.getResult(0).getType(),
                             /*resultAttrs=*/nullptr);
    
        // Modify the quantized fused function to do dequantize+relu(6).
        rewriter.setInsertionPoint(req_op);
        Value new_result = rewriter.create<mlir::stablehlo::UniformDequantizeOp>(
            req_op.getLoc(), func_op.getResultTypes()[0], req_op.getOperand());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor.cc

      // First, we need to convert from functional, to executor dialect.
      pm.addNestedPass<FuncOp>(
          mlir::CreateFunctionalToExecutorDialectConversionPass());
    
      // Do a single pass to split the graph's single island op into an island per
      // op as expected by the following passes.
      pm.addNestedPass<FuncOp>(mlir::TF::CreateSplitIntoIslandPerOpPass());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.cc

      }
      return it->second.potentially_written;
    }
    
    // Analyze the specified region for resource mutating operations, namely
    // TF::AssignVariableOp, if so, set the resource associated as "potentially
    // written". Do this recursively across the chain of regions via call or
    // control flow ops.
    // TODO(ashwinm): Move to iterative traversal.
    LogicalResult ResourceAnalyzer::AnalyzeRegion(Region& region) {
      // Avoid infinite recursion.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/python/pywrap_quantization_lib.cc

    using ::tensorflow::SignatureDef;
    using ::tensorflow::quantization::PyFunctionLibrary;
    
    // Note for maintainers: the definitions should ONLY mirror existing functions
    // defined in different targets. Do not include any extra business logic that
    // causes divergence from the semantics of mirrored functions.
    
    absl::Status PywrapQuantizeStaticRangePtq(
        absl::string_view src_saved_model_path,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 02:51:53 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc

            TF::TensorFlowDialect::getDialectNamespace())
          return failure();
    
        // Refining types may have implications to the attached regions or symbol
        // references so do not update such ops.
        if (!op->getRegions().empty() || HasSymbolRefAttr(op)) return failure();
    
        IRMapping mapper;
        bool has_type_change = false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_op_quant_spec.cc

    // TODO - b/296503614: [Converter Component][TF-Quantizer] Reflect custom traits
    // from TF-Quantizer to stableHLO quantization
    bool IsOpWithDataMovementTrait(Operation* op) {
      // Supported data movement ops. These ops do not perform any computations and
      // has one result operand.
      return isa<TF::IdentityOp, TF::CastOp, TF::ReshapeOp, TF::XlaShardingOp,
                 TF::GatherOp, TF::GatherV2Op, TF::XlaGatherOp, TF::ExpandDimsOp,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top