Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for resource_subtype (0.51 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_restore_op.cc

        var_handle_op->setLoc(loc);
    
        // Ex) If VarHandleOp's type is tensor<!tf_type.resource<tensor<1xf32>>>,
        // then tensor<1xf32> is the subtype.
        tensor_types.emplace_back(var_handle_op.resource_subtype());
      }
    
      auto builder =
          OpBuilder::atBlockTerminator(&session_init_func.getBody().front());
    
      const BlockArgument filename_arg =
          InsertFilePrefixArgument(session_init_func, builder);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 12 06:02:20 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_save_op.cc

      for (auto var_handle_op : var_handle_ops) {
        tensor_names.emplace_back(var_handle_op.getSharedName().str());
    
        auto read_var_op = builder.create<TF::ReadVariableOp>(
            var_handle_op.getLoc(), var_handle_op.resource_subtype(),
            var_handle_op);
        tensor_values.emplace_back(read_var_op.getResult());
      }
    
      TF::ConstOp tensor_names_const =
          CreateTensorNamesConst(tensor_names, builder);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

          llvm::SmallVector<int64_t, 4> resource_subtype_shape(
              resource_shape.begin(), resource_shape.end());
          auto resource_subtype =
              GetTypeFromTFTensorShape(resource_subtype_shape, element_type);
          auto resource_type =
              mlir::TF::ResourceType::get({resource_subtype}, builder.getContext());
    
          auto tensor_type = mlir::cast<mlir::TensorType>(mlir_arg.getType());
          if (tensor_type.hasRank()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

      );
    
      DerivedTypeAttr dtype = DerivedTypeAttr<
          "return getElementTypeOrSelf(resource_subtype());">;
      DerivedAttr shape = DerivedAttr<
          "ShapedType",
          "return resource_subtype().cast<ShapedType>();",
          [{ mlir::TF::ShapeAttr::get($_ctxt, $_self) }]>;
    
      let extraClassDeclaration = [{
        TensorType resource_subtype() { return resource_type().getSubtypes()[0]; }
    
        ResourceType resource_type() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

          value = read_op.getValue();
        } else {
          llvm_unreachable("unexpected operator type");
        }
    
        TensorType resource_subtype = mlir::cast<TensorType>(value.getType());
        ResourceType resource_type =
            ResourceType::get({resource_subtype}, op.getContext());
        UnrankedTensorType new_resource_type =
            UnrankedTensorType::get(resource_type);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
Back to top