Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 99 for StringRef (0.19 sec)

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

    #include "tensorflow/compiler/mlir/tensorflow/utils/device_util.h"
    
    #include <string>
    
    #include "absl/strings/string_view.h"
    #include "llvm/ADT/STLExtras.h"
    #include "llvm/ADT/SmallVector.h"
    #include "llvm/ADT/StringRef.h"
    #include "llvm/Support/Error.h"
    #include "llvm/Support/FormatVariadic.h"
    #include "llvm/Support/Regex.h"
    #include "mlir/IR/Attributes.h"  // from @llvm-project
    #include "mlir/IR/Builders.h"  // from @llvm-project
    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/lite/quantization/lite/quantize_weights.cc

    namespace mlir {
    namespace lite {
    
    namespace {
    
    using llvm::StringRef;
    
    // Convert op represented in TFLite builtin_code to its corresponding MLIR
    // OperationName.
    void TfLiteBuiltinOpToMlir(const BuiltinOperatorSet& tflite_builtin_codes,
                               absl::flat_hash_set<std::string>& mlir_op_names) {
      for (const auto& entry : tflite_builtin_codes) {
        StringRef tflite_op_name = EnumNameBuiltinOperator(entry);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/lite/tfl_quantizer.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    #include <iostream>
    
    #include "llvm/ADT/StringRef.h"
    #include "llvm/Support/CommandLine.h"
    #include "llvm/Support/InitLLVM.h"
    #include "llvm/Support/MemoryBuffer.h"
    #include "llvm/Support/PrettyStackTrace.h"
    #include "llvm/Support/raw_ostream.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/passes.h

        StringRef serialized_stablehlo_module);
    
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateLiftQuantizableSpotsAsFunctionsPass(
        const ::stablehlo::quantization::QuantizationSpecs& quantization_specs);
    
    // Creates a pass that inserts CalibrationStatisticsSaverOp.
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateInsertCalibrationStatisticsSaverPass(
        StringRef calibration_data_dir,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions_drq.cc

        min_num_elements_for_weights_ = other.min_num_elements_for_weights_;
      }
    
      StringRef getArgument() const final {
        // This is the argument used to refer to the pass in
        // the textual format (on the commandline for example).
        return "quant-lift-quantizable-spots-as-functions-drq";
      }
    
      StringRef getDescription() const final {
        // This is a brief description of the pass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.cc

    #include <vector>
    
    #include "absl/strings/string_view.h"
    #include "llvm/ADT/StringRef.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/Support/LLVM.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.h"
    
    namespace mlir {
    
    std::vector<llvm::StringRef> GetEntryFunctionAttributeNames() {
      return {"tf.entry_function",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_custom_aggregation_op_to_quant_stats.cc

      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(
          ConvertCustomAggregationOpToQuantStatsPass)
    
      StringRef getArgument() const final {
        // This is the argument used to refer to the pass in the textual format (on
        // the commandline for example).
        return "quant-convert-tf-custom-aggregator-op-to-quant-stats";
      }
    
      StringRef getDescription() const final {
        // This is a brief description of the pass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/cluster_util_test.cc

    #include "tsl/lib/core/status_test_util.h"
    #include "tsl/platform/statusor.h"
    
    namespace mlir::TF {
    
    namespace {
    
    constexpr StringRef kTestClusterName = "tpu0";
    
    absl::StatusOr<OwningOpRef<ModuleOp>> GetMlirModuleFromString(
        StringRef string, MLIRContext* context) {
      DialectRegistry mlir_registry;
      RegisterAllTensorFlowDialects(mlir_registry);
      context->appendDialectRegistry(mlir_registry);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/hoist_loop_invariant.cc

    ResourceHandle GetResourceHandle(Operation *op) {
      llvm::StringRef device;
      if (auto attr = op->getAttrOfType<StringAttr>("device")) {
        device = attr.getValue();
      }
    
      llvm::StringRef container;
      if (auto attr = op->getAttrOfType<StringAttr>("container")) {
        container = attr.getValue();
      }
    
      llvm::StringRef shared_name;
      if (auto attr = op->getAttrOfType<StringAttr>("shared_name")) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/transforms/tac_filter.cc

      }
      explicit TacFilterPass(TacFilters* tac_filters) {
        tac_filters_ = tac_filters;
      }
    
     private:
      TacFilters* tac_filters_ = nullptr;
    
      llvm::StringRef getArgument() const final { return "tfl-tac-filter"; }
      llvm::StringRef getDescription() const final {
        return "This pass marks the ops to skip target annotation by inserting "
               "`tac.skip_target_annotation` attribute to them based on user "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top