Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for function_ref (0.22 sec)

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

          [](mlir::OpPassManager& pm, llvm::StringRef options,
             llvm::function_ref<mlir::LogicalResult(const llvm::Twine&)>
                 errorHandler) {
            tensorflow::PopulateLowerToMlProgramAndHloPipeline(pm);
            return mlir::success();
          },
          [](llvm::function_ref<void(const mlir::detail::PassOptions&)>) {});
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 22:13:50 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/ir/tfr_types.h

      }
      static Derived getChecked(function_ref<InFlightDiagnostic()> emitError,
                                MLIRContext* context, ArrayRef<StringAttr> attrs) {
        return Base::getChecked(emitError, context, attrs);
      }
    
      static Derived get(MLIRContext* context) { return get({}, context); }
    
      // TODO(fengliuai): fix the implementation
      static LogicalResult verify(function_ref<InFlightDiagnostic()> emitError,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 07:17:01 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/saved_model/saved_model.h

    // corresponding signature metadata populated in TFRTSavedModelSignatureInfo for
    // the function.
    Status MapFunctionSignaturesFromTFSavedModelMLIR(
        mlir::ModuleOp module,
        llvm::function_ref<void(const TFRTSavedModelSignatureInfo&)> map_fn);
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jan 27 17:42:41 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/saved_model/saved_model.cc

      return std::make_pair(dtype, tensorflow::PartialTensorShape(dims));
    }
    
    }  // namespace
    
    Status MapFunctionSignaturesFromTFSavedModelMLIR(
        mlir::ModuleOp module,
        llvm::function_ref<void(const TFRTSavedModelSignatureInfo&)> map_fn) {
      // Create bound inputs for each functions.
      mlir::SymbolTable symbol_table(module);
      tensorflow::Status status = absl::OkStatus();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc

        };
    
        auto dequant_values =
            mlir::cast<DenseIntOrFPElementsAttr>(input_values)
                .mapValues(FloatType::getF32(rewriter.getContext()),
                           llvm::function_ref<DequantizeFuncType>(dequantize_func));
        rewriter.replaceOpWithNewOp<TFL::ConstOp>(dequant_op, dequant_op.getType(),
                                                  dequant_values);
    
        return success();
      }
    };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v2/cluster_tf.cc

    using mlir::func::FuncOp;
    
    // Run the TF XLA Bridge based on the input pipeline, which can be either TPU
    // bridge pipeline or non TPU bridge pipeline.
    tensorflow::Status RunTFXLABridge(
        ModuleOp module,
        llvm::function_ref<void(OpPassManager &pm)> pipeline_builder,
        llvm::StringRef module_name = llvm::StringRef(),
        llvm::StringRef dump_prefix = "tf_xla_bridge_v2") {
      // Explicitly check that the TensorFlow dialect can constant fold ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 22:25:18 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/cc/graph_def.h

      for (tensorflow::NodeDef& node_def : *graph_def.mutable_node()) {
        func(node_def);
      }
    
      for (tensorflow::FunctionDef& function_def :
           *graph_def.mutable_library()->mutable_function()) {
        for (tensorflow::NodeDef& node_def : *function_def.mutable_node_def()) {
          func(node_def);
        }
      }
    }
    
    }  // namespace stablehlo::quantization
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 28 18:38:06 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.h

    Status ConvertMlirFunctionToFunctionLibraryDef(mlir::func::FuncOp func,
                                                   const GraphExportConfig& configs,
                                                   FunctionDef* function_def);
    
    }  // namespace v2
    }  // namespace tf2xla
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.h

    Status ConvertMlirFunctionToFunctionLibraryDef(mlir::func::FuncOp func,
                                                   const GraphExportConfig& configs,
                                                   FunctionDef* function_def);
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.h

      // Decomposes the op in the NodeDef to a set of primitive ops according to the
      // decompose library in the context. Wrap the decomposed result in a
      // FunctionDef.
      absl::StatusOr<FunctionDef> ExpandNode(const NodeDef& node_def,
                                             StringPiece func_name);
    
      // Runs the decompose passes on the user_module.
      Status DecomposeGraph(mlir::ModuleOp user_module);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 11:12:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top