Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 101 for StringRef (0.18 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc

        test_mode_ = other.test_mode_;
        op_set_ = other.op_set_;
        initializeForTest();
      }
    
      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";
      }
    
      StringRef getDescription() const final {
        // This is a brief description of the pass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc

    limitations under the License.
    ==============================================================================*/
    
    #include <memory>
    #include <optional>
    #include <string>
    #include <utility>
    
    #include "llvm/ADT/StringRef.h"
    #include "llvm/Support/Debug.h"
    #include "llvm/Support/FormatVariadic.h"
    #include "mlir/Dialect/Arith/IR/Arith.h"  // from @llvm-project
    #include "mlir/Dialect/Func/Extensions/AllExtensions.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

    namespace mlir {
    namespace TFL {
    namespace {
    #define GEN_PASS_DEF_LIFTTFLITEFLEXOPSPASS
    #include "tensorflow/compiler/mlir/lite/transforms/passes.h.inc"
    
    using ::tensorflow::StatusOr;
    
    constexpr StringRef kFlexOpNamePrefix = "Flex";
    
    // Pattern that converts TFL::CustomOp that encodes a Flex op into a TF dialect
    // operation.
    class LiftFlexCustomOp : public OpRewritePattern<TFL::CustomOp> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

    // `tf.backend_config` is a DictionaryAttr, JAX2TF sets the value of its
    // i64 attribute `called_index` to the TF function's name.
    constexpr llvm::StringRef kTfBackendConfigAttrName = "tf.backend_config";
    constexpr llvm::StringRef kCalledIndexAttrName = "called_index";
    constexpr llvm::StringRef kCalledFuncAttrName = "called_func";
    
    // Deserialize the StableHLO module embedded in XlaCallModuleOp's module
    // attribute.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

        absl::flat_hash_set<Node*>* control_ret_nodes) {
      mlir::Block& block = function.front();
    
      // Extract input & output names if set.
      llvm::SmallVector<llvm::StringRef, 2> input_names;
      llvm::SmallVector<llvm::StringRef, 2> output_names;
      llvm::SmallVector<llvm::StringRef, 2> unique_output_names;
      auto dict_attr =
          function->getAttrOfType<mlir::DictionaryAttr>(kEntryFuncAttr);
      if (dict_attr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

        absl::flat_hash_set<Node*>* control_ret_nodes) {
      mlir::Block& block = function.front();
    
      // Extract input & output names if set.
      llvm::SmallVector<llvm::StringRef, 2> input_names;
      llvm::SmallVector<llvm::StringRef, 2> output_names;
      llvm::SmallVector<llvm::StringRef, 2> unique_output_names;
      auto dict_attr =
          function->getAttrOfType<mlir::DictionaryAttr>(kEntryFuncAttr);
      if (dict_attr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h

    std::optional<int64_t> GetDotGeneralQuantizationDim(
        ::mlir::stablehlo::DotGeneralOp dot_general_op);
    
    // Checks if a `StringRef` contains 'conv' or 'dot_general'.
    bool ContainsConvOrDot(StringRef str);
    
    }  // namespace mlir::quant
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

    // handled differently as individual names are used per data send and receive.
    void SetFrontendAttributes(Operation* op, int32_t index, StringRef key,
                               Type type, bool device_to_host,
                               StringRef host_handler_name) {
      MLIRContext* context = op->getContext();
    
      std::string formatted_key =
          device_to_host ? llvm::formatv("{0}_dtoh_{1}", key, index).str()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc

    #include "tensorflow/core/platform/protobuf.h"
    #include "tensorflow/core/util/tensor_bundle/byte_swap_tensor.h"
    
    namespace tensorflow {
    
    static absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> GraphdefToMlirImport(
        llvm::StringRef input, const std::vector<std::string>& input_arrays,
        const std::vector<std::string>& input_dtypes,
        const std::vector<std::optional<std::vector<int>>>& input_shapes,
        const std::vector<std::string>& output_arrays,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 11:51:44 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

      auto string_values = string_attr.getRawStringData();
      ASSERT_EQ(string_values.size(), 4);
      EXPECT_EQ(string_values[0], mlir::StringRef("one"));
      EXPECT_EQ(string_values[1], mlir::StringRef("two"));
      EXPECT_EQ(string_values[2], mlir::StringRef("three"));
      EXPECT_EQ(string_values[3], mlir::StringRef("four"));
    }
    
    class ConvertTensorTest : public ::testing::Test {
     protected:
      template <typename T>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top