Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for TensorT (0.32 sec)

  1. 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)
  2. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc

    // as tensor names may have changed via MLIR constant folding process.
    bool ExpectEqualTensor(const Tensor* tensor, const Tensor* expected_tensor) {
      return (tensor->is_variable() == expected_tensor->is_variable()) &&
             (GetAsVector(tensor->shape()) ==
              GetAsVector(expected_tensor->shape()));
    }
    
    // Finds the match of the quantized tensor from the possible tensors. Each
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

    SparseTensor is not supported. The return value of the decorated function
    must be a Tensor or a list/tuple of Tensors.
      }];
    
      let arguments = (ins
        Arg<Variadic<TF_Tensor>, [{The tensors to be batched.}]>:$in_tensors,
        Arg<Variadic<TF_Tensor>, [{The tensors which are captured in the function, and don't need
    to be batched.}]>:$captured_tensors,
    
        SymbolRefAttr:$f,
        I64Attr:$num_batch_threads,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        }
    
        // Extract individual tensor list element and combine them using the tf.Pack
        // op.
        Location loc = op.getLoc();
        llvm::SmallVector<Value, 4> values;
        values.reserve(tensors.size());
        for (const tensorflow::Tensor &tensor : tensors) {
          auto attr_or = tensorflow::ConvertTensor(tensor, &rewriter);
          if (!attr_or.ok()) return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

          }
          return %graph#0, %graph#1, %graph#2, %graph#3 : !tf_res, !tf_res, tensor<f32>, tensor<f32>
        }
        ```
    
        After:
    
        ```mlir
        func @while_body(%arg0: !tf_res, %arg1: !tf_res, %arg2: tensor<f32>, %arg3: tensor<f32>, %chain_0: tensor<i32>, %chain_1: tensor<i32>) -> (!tf_res, !tf_res, tensor<f32>, tensor<f32>, tensor<i32>, tensor<i32>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

          return tflite::CreateBuffer(builder_, buffer_data);
        }
      }
    
      tensorflow::Tensor tensor;
      auto status = tensorflow::ConvertToTensor(attr, &tensor);
      if (!status.ok()) {
        inst->emitError(
            Twine("failed to convert value attribute to tensor with error: " +
                  status.ToString()));
        return std::nullopt;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/decompose_optionals.mlir

      return
    }
    func.func private @false(%arg0: tensor<!tf_type.variant<tensor<f32>>>) -> tensor<!tf_type.variant<tensor<f32>>> {
      return %arg0 : tensor<!tf_type.variant<tensor<f32>>>
    }
    func.func private @true(%arg0: tensor<!tf_type.variant<tensor<f32>>>) -> tensor<!tf_type.variant<tensor<f32>>> {
      return %arg0 : tensor<!tf_type.variant<tensor<f32>>>
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. RELEASE.md

    *  `tf.Tensor`
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

    //        start_indices = dense<0> : tensor<2xi64>,
    //        strides = dense<1> : tensor<2xi64>} :
    //        (tensor<4x6xf32>) -> tensor<4x1xf32>
    // %1 = "mhlo.slice"(%input) {
    //        limit_indices = dense<[4, 3]> : tensor<2xi64>,
    //        start_indices = dense<[0, 1]> : tensor<2xi64>,
    //        strides = dense<1> : tensor<2xi64>} :
    //        (tensor<4x6xf32>) -> tensor<4x2xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter_test.cc

      %2 = "tfl.add"(%arg0, %arg3) {fused_activation_function = "RELU6", per_device_costs = {CPU = 5.0 : f32, GPU = 1.0 : f32}, tac.device = "GPU"} : (tensor<1xf32>, tensor<1xf32>) -> tensor<1xf32>
      %3 = "tfl.pack"(%1, %2) {axis = 0 : i32, per_device_costs = {CPU = 2.0 : f32, GPU = -1.0 : f32}, values_count = 2 : i32, tac.device = "CPU"} : (tensor<1xf32>, tensor<1xf32>) -> tensor<2x1xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top