Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 387 for setAttr (0.15 sec)

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

                                                key_and_value_pair[0],
                                                "' attribute"));
            continue;
          }
          inner_op.setAttr(llvm::StringRef(std::string(key_and_value_pair[0])),
                           identifier_to_attr[llvm::StringRef(
                               std::string(key_and_value_pair[1]))]);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

        for (NamedAttribute attr : op->getAttrs()) {
          auto symref = mlir::dyn_cast<FlatSymbolRefAttr>(attr.getValue());
          if (!symref) continue;
          if (symref.getValue() != func.getName()) continue;
          op->setAttr(attr.getName(),
                      FlatSymbolRefAttr::get(op->getContext(), cloned.getName()));
          break;
        }
      }
    
      // Traverse results backward so that indices to be deleted stay unchanged.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

                  .getInt();
          arg_metadata->set_retval_index_for_sharding(ret_index);
        }
      }
      // Update the metadata of the compile op.
      compile.setAttr("metadata", StringAttr::get(compile.getContext(),
                                                  metadata.SerializeAsString()));
      return mapping;
    }
    
    // Adds a new replicated input to the replicate op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

          // Add or update the derived attribute with the value. Skip the fixed
          // element type attributes, in case they are present in the NodeDef.
          if (!fixed_elt_type_attrs_.contains(attr.first())) {
            new_op->setAttr(attr.first(), attr.second);
          }
        }
      }
      // Create the tfr.cast ops on the results and replace the uses of the
      // original call op.
      TFRTensorType unconstrainted_type = rewriter.getType<TFRTensorType>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc

        }
        OpBuilder builder(call);
        auto new_call = builder.create<CallOp>(
            call.getLoc(), info.decomposed_callee.getFunctionType().getResults(),
            new_operands, call->getAttrs());
        new_call->setAttr(
            "f", SymbolRefAttr::get(
                     builder.getContext(),
                     const_cast<func::FuncOp&>(info.decomposed_callee).getName()));
        for (int64_t i = 0; i < call.getNumResults(); ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc

      builder.setInsertionPointToEnd(block);
      builder.create<tf_device::ReturnOp>(loc, return_values.getArrayRef());
    
      // Set device attribute
      if (auto device = back->getAttr(kDeviceAttr))
        cluster_op->setAttr(kDeviceAttr, device);
    
      // Update all users of the operations moved into the cluster region.
      for (auto tuple : llvm::zip(return_values, cluster_op.getResults())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

                /*isSigned=*/true);
          } else {
            op.emitError() << "Unsupported quantization bits: "
                           << tensor_property.number_of_bits;
            return failure();
          }
          op->setAttr(intermediate_attributes[index],
                      TypeAttr::get(qtype.castFromExpressedType(
                          qtype.castToExpressedType(attr.getValue()))));
        }
        return success();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  8. pkg/ctrlz/assets/static/js/prism-1.14.0.min.js

    |callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/(?:\b(?...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

        if (functions_to_skip.contains(func_op)) {
          OpBuilder builder(func_op);
          // Mark this function as being skipped in island outlining.
          func_op->setAttr(mlir::TF::kSkipIslandOutlining,
                           builder.getBoolAttr(true));
          continue;
        }
    
        func_op.walk([&](GraphOp graph) {
          Block& graph_body = graph.GetBody();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

      // outside of the region which may cause some new legalization failures.
      // TODO(b/126739593): Enable this attribute in TensorFlow by default. Also,
      // see b/185542519 for the context.
      dst->setAttr(kXlaPropagateCompileTimeConsts, builder->getBoolAttr(true));
    }
    
    // If the region only does a single function call whose operands / returns match
    // exactly the block args and results, return the name of the called function.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
Back to top