Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetOpsTypeIds (2.11 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tpu_embedding_ops_registry.h

    namespace TF {
    
    // A global ops registry that is used to hold TPU embedding ops.
    //
    // Example:
    //    TPUEmbeddingOpsRegistry::Global().Add<TF::FooOp>();
    //    for (auto op_type_id : TPUEmbeddingOpsRegistry::Global().GetOpsTypeIds())
    //    {
    //      ...
    //    }
    class TPUEmbeddingOpsRegistry {
     public:
      // Add the op to the registry.
      //
      // Adding an op here will allow use old bridge legalization from the MLIR
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 14 05:42:28 UTC 2022
    - 2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tpu_embedding_ops_registry.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tpu_embedding_ops_registry.h"
    
    #include <vector>
    
    namespace mlir {
    namespace TF {
    
    const llvm::SmallDenseSet<mlir::TypeID>&
    TPUEmbeddingOpsRegistry::GetOpsTypeIds() {
      return ops_type_ids_;
    }
    
    // static
    TPUEmbeddingOpsRegistry& TPUEmbeddingOpsRegistry::Global() {
      static TPUEmbeddingOpsRegistry* registry = new TPUEmbeddingOpsRegistry;
      return *registry;
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 14 05:42:28 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc

            TypeID::get<TF::XlaSvdOp>(),
        };
    
        // Add the ops from the TPUEmbeddingOpsRegistry.
        for (auto op_type_id :
             TF::TPUEmbeddingOpsRegistry::Global().GetOpsTypeIds()) {
          ops_set->insert(op_type_id);
        }
        return ops_set;
      }();
    
      return ops->count(type_id);
    }
    
    /// List of ops that should use XlaOpKernel legalization only in the case of
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top