Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for CallSiteLoc (0.18 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/cc/quantization_unit_loc.cc

              FindQuantizationUnitFromLoc(child_loc);
          if (found_unit.has_value()) return found_unit;
        }
      } else if (isa<CallSiteLoc>(loc)) {
        // If the graph is inlined, CallSiteLoc can be created.
        return FindQuantizationUnitFromLoc(
            mlir::cast<CallSiteLoc>(loc).getCallee());
      }
    
      return std::nullopt;
    }
    
    }  // namespace quant
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/metrics/types_util.cc

                ExtractFileLine(typed_child_loc, new_call->mutable_source());
              }
            })
            .Case<CallSiteLoc>([&](CallSiteLoc loc) {
              mutable_location->set_type(ConverterErrorData::CALLSITELOC);
              LocationExtractor(loc.getCallee()).Extract(error_data);
              LocationExtractor(loc.getCaller()).Extract(error_data);
            })
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/error_util_test.cc

      // location associated with an error; therefore we need a combinatination of
      // locations to test.
      auto callsite_loc = mlir::CallSiteLoc::get(loc, loc_filtered);
      auto callsite_loc2 = mlir::CallSiteLoc::get(loc2, loc_filtered2);
      auto callsite_loc3 = mlir::CallSiteLoc::get(loc_filtered2, loc3);
    
      // Test with filter on.
      StatusScopedDiagnosticHandler ssdh_filter(&context, false, true);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc

      if (!op_type_with_suffix.ends_with(":")) return false;
    
      return absl::c_all_of(locations, [](Location loc) {
        return isa<NameLoc>(loc) ||
               (isa<CallSiteLoc>(loc) &&
                isa<NameLoc>(mlir::cast<CallSiteLoc>(loc).getCallee()));
      });
    }
    
    // Finds the pattern of the location created by `ImporterBase::GetLocation`
    // in `tensorflow/compiler/mlir/tensorflow/translate/import_model.cc`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/cc/quantization_unit_loc.h

    namespace mlir {
    namespace quant {
    
    // QuantizationUnitLoc uses CallSiteLoc as the base class so it can be printed
    // with AsmPrinter and used to set the node name in MLIR to GraphDef exporter.
    // The callee is named as `node_name@func_name` with child loc named as
    // `op_type` while the caller is the quantization unit.
    class QuantizationUnitLoc : public CallSiteLoc {
     public:
      using QuantizationUnit =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 03 02:39:10 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/metrics/error_collector_inst_test.cc

      for (const auto& error : collected_errors) {
        EXPECT_TRUE(error.has_location());
        locations.push_back(error.location().DebugString());
      }
    
      EXPECT_THAT(locations, Each(testing::HasSubstr("CALLSITELOC")));
      EXPECT_THAT(locations, Each(testing::HasSubstr(input_file)));
      EXPECT_THAT(locations, Contains(testing::HasSubstr("line: 2")));
      EXPECT_THAT(locations, Contains(testing::HasSubstr("column: 9")));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

                           NodeDef::ExperimentalDebugInfo* debug_info) {
      mlir::Location unwrapped_inst_loc = GetLocationWithoutOpType(inst_loc);
    
      if (auto call_site = mlir::dyn_cast<mlir::CallSiteLoc>(unwrapped_inst_loc)) {
        if (auto name_loc = mlir::dyn_cast<mlir::NameLoc>(
                GetLocationWithoutOpType(call_site.getCallee()))) {
          llvm::StringRef original_node_name, original_func_name;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      // Gets the location information of the given node. It uses the
      // "original_node_name" in the NodeDef to get the corresponding file location
      // (FileLineColLoc) from the input DebugInfo and returns an CallSiteLoc. If
      // there are multiple "original_node_names", a FusedLoc is returned. If the
      // node name couldn't be found in the input DebugInfo, a NameLoc is used as
      // the location.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
Back to top