Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,098 for TensorT (0.27 sec)

  1. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.h

    #include "tensorflow/compiler/mlir/lite/schema/schema_generated.h"
    #include "tensorflow/core/framework/tensor.pb.h"
    #include "tensorflow/core/framework/tensor_shape.pb.h"
    
    namespace mlir {
    namespace TFL {
    
    bool IsQuantized(const tflite::TensorT& tensor);
    
    absl::StatusOr<mlir::quant::QuantizedType> GetQuantizedType(
        const tflite::TensorT& tensor, mlir::Builder builder,
        bool is_constant = false, mlir::Type storage_type = {});
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc

      }
    }
    
    }  // namespace
    
    bool IsQuantized(const TensorT& tensor) {
      return (tensor.quantization != nullptr) &&
             !tensor.quantization->zero_point.empty();
    }
    
    // Returns the correct type for a quantized tensor.
    // We have a special case for constants since they have a higher minimum value.
    StatusOr<QuantizedType> GetQuantizedType(const TensorT& tensor, Builder builder,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

    // of intermediate tensors since importer doesn't guarantee to preserve tensor
    // names except output tensors.
    Location OpLoc(const OperatorT& op,
                   const std::vector<std::unique_ptr<tflite::TensorT>>& tensors,
                   Builder builder, Location base) {
      if (op.outputs.empty()) return base;
    
      llvm::SmallVector<Location, 4> locations;
      locations.reserve(op.outputs.size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/quantization/lite/quantize_model_test.cc

      // There should be 3 tensors: input, output, and BroadcastTo/shape.
      EXPECT_THAT(subgraph->tensors, SizeIs(3));
    
      // Input Tensor
      EXPECT_THAT(subgraph->tensors[0]->type, Eq(tensor_type_));
      EXPECT_THAT(subgraph->tensors[0]->name, Eq("input_1"));
      EXPECT_THAT(subgraph->tensors[0]->quantization->scale, SizeIs(1));
      EXPECT_THAT(subgraph->tensors[0]->quantization->zero_point, SizeIs(1));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 73.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/schema/schema_generated.h

      std::vector<std::unique_ptr<tflite::VariantSubTypeT>> variant_tensors{};
      TensorT() = default;
      TensorT(const TensorT &o);
      TensorT(TensorT&&) FLATBUFFERS_NOEXCEPT = default;
      TensorT &operator=(TensorT o) FLATBUFFERS_NOEXCEPT;
    };
    
    struct Tensor FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
      typedef TensorT NativeTableType;
      typedef TensorBuilder Builder;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 1M bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/java/apt/kotlin/src/main/java/com/acme/Sensors.java

    package com.acme;
    
    import dagger.Module;
    import dagger.Provides;
    
    @Module
    public class Sensors {
        @Provides static HeatSensor provideHeater() {
            return new DefaultHeatSensor();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 195 bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/java/apt/groovy/src/main/java/com/acme/Sensors.java

    package com.acme;
    
    import dagger.Module;
    import dagger.Provides;
    
    @Module
    public class Sensors {
        @Provides static HeatSensor provideHeater() {
            return new DefaultHeatSensor();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 195 bytes
    - Viewed (0)
  8. tensorflow/cc/experimental/libtf/tests/runtime_test.cc

      TF_ASSERT_OK_AND_ASSIGN(Tensor tensor1,
                              runtime.CreateHostTensor<float>({}, TF_FLOAT, {2.0f}))
      TF_ASSERT_OK_AND_ASSIGN(Tensor tensor2,
                              runtime.CreateHostTensor<float>({}, TF_FLOAT, {3.0f}))
    
      TF_ASSERT_OK_AND_ASSIGN(Tensor result_tensor,
                              fn.Call<Tensor>(tensor1, tensor2));
      float out_val[1];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 09 12:27:54 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. tensorflow/c/kernels/summary_op.cc

      CHECK(SerializeToTString(s, output_tstring));
      TF_DeleteTensor(summary_tensor);
    }
    
    bool IsSameSize(TF_Tensor* tensor1, TF_Tensor* tensor2) {
      if (TF_NumDims(tensor1) != TF_NumDims(tensor2)) {
        return false;
      }
      for (int d = 0; d < TF_NumDims(tensor1); d++) {
        if (TF_Dim(tensor1, d) != TF_Dim(tensor2, d)) {
          return false;
        }
      }
      return true;
    }
    
    std::string SingleTag(TF_Tensor* tags) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/lower-static-tensor-list.mlir

      %0 = "tf.TensorListFromTensor"(%arg0, %arg1) : (tensor<*xf32>, tensor<1xi32>) -> tensor<!tf_type.variant<tensor<*xf32>>>
      %1 = "tf.TensorListGetItem"(%0, %arg2, %arg1) : (tensor<!tf_type.variant<tensor<*xf32>>>, tensor<i32>, tensor<1xi32>) -> tensor<*xf32>
      %2 = "tf.TensorListStack"(%0, %arg1) : (tensor<!tf_type.variant<tensor<*xf32>>>, tensor<1xi32>) -> tensor<*xf32>
      func.return %1, %2 : tensor<*xf32>, tensor<*xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 39.9K bytes
    - Viewed (0)
Back to top