Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 305 for tftensor (0.27 sec)

  1. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/tf_to_corert_pipeline.mlir

      }
    
      func.func @while_cond_lt9(%arg0: tensor<i32>) -> tensor<i1> {
        %0 = "tf.Const"() {device = "/device:CPU:0", value = dense<9> : tensor<i32>} : () -> tensor<i32>
        %1 = "tf.Less"(%arg0, %0) {device = "/device:CPU:0"} : (tensor<i32>, tensor<i32>) -> tensor<i1>
        func.return %1 : tensor<i1>
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

    Returns the input tensor otherwise.
      }];
    
      let arguments = (ins
        Arg<TF_Tensor, [{A tensor, whose shape is to be validated.}]>:$input,
    
        TF_ShapeAttr:$shape
      );
    
      let results = (outs
        Res<TF_Tensor, [{A tensor with the same shape and contents as the input tensor or value.}]>:$output
      );
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/decompose_resource_op.mlir

    func.func @gather(%indices: tensor<?xi32>,
                 %resource: tensor<*x!tf_type.resource>) -> tensor<*xi32> {
      %0 = "tf.ResourceGather"(%resource, %indices) {batch_dims = 0 : i64, device = "/device:CPU:0", validate_indices = true}: (tensor<*x!tf_type.resource>, tensor<?xi32>) -> (tensor<*xi32>)
      func.return %0 : tensor<*xi32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 00:40:32 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

    def TFR_CastOp : TFR_Op<"cast", [Pure]> {
      let description = [{
        The `cast` operation converts the operand with built-in tensor type to
        tfr.tensor type, or vice versa.
    
        Example:
    
        ```mlir
        %1 = tfr.cast(%0) : tensor<f32> -> !tfr.tensor
        %3 = tfr.cast(%1) : !tfr.tensor -> tensor<f32>
        ```
      }];
    
      let arguments = (ins TFR_singleTensorType:$arg);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/tf_to_corert_pipeline_refvar.mlir

          %outputs_0, %control_1 = tf_executor.island wraps "tf.Identity"(%outputs) {device = "/job:localhost/replica:0/task:0/device:CPU:0"} : (tensor<!tf_type.f32ref>) -> tensor<*xf32>
          tf_executor.fetch %outputs_0 : tensor<*xf32>
        }
        func.return %0 : tensor<*xf32>
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api.cc

            "TFE_TensorHandleDeviceMemorySize may not be called on a ",
            handle->TypeString(), " tensor handle.");
        return 0;
      }
      const tensorflow::Tensor* tensor;
      status->status = handle->Tensor(&tensor);
      if (!status->status.ok()) {
        return 0;
      }
      return tensor->TotalBytes();
    }
    
    TFE_Op* TFE_NewOp(TFE_Context* ctx, const char* op_or_function_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

    #include "tensorflow/c/experimental/saved_model/public/tensor_spec.h"
    #include "tensorflow/c/tf_datatype.h"
    #include "tensorflow/c/tf_shape.h"
    #include "tensorflow/c/tf_status.h"
    #include "tensorflow/c/tf_tensor.h"
    #include "tensorflow/core/lib/io/path.h"
    #include "tensorflow/core/platform/status.h"
    #include "tensorflow/core/platform/stringpiece.h"
    #include "tensorflow/core/platform/test.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 08:08:45 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/fallback.mlir

          sparse_types = [!tf_type.string, !tf_type.string]
        } : (tensor<32x!tf_type.string>, tensor<0x!tf_type.string>, tensor<2x!tf_type.string>, tensor<2x!tf_type.string>, tensor<0x!tf_type.string>, tensor<0xf32>, tensor<0xf32>)
        -> (tensor<?x2xi64>, tensor<?x2xi64>, tensor<?x!tf_type.string>, tensor<?xi64>, tensor<2xi64>, tensor<2xi64>, tensor<32xf32>, tensor<32xf32>)
    
      // CHECK: tfrt.return {{.*}}, [[outputs]]#0
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/convert_attr.cc

          return mlir::TypeAttr::get(type);
        }
        case AttrValue::kShape:
          return ConvertTensorShapeProto(value.shape(), builder->getContext());
        case AttrValue::kTensor:
          return ConvertTensorProto(value.tensor(), builder);
        case AttrValue::kList: {
          absl::InlinedVector<mlir::Attribute, 8> attrs;
          for (const auto& item : value.list().i())
            attrs.push_back(builder->getI64IntegerAttr(item));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/prepare-tf.mlir

      // Inference with non-broadcastable shape
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 07:26:59 UTC 2024
    - 59.8K bytes
    - Viewed (0)
Back to top