Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 84 for setFAttr (0.24 sec)

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

        if (!preceding_qcast) return failure();
    
        auto new_qcast = rewriter.create<quantfork::QuantizeCastOp>(
            q_op.getLoc(), q_op.getType(), preceding_qcast.getArg());
        new_qcast->setAttr(kVolatileOpAttrName, rewriter.getUnitAttr());
        q_op->replaceAllUsesWith(new_qcast);
        return success();
      }
    };
    
    bool PrepareQuantizePass::ContainsQuantizeOps(func::FuncOp func) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc

            // tensorflow/lite/kernels/fully_connected.cc. The kernels will handle
            // the asymmetric_quantize_inputs attribute in the builtin option.
            dynamic_range_quantized_user->setAttr(
                kAsymmetricQuantizeInputsAttr,
                BoolAttr::get(rewriter.getContext(), true));
            changed = true;
          }
        }
        return changed;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      xla::OpSharding sharding =
          manual_sharding ? ::xla::sharding_builder::Manual()
                          : ::xla::sharding_builder::AssignDevice(kShardingTpuCore);
      op->setAttr(kShardingAttr,
                  StringAttr::get(op->getContext(), sharding.SerializeAsString()));
    }
    
    // Assigns frontend attributes holding information about data type and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc

            to_keep.push_back(sym_ref);
          }
        }
    
        for (auto func_op : to_remove) rewriter.eraseOp(func_op);
    
        if (to_keep.empty())
          rewriter.eraseOp(op);
        else
          op->setAttr("initializers", rewriter.getArrayAttr(to_keep));
    
        return success();
      }
    };
    
    void SessionInitializerOp::getCanonicalizationPatterns(
        RewritePatternSet &results, MLIRContext *context) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

          updated_input_shapes_attr.emplace_back(input_shapes_attr[i]);
        }
    
        // Replaces the attribute with the updated "#tf_type.shape" array.
        // Builder builder(func_op.getContext());
        func_op->setAttr(
            kTfInputShapesAttr,
            ArrayAttr::get(func_op.getContext(), updated_input_shapes_attr));
      }
    }
    
    // Validates func ops. Returns `failure` if the function is invalid.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  8. 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)
  9. fastapi/dependencies/utils.py

        # in case a sub-dependency is evaluated with a single unique body field
        # That is combined (embedded) with other body fields
        for param in flat_dependant.body_params:
            setattr(param.field_info, "embed", True)  # noqa: B010
        model_name = "Body_" + name
        BodyModel = create_body_model(
            fields=flat_dependant.body_params, model_name=model_name
        )
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:52:56 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  10. 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)
Back to top