Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 214 for typeName (0.13 sec)

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

    // Fold Arithmetic Op if one of the operands is a constant known to be an
    // Identity (e.g. X+0, X*1, etc...). For commutative operations fold if
    // known identity value is either lhs or rhs.
    template <
        typename OpT,
        typename std::enable_if<llvm::is_one_of<
            OpT, AddV2Op, SubOp, MulOp, DivOp, RealDivOp>::value>::type * = nullptr>
    OpFoldResult IdentityArithmeticOpFolder(OpT arithmetic_op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/test_matchers_test.cc

    constexpr char kOkStatus[] = "ok";
    const int kArbitraryIntResult = 37;
    
    template <typename T>
    tsl::StatusOr<T> success(T t) {
      return t;
    }
    absl::StatusOr<int> success() { return kArbitraryIntResult; }
    template <typename T>
    tsl::StatusOr<T> filtered(T t) {
      return tsl::StatusOr<T>(tensorflow::CompileToHloGraphAnalysisFailedError());
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/ir/ConvertSimQuant.cc

        : public impl::QuantConvertSimulatedQuantBase<ConvertSimulatedQuantPass> {
      void runOnOperation() override;
    };
    
    /// Base class rewrites ConstFakeQuant into a qbarrier/dbarrier pair.
    template <typename ConcreteRewriteClass, typename FakeQuantOp>
    class FakeQuantRewrite : public OpRewritePattern<FakeQuantOp> {
     public:
      using OpRewritePattern<FakeQuantOp>::OpRewritePattern;
    
      FakeQuantRewrite(MLIRContext *ctx, bool *hadFailure)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.cc

                              CostFunction cost_function) {
      auto r = registry.try_emplace(op_name, std::move(cost_function));
      assert(r.second);
      (void)r;
    }
    
    template <typename OpType, typename F>
    void RegisterCostFunction(CostFunctionRegistry& registry, F f) {
      RegisterCostFunction(
          registry, OpType::getOperationName().str(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. pkg/kube/krt/index.go

    	i.mu.RLock()
    	defer i.mu.RUnlock()
    	log.Errorf("> BEGIN DUMP (index %v[%T])", i.c.(internalCollection[I]).name(), ptr.TypeName[K]())
    	for k, v := range i.objects {
    		log.Errorf("key %v: %v", k, v.UnsortedList())
    	}
    	log.Errorf("< END DUMP (index %v[%T]", i.c.(internalCollection[I]).name(), ptr.TypeName[K]())
    }
    
    // NewNamespaceIndex is a small helper to index a collection by namespace
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 04:53:45 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/ops/gen/cpp/views/arg_type_view.cc

    #include "tensorflow/core/platform/types.h"
    
    namespace tensorflow {
    namespace generator {
    namespace cpp {
    
    ArgTypeView::ArgTypeView(ArgType arg_type) : arg_type_(arg_type) {}
    
    string ArgTypeView::TypeName() const {
      if (arg_type_.is_read_only()) {
        if (arg_type_.is_list()) {
          return "absl::Span<AbstractTensorHandle* const>";
        } else {
          return "AbstractTensorHandle* const";
        }
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 07:02:00 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/flatbuffer_operator.h

    // `default_value`.
    template <typename T>
    static inline std::vector<T> GetOptionalVector(
        std::optional<ArrayRef<T>> values, int64_t default_size = 0,
        int64_t default_value = 0) {
      if (values.has_value()) {
        return std::vector<T>(values->begin(), values->end());
      }
      return std::vector<T>(default_size, default_value);
    }
    
    template <typename T>
    static inline std::vector<T> GetVector(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 21:00:09 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

    tensorflow::DataType GetQuantizedInferenceType(bool is_signed,
                                                   int activation_number_of_bits);
    
    // Returns the element type of LSTM's intermediate tensor designated by the
    // index.
    template <typename LstmOp>
    inline QuantizedType GetIntermediateElementType(LstmOp op, int tensor_index) {
      if (tensor_index < 0 || tensor_index > 4) return nullptr;
      TypeAttr attr = op->template getAttrOfType<TypeAttr>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  9. tensorflow/cc/experimental/libtf/value.h

        }
      }
    
     private:
      /// @brief A utility class for mapping C++ types to Type values.
      template <typename T>
      struct EnumValueOf;
    
      /// @brief A utility class for accessing the `Data` union members.
      template <typename T>
      struct UnionAccess;
    
      // Unsafe Move, because it assumes the union has already been destroyed
      // or is new!
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:23:45 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintWriter.kt

            // We assume different types won't ever produce identical display names
            if (reportedValueSources.add(displayName ?: typeName)) {
                reportValueSourceInput(trace, displayName, typeName)
            }
        }
    
        private
        fun reportValueSourceInput(trace: PropertyTrace, displayName: String?, typeName: String) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 32.8K bytes
    - Viewed (0)
Back to top