Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 244 for StringRef (0.14 sec)

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

        registry.insert<quant::QuantizationDialect,
                        quantfork::QuantizationForkDialect>();
      }
    
      StringRef getArgument() const final {
        // This is the argument used to refer to the pass in
        // the textual format (on the commandline for example).
        return "tf-to-quant";
      }
      StringRef getDescription() const final {
        // This is a brief description of the pass.
        return "Legalize TF to quant ops dialect";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/validators.cc

    //   * has an attribute with the given `name`,
    //   * and the attribute is an integer list of the form [1, X, Y, 1],
    // and writes X, Y as 32-bit integer attribute to `x`, `y`.
    bool TFIntListIs1XY1(Operation *op, StringRef name, IntegerAttr *x,
                         IntegerAttr *y) {
      auto attr = op->getAttrOfType<ArrayAttr>(name);
      if (!attr) return false;
    
      auto elements = attr.getValue();
      if (elements.size() != 4 ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/eval_util.h

    #ifndef TENSORFLOW_COMPILER_MLIR_TENSORFLOW_UTILS_EVAL_UTIL_H_
    #define TENSORFLOW_COMPILER_MLIR_TENSORFLOW_UTILS_EVAL_UTIL_H_
    
    #include "llvm/ADT/ArrayRef.h"
    #include "llvm/ADT/SmallVector.h"
    #include "llvm/ADT/StringRef.h"
    #include "mlir/IR/Operation.h"  // from @llvm-project
    #include "tensorflow/c/eager/c_api.h"
    
    namespace tensorflow {
    
    // Attempts to evaluates an MLIR Operation in TensorFlow eager mode with the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Dec 19 06:31:40 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/bridge.h

    #ifndef TENSORFLOW_COMPILER_MLIR_TENSORFLOW_TRANSFORMS_BRIDGE_H_
    #define TENSORFLOW_COMPILER_MLIR_TENSORFLOW_TRANSFORMS_BRIDGE_H_
    
    #include <string>
    
    #include "absl/base/attributes.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 "tensorflow/core/lib/core/status.h"
    
    namespace mlir {
    namespace TF {
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 24 22:46:43 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.h

    namespace tfrt {
    namespace fallback {
    
    // Dialect for fallback operations.
    class FallbackDialect : public Dialect {
     public:
      explicit FallbackDialect(MLIRContext *context);
      static StringRef getDialectNamespace() { return "tfrt_fallback"; }
    
      Type parseType(DialectAsmParser &parser) const override;
      void printType(Type type, DialectAsmPrinter &os) const override;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 07:17:01 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/tests/ir/tfrt_fallback_util_test.cc

      ASSERT_TRUE(module);
    
      std::vector<std::pair<std::string, int>> func_and_index;
      ForEachArgConsumedByFallback(
          module.get(),
          [&func_and_index](llvm::StringRef func_name, int arg_index) {
            func_and_index.push_back({func_name.str(), arg_index});
          });
    
      ASSERT_EQ(func_and_index.size(), 1);
      EXPECT_EQ(func_and_index[0].first, "test");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/legalize_tf_quant_test.cc

    ==============================================================================*/
    
    #include <memory>
    #include <vector>
    
    #include <gtest/gtest.h>
    #include "llvm/ADT/ArrayRef.h"
    #include "llvm/ADT/StringRef.h"
    #include "mlir/Pass/Pass.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf.h"
    #include "xla/client/client_library.h"
    #include "xla/shape.h"
    #include "xla/stream_executor/platform.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 18:43:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_remaining_ops.cc

    #include "llvm/ADT/APInt.h"
    #include "llvm/ADT/ArrayRef.h"
    #include "llvm/ADT/STLExtras.h"
    #include "llvm/ADT/Sequence.h"
    #include "llvm/ADT/SmallVector.h"
    #include "llvm/ADT/StringExtras.h"
    #include "llvm/ADT/StringRef.h"
    #include "llvm/ADT/StringSwitch.h"
    #include "llvm/ADT/iterator_range.h"
    #include "llvm/Support/Casting.h"
    #include "llvm/Support/FormatVariadic.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 20:05:58 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/bridge.cc

    limitations under the License.
    ==============================================================================*/
    
    #include "tensorflow/compiler/mlir/tensorflow/transforms/bridge.h"
    
    #include "absl/log/log.h"
    #include "llvm/ADT/StringRef.h"
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/Pass/PassManager.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 09 17:16:05 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/integration/graph_decompose_pass.h

    // each time the pass runs. A special environment variable is set to locate the
    // decomposition library.
    class GraphDecomposePass : public MlirOptimizationPass {
     public:
      llvm::StringRef name() const override { return "tfr"; }
    
      // Whether to run this pass. If this is enabled, the GraphDef will be imported
      // to MLIR even no tf composition file is found.
      ::tensorflow::MlirOptimizationPassState GetPassState(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top