Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for resource_subtype (0.11 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)
Back to top