Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 178 for SmallVector (0.19 sec)

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

      for (const auto &attr : GetEntryFunctionAttributeNames()) {
        if (func->hasAttr(attr)) {
          return true;
        }
      }
      return false;
    }
    
    llvm::SmallVector<func::FuncOp> GetEntryFunctions(ModuleOp module) {
      llvm::SmallVector<func::FuncOp> entry_funcs;
      module.walk([&](func::FuncOp func) {
        // A model may have multiple graphs, with each graph having its own entry.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc

            return
          }
        }
      )mlir");
    
      FailureOr<SmallVector<AssetFileDef>> asset_file_defs =
          ConvertAssetArgs(*module_op);
    
      EXPECT_TRUE(succeeded(asset_file_defs));
      EXPECT_THAT(*asset_file_defs, SizeIs(1));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.td

    def ArgumentList : NativeCodeCall<"llvm::SmallVector<Value>{$0...}">;
    
    // The list of results of the composite function.
    def ResultList : NativeCodeCall<"llvm::SmallVector<Value>{$0...}">;
    
    // Creates a list of NamedAttributes. An example usage would be:
    // (NamedAttributeList (NamedAttr<"transpose_a"> $transpose_a))
    def NamedAttributeList : NativeCodeCall<"llvm::SmallVector<NamedAttribute>{$0...}">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 00:32:20 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_executor.cc

      }
    
      // Space for returned values.
      llvm::SmallVector<RCReference<AsyncValue>> results(compute->num_results());
    
      compute->Execute(*exec_ctx_, exec_arguments, results);
    
      // Wait for the function execution to finish, as well as the side-effects.
      host_context_->Await(results);
    
      // Check that all results are available.
      llvm::SmallVector<Tensor> ret_values;
      for (unsigned i = 1; i < results.size(); ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc

    limitations under the License.
    ==============================================================================*/
    
    #include <memory>
    #include <utility>
    
    #include "llvm/ADT/STLExtras.h"
    #include "llvm/ADT/SmallVector.h"
    #include "llvm/Support/Casting.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/Attributes.h"  // from @llvm-project
    #include "mlir/IR/BuiltinAttributes.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc

    // except the dynamic shape copy op.
    tf_device::LaunchOp CreateNewHostLaunchOpWithNewResult(
        tf_device::LaunchOp* old_launch_op,
        llvm::SmallVector<Value, 4>& new_launch_op_results) {
      OpBuilder builder(*old_launch_op);
    
      builder.setInsertionPointAfter(*old_launch_op);
    
      llvm::SmallVector<Type, 4> new_launch_op_results_types;
      for (Value result : new_launch_op_results)
        new_launch_op_results_types.push_back(result.getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/manipulate_model_attr.cc

    void AddEntryFunctionInput(StringRef input_name, func::FuncOp func_op) {
      auto entry_func_attr =
          func_op->getAttrOfType<DictionaryAttr>(kTfEntryFunctionAttr);
      if (!entry_func_attr) return;
    
      auto entry_func_attrs = SmallVector<NamedAttribute>(entry_func_attr.begin(),
                                                          entry_func_attr.end());
    
      MLIRContext* ctx = func_op.getContext();
      for (auto& named_attr : entry_func_attrs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 01:13:26 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/constant_fold_utils.h

    #ifndef TENSORFLOW_COMPILER_MLIR_TENSORFLOW_TRANSFORMS_CONSTANT_FOLD_UTILS_H_
    #define TENSORFLOW_COMPILER_MLIR_TENSORFLOW_TRANSFORMS_CONSTANT_FOLD_UTILS_H_
    
    #include "llvm/ADT/ArrayRef.h"
    #include "llvm/ADT/SmallVector.h"
    #include "mlir/IR/Operation.h"  // from @llvm-project
    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    
    namespace mlir {
    namespace TF {
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 23:44:33 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.cc

          loc, /*flags=*/QuantizationFlags::Signed,
          /*storageType=*/IntegerType::get(&context, /*width=*/8),
          /*expressedType=*/FloatType::getF32(&context),
          SmallVector<double>(scales), SmallVector<int64_t>(zero_points),
          quantization_dimension,
          /*storageTypeMin=*/llvm::minIntN(8) + (narrow_range ? 1 : 0),
          /*storageTypeMax=*/llvm::maxIntN(8));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc

        // Otherwise, output type has same rank as the input.
        return RankedTensorType::get(
            SmallVector<int64_t, 4>(rank, ShapedType::kDynamic), element_ty);
      }
    
      int64_t num_reduce_dim = 0;
      llvm::SmallVector<bool, 4> is_reduce_dim(rank, false);
      for (const APInt &index : indices.getValues<APInt>()) {
        int64_t dim = GetDimForAxis(index.getSExtValue(), rank);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top