Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 244 for StringRef (0.26 sec)

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

      const auto str_attr = cast<DenseStringElementsAttr>(const_value);
    
      // Sum the sizes of each string.
      return absl::c_accumulate(
          str_attr.getRawStringData(), 0,
          [](int64_t acc, const StringRef str_value) -> int64_t {
            return acc + str_value.size();
          });
    }
    
    // Arbitrarily calculate the size of const of type whose size is unkown or
    // varying. Each element of such a type is considered to have
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 14 04:37:13 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/quantization_passes.h

    #include "mlir/Pass/Pass.h"  // from @llvm-project
    #include "mlir/Pass/PassManager.h"  // from @llvm-project
    
    namespace mlir {
    namespace quant {
    
    using OperationToName = std::function<llvm::StringRef(Operation* op)>;
    
    // Creates an instance pass to import quantization stats to the operations in
    // the function. A custom method to get the name from the op is used because
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 07 18:43:51 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/session_utils.h

    // will be returned.
    // Note, caller is responsible for Unref the variable.
    tensorflow::Var* GetVariableFromSession(mlir::TF::VarHandleOp var_handle_op,
                                            llvm::StringRef device_name,
                                            const tensorflow::DeviceMgr* mgr);
    
    // Returns resource tensors from session for all variables in 'module'.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 04:50:13 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/serialize_mlir_module_utils.cc

      mlir::OpPrintingFlags print_flags;
      print_flags.enableDebugInfo();
      module_op.print(os, print_flags);
      return std::move(os.str());
    }
    
    Status DeserializeMlirModule(llvm::StringRef serialized_mlir_module,
                                 mlir::MLIRContext* mlir_context,
                                 mlir::OwningOpRef<mlir::ModuleOp>* mlir_module) {
      TF_RET_CHECK(!serialized_mlir_module.empty())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/mlir_graph_optimization_pass.h

    // instantiated by the process_function_library_runtime (see
    // FunctionOptimizationPass for details).
    class MlirOptimizationPass {
     public:
      virtual ~MlirOptimizationPass() = default;
      virtual llvm::StringRef name() const = 0;
    
      // Returns an enum value:
      //   Enabled if the pass is enabled for the given graph with specified config.
      //   Disabled if the pass is disabled.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 03 22:53:34 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/python/mlir_wrapper/ops.cc

          .def("getNumResults", &mlir::Operation::getNumResults);
    
      py::class_<mlir::OperationState>(m, "OperationState")
          .def(py::init([](mlir::Location loc, std::string name) {
            return mlir::OperationState(loc, llvm::StringRef(name));
          }))
          .def("addTypes",
               [](mlir::OperationState& state, std::vector<mlir::Type> tys) {
                 state.addTypes(mlir::ArrayRef<mlir::Type>(tys));
               })
          .def("addOperands",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 30 02:12:49 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.cc

    #define GET_OP_LIST
    #include "tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.cpp.inc"
          >();
    }
    
    /// Parse a type registered to this dialect.
    Type FallbackDialect::parseType(DialectAsmParser &parser) const {
      StringRef keyword;
      if (parser.parseKeyword(&keyword)) return Type();
    
      if (keyword == "tf_tensor") return TFTensorType::get(getContext());
      if (keyword == "tf_allocator") return TFAllocatorType::get(getContext());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/fuse_convolution_pass.cc

        return success();
      }
    };
    
    class FuseMhloConvolutionPass
        : public PassWrapper<FuseMhloConvolutionPass, OperationPass<func::FuncOp>> {
     public:
      StringRef getArgument() const final { return "fuse-mhlo-convolution-pass"; }
      StringRef getDescription() const final {
        return "Fuses MHLO binary element-wise ops and convolution op";
      }
    
      void runOnOperation() override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 22:21:19 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_dialect.h

    #include "mlir/IR/OpImplementation.h"  // from @llvm-project
    
    namespace mlrt {
    namespace compiler {
    
    class MlrtDialect : public mlir::Dialect {
     public:
      explicit MlrtDialect(mlir::MLIRContext *context);
      static llvm::StringRef getDialectNamespace() { return "mlrt"; }
    
      mlir::Type parseType(mlir::DialectAsmParser &parser) const override;
      void printType(mlir::Type type, mlir::DialectAsmPrinter &os) const override;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 07:17:01 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_device.h

    // pass later to transform them into Compile/Run op pairs, like XlaCompile and
    // XlaRun.
    class TensorFlowDeviceDialect : public Dialect {
     public:
      static StringRef getDialectNamespace() { return "tf_device"; }
      // Constructing TensorFlowDevice dialect under an non-null MLIRContext.
      explicit TensorFlowDeviceDialect(MLIRContext* context);
    };
    
    }  // namespace tf_device
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 22 14:25:57 UTC 2022
    - 2.2K bytes
    - Viewed (0)
Back to top